Hi Everyone
I'm new to Opencart and can I say just how awesome it is.
I am developing the site on Localhost sp can't provide links to the site, sorry.
I have a little issue with the product.tpl file.
All the correct code appears to be present in the template file. I checked it against an original file.
I have set the Categories module to show on the products page in the left column bit nothing is showing.
When I view the source there is no reference to the Top, Bottom, Left or Right Column in the code.
Not sure what's going on here
Cheers
I'm new to Opencart and can I say just how awesome it is.
I am developing the site on Localhost sp can't provide links to the site, sorry.
I have a little issue with the product.tpl file.
All the correct code appears to be present in the template file. I checked it against an original file.
I have set the Categories module to show on the products page in the left column bit nothing is showing.
When I view the source there is no reference to the Top, Bottom, Left or Right Column in the code.
Not sure what's going on here
Cheers
If you allready add the module to the product layout , in admin > system > design > layouts , edit the product layout and make sure it has the right route (product/product).
Thanks for your reply.
Here are my settings:
admin > system > design > layouts > Product = Product/Product
admin > extensions > modules > category >
Layout: Product - Position: Column Left - Product Count: Enabled - Status: Enabled Sort Order: 1
This seems to be the correct settings.
I can add the category navigation to the home page and category page but still cant add it to product page.I could do it manually I suppose but it defeats the purpose of the module system.
Here are my settings:
admin > system > design > layouts > Product = Product/Product
admin > extensions > modules > category >
Layout: Product - Position: Column Left - Product Count: Enabled - Status: Enabled Sort Order: 1
This seems to be the correct settings.
I can add the category navigation to the home page and category page but still cant add it to product page.I could do it manually I suppose but it defeats the purpose of the module system.
Thats weird. Did you by any change selected another layout, at layout override in admin for products? (in admin , when you edit the product > design tab.)
You probably messed up one of the layouts. The most common issue I noticed is creating a layout, clicking add route, but not inserting any actual route > which makes that layout to automatically apply to every page in the store.
For debugging , I did the following:
I edited the file catalog/controller/common/column_left.php and after the code:
I added the line:
Then I edited the file catalog/view/theme/mytheme/template/common/column_left.tpl and changed the code:
into:
Now, on every page in the store, in the left column I could see only the id of the layout that applied to that page. Then I would check in admin the layout with the respective id and saw if that page had the layout I wanted or the mistake I did (btw: in admin, you can see the layout id in the url of the edit link for each layout.)
Then, after I fixed all the layouts, and each page had the layout I wanted, I reverted the checnges done above and everything is ok(I actually needed to do this because there was a multistore setup with many layouts).
For debugging , I did the following:
I edited the file catalog/controller/common/column_left.php and after the code:
Code: Select all
if (!$layout_id) {
$layout_id = $this->config->get('config_layout_id');
}
Code: Select all
$this->data['lid'] = $layout_id;
Code: Select all
<?php if ($modules) { ?>
<div id="column-left">
<?php foreach ($modules as $module) { ?>
<?php echo $module; ?>
<?php } ?>
</div>
<?php } ?>
Code: Select all
<div id="column-left">
<?php echo $lid; ?>
</div>
Then, after I fixed all the layouts, and each page had the layout I wanted, I reverted the checnges done above and everything is ok(I actually needed to do this because there was a multistore setup with many layouts).
Thanks for the reply, I do appreciate it. I have triple-checked every single layout, making absolutely sure to use the exact same route of the default store when inserting the new route for my 2nd store. Every single one is set up precisely the same and yet still, product pages are the only place where modules aren't showing up.florinsith wrote:You probably messed up one of the layouts. The most common issue I noticed is creating a layout, clicking add route, but not inserting any actual route > which makes that layout to automatically apply to every page in the store.

If it only happens on product page, then you obviously missed something (like probably the product you are viewing has a layout override).
It happens with all products, and I do not use layout overrides. There is nothing obvious about it, which is precisely why I'm seeking out help. Again, I appreciate the effort to help, but there's something else at play here.
Last edited by TraderDan on Mon Jul 09, 2012 3:34 pm, edited 1 time in total.
Then try the solution above and make sure if the product pages have the layout they are supposed to.
Your suggestion for identifying the layout IDs proved very helpful, thank you very much for that.
So as it turned out, the product pages in my 2nd store were assigning a custom layout that I had created (but never actually used) back when I first set up my original storefront. It's quite strange really, because the default store totally ignored this layout and instead, correctly pulled the module info from the 'Product' layout. My 2nd store however, despite the Route being properly set under the 'Product' layout, seemed to be ignoring it and referencing the old custom layout instead. And since I never assigned any modules to appear in this custom layout, they didn't show up on the product pages.
All I did was delete the custom layout since it wasn't really being used, and everything showed up just like it was supposed to. Still have no idea why the 2nd store got tripped up when the default store didn't, but I honestly don't care. Just glad to see it all working now. Thanks again.
So as it turned out, the product pages in my 2nd store were assigning a custom layout that I had created (but never actually used) back when I first set up my original storefront. It's quite strange really, because the default store totally ignored this layout and instead, correctly pulled the module info from the 'Product' layout. My 2nd store however, despite the Route being properly set under the 'Product' layout, seemed to be ignoring it and referencing the old custom layout instead. And since I never assigned any modules to appear in this custom layout, they didn't show up on the product pages.
All I did was delete the custom layout since it wasn't really being used, and everything showed up just like it was supposed to. Still have no idea why the 2nd store got tripped up when the default store didn't, but I honestly don't care. Just glad to see it all working now. Thanks again.

Hi florinsith,
First i would like to thank you for the great design aDefault. Unfortunatly i cant seem to manage how to get the front page just as nice as every other page. Like http://demo.buyflo.net/free/index.php?route=common/home.
I believe i have every route in a good setting and i dont have any other design in there except for default.
I'm trying to get the homepage also in the correct design with the left columns but i cant figure it out
Could you please assist me where to set the correct setting for this?
First i would like to thank you for the great design aDefault. Unfortunatly i cant seem to manage how to get the front page just as nice as every other page. Like http://demo.buyflo.net/free/index.php?route=common/home.
I believe i have every route in a good setting and i dont have any other design in there except for default.
I'm trying to get the homepage also in the correct design with the left columns but i cant figure it out

Could you please assist me where to set the correct setting for this?
Its not the best tutorial but everyone that read it seemed to better understand how it works: http://shopencart.com/Add-edit-opencart-1.5.x-modules
Hi everyone, A few days back everything was working fine, but for last 2 days when I add product system automatically save override layout as home and product opening in home layout, like this http://www.primegiftservice.com/12-mix- ... istan.html product, any help in this matter????
Who is online
Users browsing this forum: Amazon [Bot] and 30 guests