I would like to be able to use images or text in my category module. I have enable the module to show on the left side of the store and it works fine. However, I would like to be able to use an image instead of text for a couple of brands that I really want to highlight.
Can someone tell me the easiest way to get this done or point me in the right direction if this has been already discussed?
Check the attachment to see what I am talking about...
Thanks in advance
Can someone tell me the easiest way to get this done or point me in the right direction if this has been already discussed?
Check the attachment to see what I am talking about...
Thanks in advance
Attachments
Categories.png (25.9 KiB) Viewed 3153 times
Please mention your exact OC Version and Theme used.
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Hi!
You may use "category wall" extensions for this.
My FREE extensions in marketplace. [ security | flexibility | speedup ]
I don't think that is what I need. Please check the attached image in this post to see what I am trying to accomplish. See how I added a drill next to the drilling category. That is what I am trying to do. Use an image instead of text on a specific category. I don't want to use tiles or anything like it.
Attachments
Categories.png (40.36 KiB) Viewed 3027 times
You'd need to adjust theme/default/template/extension/module/category.tpl to display the image file next to the category name. Then you'll need to apply css to the image to make sure it doesn't display wonky.
You'll also need to adjust the /catalog/controller/extension/module/category.php
to add in this section the adds the $data['thumb'] that is called in the tpl file.
A suggestion is to take a look at the <?php if ($thumb) { ?> section of catalog/view/theme/default/template/product/category.tpl
where it uses the image you put as the category image.
and the /catalog/controller/product/category.php
for examples.
Mike
You'll also need to adjust the /catalog/controller/extension/module/category.php
to add in this section the adds the $data['thumb'] that is called in the tpl file.
A suggestion is to take a look at the <?php if ($thumb) { ?> section of catalog/view/theme/default/template/product/category.tpl
where it uses the image you put as the category image.
and the /catalog/controller/product/category.php
for examples.
Mike
cue4cheap not cheap quality
Who is online
Users browsing this forum: No registered users and 10 guests