News:

Looking for documentation? Take a look on our wiki

Main Menu

Auto close add to cart pop up

Started by Kans, June 18, 2013, 17:22:39 PM

Previous topic - Next topic

Kans

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?

AH

See reply # 8

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!
Regards
A

Joomla 4.4.5
php 8.1