Hi,
I want to show a lightbox after the customer adds a product to the Cart. Mainly, that happens on the standard “Product Page” after the customer clicks the “Add to Cart” button.
Hi,
I want to show a lightbox after the customer adds a product to the Cart. Mainly, that happens on the standard “Product Page” after the customer clicks the “Add to Cart” button.
Hi,
You can use the onClick() event for your button. And the openLightbox function in wix-window API.
Note that it won’t be possible to add the onClick event to a standard “Add to Cart” button. You will need to add a custom one. You can see an example in step 11 here .
Did anyone ever find a way to do this? I can’t find a name for the Store app’s add to cart lightbox, which means I don’t have the argument for the openLightBox function.
Use a local array to store the products from the cart, then use the the cart’s onChange( ) event handler to check the number of products in the new cart, and the local array of products, and run your code if the new cart has a new item.
This thread is old and is being closed.