VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: WilfredP on July 27, 2017, 09:39:45 AM

Title: Add link to Choose a variant in product category page
Post by: WilfredP on July 27, 2017, 09:39:45 AM
Hi all,

VM 3.2.2 , Joomla 3.7.3

I would like to add product detail link to the [Choose a variant] in product category page so that when there is a variant item, user can click on it and direct to product detail page. I tried add few code to sublayout/addtocartbtn.php however can't get the link correctly. Hope to get your assist. Thank you so much.
Title: Re: Add link to Choose a variant in product category page
Post by: driver_wedge on July 27, 2017, 13:07:50 PM
Why not just remove the 'Choose a variant' option and put a button there in its place that's linked directly to the product page?
Title: Re: Add link to Choose a variant in product category page
Post by: WilfredP on August 03, 2017, 08:44:59 AM
Thanks driver_wedge,

That's what i trying to do actually, add a link to button [Choose a variant] instead add own. Just I can't figure out the dynamic link for the product detail page. Can you advise the link?

Thank you so much