VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: 2cool on July 21, 2018, 21:26:39 pm

Title: Publish category images on homepage
Post by: 2cool on July 21, 2018, 21:26:39 pm
Hi, could someone tell me where to find a walkthrough to publish category images on a homepage?

Using Joomla! 3.8.10 + VirtueMart 3.2.14

Tried all kinds of settings but images don't show, all products are fine.
Attached my vm config and category settings and menu settings.
Guess it should be in here....

Thanks in advance,
Pas
Title: Re: Publish category images on homepage
Post by: Studio 42 on July 22, 2018, 00:36:28 am
Perhaps a template problem ?
Do you use category root as shop home page or virtuemart home view ?
Try one or other, if this help
Title: Re: Publish category images on homepage
Post by: 2cool on July 22, 2018, 08:14:36 am
I set home as special articles and use some modules and custom html.
Would be nice to add the categories images in the same way.
Or should this be done faster with custom html module?

Did try your menu suggestion and this shows categories, but this doesn't show subcategories,
also when select main category the subcategories images are not shown.
Also you can't select and order categories.

Reason for asking, I want to present categories in nice images 3x3 or 4x4 blocks.
A module should be nice to fit in different pages with options to select the categories ;)
example attached this is 2 images wide.

Thanks & regards,
Pas
Title: Re: Publish category images on homepage
Post by: Studio 42 on July 22, 2018, 12:41:24 pm
If you really need a specific render, it's better to use HTML directly, you loose more time to try to achieve this using a category module, especially if you only need this in home page
Title: Re: Publish category images on homepage
Post by: 2cool on July 23, 2018, 10:00:17 am
Thanks! I agree will be much faster/flexible in html.

To show subcategories images in category page, should this be done easier in html?
Or can this be done in vm config/ category settings?

example:
category= shoes
show descrition + subcategory images women, man, kids 

Thanks and regards,
Pas
Title: Re: Publish category images on homepage
Post by: Studio 42 on July 23, 2018, 10:08:13 am
If you want each time another render, it's more flexible to use directly HTML, but i always try to use template overrides when i can.
It's your choice not my, i only can give you advise, but i cannot do your work.
Title: Re: Publish category images on homepage
Post by: 2cool on July 23, 2018, 10:28:16 am
Thanks, I tried to find some info about these settings in latest version but it's pretty hard to find.
Guess for main categories on home page html is best solution.

Where can I find settings to display subcategories images only on main categories?
I a bit confused because there's so many places where settings are done; menu, vm config, template(override)
And could not find instructions on recent version.

Thanks,
Pas
Title: Re: Publish category images on homepage
Post by: jenkinhill on July 23, 2018, 10:41:15 am
See http://forum.virtuemart.net/index.php?topic=137598.0

And if there is not a config for it (which there is not for "display subcategories images only on main categories") then it should be handled using template overrides.