What I want to do: For each top level category I would like to have a different banner other than the banner for the entire store. This is a important feature I need to figure out. After doing a little research I definitely think I need to modify some of the php code to do this. I understand how to modify the look of the template by changing the .tpl files but I'm not sure when it comes to actual changes to the code.
Can anyone give me a hint to the right direction?
Thank you
Can anyone give me a hint to the right direction?
Thank you
I think you might be able to do this using layouts. Create layouts for every top category , and in the category edit page , under the tab design select the layout you created for each. Of course , this way , if you have sidebar modules on category page , you will have to add them for every layout , and also with the banner , add a different one to every layout.
Thank you for this idea I may try it out. This is something similar to what I had to do when I was using Magento. It didn't seem like the most elegant solutions but it worked so if I have to do it for opencart as well that is fine.florinsith wrote:I think you might be able to do this using layouts. Create layouts for every top category , and in the category edit page , under the tab design select the layout you created for each. Of course , this way , if you have sidebar modules on category page , you will have to add them for every layout , and also with the banner , add a different one to every layout.
I tried that but it's not quite the look I'm looking for. There is still the regular banner at top then the navigation bar and then the banner for the category. Just not the style I need.uksitebuilder wrote:Why can't you add a banner in the category description ?
well you can remove the banner at the top by turning the module off for categories in your extensions/modules section.
the results is the same.
I will show you
Banner on homepage -> http://www.designs.org.uk
Banner on Category page -> http://www.designs.org.uk/desktops
the results is the same.
I will show you
Banner on homepage -> http://www.designs.org.uk
Banner on Category page -> http://www.designs.org.uk/desktops
Actually can you explain to me how you would do this? I understand how to make different templates but not how layouts actually work.florinsith wrote:I think you might be able to do this using layouts. Create layouts for every top category , and in the category edit page , under the tab design select the layout you created for each. Of course , this way , if you have sidebar modules on category page , you will have to add them for every layout , and also with the banner , add a different one to every layout.
I'm sorry I don't see the different. Honestly I can live with having just a unique picture for the category image. I need to the image to be larger than 80X80 which is the default. I have not been able to figure out how to change the image size of category images.uksitebuilder wrote:well you can remove the banner at the top by turning the module off for categories in your extensions/modules section.
the results is the same.
I will show you
Banner on homepage -> http://www.designs.org.uk
Banner on Category page -> http://www.designs.org.uk/desktops
Thank you
if you just want to change the size for your category image, just look under settings, your store, images (I think that's the right path)
You want to thank me for my time! Click here to donate
I dont think uksb reffered to the category image but to category description. Insert the image in the category description in admin with ckeditor.
About the layouts: Say you have a category called Laptops. Create a layout called Laptops , Then create a banner and with the slideshow or banner module add it to content top to the Laptop layout. Edit the category , under the tab Design , select layout override Laptops. I think you should insert a dummy route for the Laptops layout when you create it (not sure if is the best way , but try it).
About the layouts: Say you have a category called Laptops. Create a layout called Laptops , Then create a banner and with the slideshow or banner module add it to content top to the Laptop layout. Edit the category , under the tab Design , select layout override Laptops. I think you should insert a dummy route for the Laptops layout when you create it (not sure if is the best way , but try it).
This worked perfect for me. Thx!florinsith wrote:About the layouts: Say you have a category called Laptops. Create a layout called Laptops , Then create a banner and with the slideshow or banner module add it to content top to the Laptop layout. Edit the category , under the tab Design , select layout override Laptops. I think you should insert a dummy route for the Laptops layout when you create it (not sure if is the best way , but try it).
Yes, theat is what you would have to do. Dont forget to link the layout you created for each product to the product itself, in admin product edit page on the design tab.alber99 wrote:I am trying to do something similar but different. I have about 20 products all in the same category. I need to do a different header banner for each product page. Do I need to create a new "layout" for each product ?
There would be other solutions too, but for me the layout override seems the most practicle.
Edit: Please, in the future: viewtopic.php?p=707152#p707152
Also check the date of this thread...
hi! I'm running into the issue where the banner doesn't show up as an option when i go to place it in the layout
does anyone else experience that?
Also check the date of this thread...
hi! I'm running into the issue where the banner doesn't show up as an option when i go to place it in the layout

No OC version posted.agold wrote: ↑Sat Dec 23, 2017 6:42 amEdit: Please, in the future: viewtopic.php?p=707152#p707152
Also check the date of this thread...
hi! I'm running into the issue where the banner doesn't show up as an option when i go to place it in the layoutdoes anyone else experience that?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 108 guests