VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Harry Bevers on December 01, 2013, 11:23:44 AM

Title: Modal popup (add to cart) not working with custom link
Post by: Harry Bevers on December 01, 2013, 11:23:44 AM
I use in my website custom links to sell items, with specific links for a product. For example:
/index.php?option=com_virtuemart&view=cart&task=add&virtuemart_product_id[]=3&virtuemart_category_id[]=3&quantity[]=1
When using the default add to cart button on the shop, the modal popup works fine. However with this link, a page is opened with the cart. I have added
<script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script> to the <head> of my template.

Anybody any idea what I'm doing wrong?

Harry