VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Kans on June 18, 2013, 17:22:39 PM

Title: Auto close add to cart pop up
Post by: Kans on June 18, 2013, 17:22:39 PM
Is there a way to automatically close the "add to cart" popup after a few seconds?

I tried editing the file facebox.js in /components/com_virtuemart/assets/js/
after the line
   $.facebox.loading()
add:
setTimeout($.facebox.close, 3000);

The problem with this solution is that it also auto closes the "Ask a question about this product" popup and the conditions popup in the check out, which is not good.

If not possible, how can I stay on the product page if I disable the popup?
Title: Re: Auto close add to cart pop up
Post by: AH on January 06, 2014, 16:26:23 PM
See reply # 8

http://forum.virtuemart.net/index.php?topic=107038.msg363967#msg363967 (http://forum.virtuemart.net/index.php?topic=107038.msg363967#msg363967)

Note that you will need to apply this to each update as it is a change to a file that deos not allow overrides.

I am at a loss as to why this is not an option in the config, but I guess more people like to keep the popup visible until the customer takes an action!