Post by catfish7 » Tue Jan 19, 2010 2:49 pm

To whom it may concern,

Where could i obtain a detail documentation/manual for the opencart theme?

I find that opencart do not have a proper full documentation on the software.

Newbie

Posts

Joined
Tue Jan 19, 2010 2:48 pm

Post by twiggy » Tue Jan 19, 2010 6:49 pm

Hi, what would you like to know about the theme system? Can't really direct you unless I know what it is you want?

Active Member

Posts

Joined
Fri Aug 14, 2009 4:43 am


Post by catfish7 » Wed Jan 20, 2010 2:58 pm

I have a few question (based on 1.4 default theme):
1. I could not find the main template layout editing file. For example, I would like to modify my template from 3 column to 2 column.
I believe there is a main file (maybe .tpl) to control and put all the common/*.tpl together (home.tpl, header.tpl, column_right.tpl, column_left.tpl, footer.tpl).
Removing <?php echo $column_right; ?> in the home.tpl does not work to stretch the home section to stretch across to the right column.
2. The complete definition of variable such as:
<?php echo $title; ?>
<?php echo $description; ?>
<?php echo $column_right; ?>
3. Extra task: how can I accommodate to input product images which is hotlinked from another site instead of uploading to the opencart itself.

Newbie

Posts

Joined
Tue Jan 19, 2010 2:48 pm

Post by bebaspromo » Wed Jan 20, 2010 7:29 pm

Hi Catfish7,

I want to share (as very newbie in OC) ...

to modifying my 2 column OC140 theme ( Left - Main), i never removing the <?php echo $column_right; ?> in the default .tpl files. Just do the following :

1. Set all modules in left sidebar
2. Set the #container {
} width in stylesheet.css

3. Set the #column_left {
} width in stylesheet.css

4. Set the #content {
} width in stylesheet.css

or maybe removing the #column_right {
}

.... that's me ( a very newbie .... )
CMIIW ...

User avatar
Active Member

Posts

Joined
Tue Dec 22, 2009 9:14 pm

Post by Xsecrets » Wed Jan 20, 2010 9:57 pm

also there is not any single file that brings everything together anymore. Back in 1.3.2 days there was a layout.tpl, but that has been removed and $header $footer $column_right and $column_left has been added to every file. Removing the column_right call will remove the right column, but not the space it occupies, because you will have to modify the css for that as mentioned above.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by twiggy » Thu Jan 21, 2010 12:39 am

1. There is no longer one file to do this, you have to change the files individually, home.tpl header.tpl footer.tpl ect.

2. To switch to a two column design is easy, go in to your admin panel and go to modules in there you can set them all to left or right, do not delete the column_left and column_right .tpl

3. Not sure if there is a full list of definitions of the variables you will have to ask Daniel but its very rare hes on the support sections any more, maybe someone else could help here?

4. Not sure how you would hotlink an image unless you hardcoded and made a new page for each product, I could be missing something though?

Active Member

Posts

Joined
Fri Aug 14, 2009 4:43 am


Post by catfish7 » Thu Jan 21, 2010 9:41 am

Hey

Thanks for your comment...

1. I've figured out how to adjust to 2 column in the default template.
i. CSS: change content margin-right to 0 or delete it.
ii. Put all modules to the left column instead
iii. remove <?php echo $column_right; ?> in the home.tpl and the rest.. this will prevent misfigured template if accidentally set modules to right column.
If i have further question with regards to the layout, I shall throw in some more questions... Thanks folks!

2. Now one of my most concerned point is if it is possible to hotlink images from let's say flickr instead of uploading picture to the site itself...
I believe the opencart system will generate thumbnails from the original image located in ..\image\data to
..\image\cache\data.
I wish that this will be available to admin user to be done from the admin site.
This is one of the most crucial point at this point.

Thanks for your support!

Newbie

Posts

Joined
Tue Jan 19, 2010 2:48 pm
Who is online

Users browsing this forum: No registered users and 1 guest