Author Topic: Add link to Choose a variant in product category page  (Read 145 times)

WilfredP

  • Beginner
  • *
  • Posts: 5
  • A beginner
Add link to Choose a variant in product category page
« 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.

driver_wedge

  • Jr. Member
  • **
  • Posts: 55
Re: Add link to Choose a variant in product category page
« Reply #1 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?

WilfredP

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: Add link to Choose a variant in product category page
« Reply #2 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