I would like to create a popup/lightbox that activates when a customer clicks the checkout button, but only if a particular product has not been added to the store’s cart. The popup will encourage the customer to add the particular product to their cart.
If you’re using Wix own Stores, you unfortunately can’t since the “Checkout” button is part of Wix Stores App.
Elements part of apps are off-limits and can’t be accessible using the global selector $w , you can only control apps through their respective settings.
Ahmad, I have no experience with Wix Stores, but maybe you can create a router and once it gets a call for the checkout page it’ll check the cart products and based on that it’ll decide whether or not to stay on the cart page and to open a lightbox.
Isn’t that possible?