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>

New 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

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

New 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!

New 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
Who is online

Users browsing this forum: No registered users and 8 guests