Post by twd247 » Sat Aug 12, 2017 5:33 am

Hi
please can you help me. I looking to show the images of the cub Category in the main Category. Like the pic below and not just a list.
Image

Thank you Mark

Image
http://www.flowcentre.co.uk


New member

Posts

Joined
Tue Aug 02, 2011 11:23 pm

Post by WaxedPerfection » Sat Aug 12, 2017 6:50 am

you will need a mod -
https://www.opencart.com/index.php?rout ... load_id=55

or make yourself a html module, and use the below code, changing the images and urls of course.

Code: Select all

<div class="col-md-3">
										  <div style="text-align: center; "><a href="https://demo.opencart.com/"><img src="https://demo.opencart.com/image/cache/catalog/demo/macbook_1-200x200.jpg" alt="Macs"></a></div>
										<div style="text-align: center;">
					  <a href="https://demo.opencart.com/">Macs</a>
					</div>				  
									  </div>
<div class="col-md-3">
										  <div style="text-align: center; "><a href="https://demo.opencart.com/"><img src="https://demo.opencart.com/image/cache/catalog/demo/macbook_1-200x200.jpg" alt="Macs"></a></div>
										<div style="text-align: center;">
					  <a href="https://demo.opencart.com/">Macs</a>
					</div>				  
									  </div>
<div class="col-md-3">
										  <div style="text-align: center; "><a href="https://demo.opencart.com/"><img src="https://demo.opencart.com/image/cache/catalog/demo/macbook_1-200x200.jpg" alt="Macs"></a></div>
										<div style="text-align: center;">
					  <a href="https://demo.opencart.com/">Macs</a>
					</div>				  
									  </div>
<div class="col-md-3">
										  <div style="text-align: center; "><a href="https://demo.opencart.com/"><img src="https://demo.opencart.com/image/cache/catalog/demo/macbook_1-200x200.jpg" alt="Macs"></a></div>
										<div style="text-align: center;">
					  <a href="https://demo.opencart.com/">Macs</a>
					</div>				  
									  </div>

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by twd247 » Sun Aug 13, 2017 11:29 pm

Hi thank you I have just purchased the mod but it only puts the images on the homepage. The text that you have put in. will this put it in the category page for the subcategory images to show

So open wanted Grey and then I will have a list with pictures of the sub categories

Thank you
Mark

Image
http://www.flowcentre.co.uk


New member

Posts

Joined
Tue Aug 02, 2011 11:23 pm

Post by WaxedPerfection » Mon Aug 14, 2017 1:38 am

yes, you can place them anywhere, just create a new html module,

Home >> Extensions >> HTML Content
insert the code and enable
now go to
Home >> Design >> Layouts >> Category
and add the html module you created before and they will show in your location

Example - https://image.ibb.co/cVK7hF/sub_cats_as_images.jpg
Image

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by GoGo OpenCart » Mon Aug 14, 2017 8:14 pm

@twd247: I sent you a PM, so please check it ;)

@WaxedPerfection: I really don't understand why would someone want to create all that manually with HTML, and then to create different layouts for different categories, etc.?

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by WaxedPerfection » Tue Aug 15, 2017 12:27 am

@GoGo OpenCart

Its was free!! and the quickest way of doing it, other than a Module, you would only need to edit it once, and have it in more than one location. or you would edit it to have different ones in different locations.

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by GoGo OpenCart » Tue Aug 15, 2017 1:05 am

@WaxedPerfection: Do you even understand what @twd247 is asking for...? :) Your solution is nonsense for what's asked in this post, just waste of time, nothing else... Manually adding all the subcategories in HTML, really...? :)

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by WaxedPerfection » Tue Aug 15, 2017 4:11 am

Clearly you are more advanced than me on this subject, so I will leave it with you and take my nonsense else where. I do hope your customers of your modules receive a better service than leaving comments like that!, I was trying to help and it does clearly work as my screen shot shown!

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by GoGo OpenCart » Tue Aug 15, 2017 4:35 am

Don't get me wrong, but sometimes trying to help can do more harm than good, and all I wanted to do is to just point out that manually adding the subcategories with HTML, is just waste of time, nothing else, when the same thing can be done automatically with PHP, so your suggestion could make someone to lose a lot of time... Do you know what will happen when the categories and subcategories are added/removed/changed on a regular basis...? With your solution, all the work will need to be redone all over again, from scratch...

Also, here's another example of the same HTML suggestion from you:

viewtopic.php?f=10&t=186594#p682178

At which, as you can see, I also replied...

From what I can see, you're quite new to OpenCart (at least as a member to this forum), so get some more practice with OpenCart, become more experienced with it, and you're more than welcome to provide useful help on the forum ;)

And since you've mentioned it, speaking about my customers, feel free to check the response time of the comments, and also read all the nice and positive comments, and see all the five stars votes, for all of my modules, and you'll get the idea on what kind of a support all of my customers receive from me ;)

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by lindsey80 » Mon Apr 23, 2018 5:22 am

Hello,

Is there a way to do this as I can't find any extensions compatible with 3.0.2.0?? Any help much appreciated. I would like to show the sub category images on the page when someone selects show all images. It looks rubbish showing just a list of products!

Many thanks

Attachments

Screenshot.jpg

Screenshot.jpg (349.33 KiB) Viewed 7106 times


Newbie

Posts

Joined
Fri Feb 02, 2018 9:57 pm

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by lindsey80 » Tue Apr 24, 2018 3:57 am

Hi Thanks for the link. However, this is not showing in my module list. I have successfully installed and refreshed but can't see it??

Best regards

Newbie

Posts

Joined
Fri Feb 02, 2018 9:57 pm

Post by xxvirusxx » Tue Apr 24, 2018 3:37 pm

Is not a module to see on Extensions--Modules.
This is a OCmod file. You can see in Extensions-Modifications and work only with Default theme.

Clear Theme and SASS cache.

On the link is for oc 2.3, my converted is for oc 3.0

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by lindsey80 » Tue Apr 24, 2018 11:07 pm

Thanks so much, it was already working and I didn't even realise!!

Newbie

Posts

Joined
Fri Feb 02, 2018 9:57 pm

Post by pcwerks » Wed Jul 24, 2019 10:04 pm

xxvirusxx wrote:
Mon Apr 23, 2018 7:45 am
Converted to 3.0.2.0
https://www.opencart.com/index.php?rout ... n_id=30021
xxvirusxx, I downloaded and installed this modification. The upload says it's successful, and the modifications log adds this

Code: Select all

MOD: Subcategories Thumbnails

FILE: catalog/controller/product/category.php
CODE: 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
LINE: 148

FILE: catalog/view/theme/default/template/product/category.twig
CODE: {% if categories|length <= 5 %}
LINE: 28
CODE: {{ header }}
LINE: 23
----------------------------------------------------------------
I have clicked the refresh button under extensions->modifications, and also the 2 refresh buttons on the main dashboard to refresh the theme and sass caches, but I am still not seeing images for sub-categories. My store is using the default theme, but it is version 3.0.3.2 and not 3.0.2.0. Do you know if your modification needs to be updated to work with 3.0.3.2?

Thanks for your work by the way, I hope to get this working on my store. I can't believe that OC wouldn't make this an available option when it seems like it's just 1 or 2 lines of code!?!

Newbie

Posts

Joined
Wed Jul 24, 2019 5:44 am

Post by xxvirusxx » Fri Jul 26, 2019 5:45 pm

You have added images for that categories?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by kestas » Fri Jul 26, 2019 8:14 pm

you can try attached one....

Attachments

images to the refine search


Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by carlbutler7jjc » Sun Aug 11, 2019 6:10 am

xxvirusxx wrote:
Mon Apr 23, 2018 7:45 am
Converted to 3.0.2.0
https://www.opencart.com/index.php?rout ... n_id=30021
Hi, great helpful extention!! However I've installed on pavo theme and kind of works. Looks like it wants to load an image but doesn't. Any suggestions?

Image

Attachments

Screenshot_20190810-230916_Chrome.jpg

Screenshot_20190810-230916_Chrome.jpg (188.7 KiB) Viewed 4838 times



Posts

Joined
Thu Jul 11, 2019 2:02 am

Post by carlbutler7jjc » Sun Aug 11, 2019 6:36 am

Managed to get it to work with the second download and works flawlessly. Is there anyway to create a black border and edit the radius corners to a more rounded profile to make it look more professional?


Posts

Joined
Thu Jul 11, 2019 2:02 am

Post by xxvirusxx » Mon Aug 12, 2019 1:53 pm

Make changes in css...files theme

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: Bing [Bot] and 94 guests