VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mratki on September 08, 2021, 12:12:27 PM

Title: How to make linkable category image
Post by: mratki on September 08, 2021, 12:12:27 PM
Hello, is it possible to make category image linkable in product category view?

Link to webp: https://getim.eu/dev/em-trgovina/index.php/prodajni-program

Regards,
M
Title: Re: How to make linkable category image
Post by: Jörgen on September 08, 2021, 12:21:40 PM
This would be a question for the mega-shaper template.

Jörgen
Title: Re: How to make linkable category image
Post by: mratki on October 08, 2021, 08:30:28 AM
They don't know the answer either... can you help me?

Regards,
M
Title: Re: How to make linkable category image
Post by: jenkinhill on October 08, 2021, 11:44:28 AM
Look at the default VM template code (which has the image link in place)   /components/com_virtuemart/sublayouts/category.php  and compare that with your template override, /templates/shaper_megadeal_ii/html/com_virtuemart/sublayouts/category.php

That should guide you to the code to use. We cannot help with the exact code as that would require us to have a copy of your template.
Title: Re: How to make linkable category image
Post by: mratki on October 11, 2021, 12:34:41 PM
Something in their overrided category.php file was blocking link, I just deleted part for wrapping image and it's working now. Thank you so much!

Regards,
M