Post by maxiscool » Wed Sep 28, 2011 9:52 am

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

Newbie

Posts

Joined
Wed Sep 28, 2011 9:47 am

Post by inactiveaccount9912 » Wed Sep 28, 2011 4:10 pm

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.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by uksitebuilder » Wed Sep 28, 2011 5:06 pm

Why can't you add a banner in the category description ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by maxiscool » Wed Sep 28, 2011 11:49 pm

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.
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.
uksitebuilder wrote:Why can't you add a banner in the category description ?
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.

Newbie

Posts

Joined
Wed Sep 28, 2011 9:47 am

Post by uksitebuilder » Thu Sep 29, 2011 1:52 am

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by maxiscool » Mon Oct 03, 2011 7:29 am

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.
Actually can you explain to me how you would do this? I understand how to make different templates but not how layouts actually work.
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
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.

Thank you

Newbie

Posts

Joined
Wed Sep 28, 2011 9:47 am

Post by marvmen21 » Mon Oct 03, 2011 8:07 am

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


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by inactiveaccount9912 » Tue Oct 04, 2011 3:19 pm

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).

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by onlinephilately » Fri Feb 17, 2012 10:39 pm

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).
This worked perfect for me. Thx!

New member

Posts

Joined
Thu Jan 27, 2011 3:14 am

Post by alber99 » Sun Apr 08, 2012 9:22 am

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 ?

New member

Posts

Joined
Sun Apr 08, 2012 9:14 am

Post by inactiveaccount9912 » Sun Apr 08, 2012 7:11 pm

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 ?
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.
There would be other solutions too, but for me the layout override seems the most practicle.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by agold » Sat Dec 23, 2017 6:42 am

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?

Newbie

Posts

Joined
Sat Dec 23, 2017 6:40 am

Post by straightlight » Sat Dec 23, 2017 10:46 pm

agold wrote:
Sat Dec 23, 2017 6:42 am
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?
No OC version posted.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: o3445 and 73 guests