VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: antonlundn9 on May 28, 2013, 11:33:54 AM

Title: Change add to cart button link
Post by: antonlundn9 on May 28, 2013, 11:33:54 AM
Hi! Right now if someone adds a product to the cart they get redirected to the cart. When you press the add to cart button I want them to stay on the current page.

Hope you understand what I mean.

Version: 2.0.20b
Title: Re: Change add to cart button link
Post by: jenkinhill on May 28, 2013, 12:26:52 PM
Check Configuration / Templates under Activate Css Styles & Javascripts that  Using the product Scripts is turned on and under Configuration / Checkout that Display modal popup upon 'Add to cart' is selected.

Normal action is for an AJAX popup to appear with a link to continue shopping or go to cart, the user stays on the product page and is not sent to the cart unless they select to do so. If this does not work for you then you probably have a JavaScript conflict with your Joomla template or some other module/plugin.
Title: Re: Change add to cart button link
Post by: antonlundn9 on May 28, 2013, 12:30:47 PM
Thank you for answering. The popup works, but I dont want a popup, I want to be able to stay on the current page without the popup appearing.
Title: Re: Change add to cart button link
Post by: jenkinhill on May 28, 2013, 16:19:30 PM
YOu still need to fire the AJAX to update the cart, so look at hiding the popup using css. eg see https://forum.virtuemart.net/index.php?topic=107038.msg358289#msg358289
Title: Re: Change add to cart button link
Post by: antonlundn9 on May 29, 2013, 15:31:35 PM
Great, now it works, can't believe I didn't think of that sooner, just hiding the popup with CSS. Thanks a bunch.