Hyperlink "add to cart" to open lightbox rather than redirect to cart?

Started by idlepress, November 20, 2012, 21:15:26 PM

Previous topic - Next topic

idlepress

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>

chetanmadaan

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.

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

idlepress

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.

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!