I have a hyperlink "Add to cart" on my site rather than using the Virtuemart product page. When the link is clicked it goes right to the shopping cart. What I would like to do is have the light box pop up that the item was added to the cart rather than redirecting. Is this possible?
My code right now:
Product - $20
<a href="index.php?option=com_virtuemart&view=cart&task=add&virtuemart_product_id[]=32&virtuemart_category_id[]=1&quantity[]=1">add to cart</a>
It wouldn't be a hyper link first of all.
you would have to do a form post and include all the .js files that comes in the VM page.
You can try with that one also
http://forum.virtuemart.net/index.php?topic=94539.msg337937#msg337937
Regards
Thanks for the help. That is the original thread I was using for help, however no one responded to that one.
I really didn't want to use a form button though.
Hello,
You could try that one also http://forum.virtuemart.net/index.php?topic=110368.0
I haven't tried but you could and modified on your needs
Regards