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.
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.
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 ...
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 ...
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
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?
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?
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!
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!
Who is online
Users browsing this forum: No registered users and 1 guest