VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: idlepress on November 20, 2012, 21:15:26 PM

Title: Hyperlink "add to cart" to open lightbox rather than redirect to cart?
Post by: idlepress on November 20, 2012, 21:15:26 PM
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&amp;view=cart&amp;task=add&amp;virtuemart_product_id[]=32&amp;virtuemart_category_id[]=1&amp;quantity[]=1">add to cart</a>
Title: Re: Hyperlink "add to cart" to open lightbox rather than redirect to cart?
Post by: chetanmadaan on November 22, 2012, 20:03:28 PM
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.
Title: Re: Hyperlink "add to cart" to open lightbox rather than redirect to cart?
Post by: bytelord on November 22, 2012, 21:10:20 PM
You can try with that one also

http://forum.virtuemart.net/index.php?topic=94539.msg337937#msg337937

Regards
Title: Re: Hyperlink "add to cart" to open lightbox rather than redirect to cart?
Post by: idlepress on November 25, 2012, 20:59:07 PM
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.
Title: Re: Hyperlink "add to cart" to open lightbox rather than redirect to cart?
Post by: bytelord on November 25, 2012, 23:31:38 PM
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