I have a website set up as an online ecommerce site. Due to my company's requirements we cannot use the default wix store setup. Also, our purchases and items are handled by a third party site. (Virtual Enterprise International). When users buy something, it reroutes them to a seperate page on the third party site. Their cart is also on the third party site, which means we cannot access how much they've spent.
I need to set up a system that shows a lightbox whenever the user purchases more than $150 worth of products (to give them a promo code). I cannot access the cart, but I can access the prices of each product. My idea was to add the price to a session key when the user clicks the button to buy the product. However, my website has lots of product pages. Is there a way that I can work with this session information without adding the function to every single new page? Even better, is there a way to mark buttons so that whenever any of the buy buttons get pressed, they trigger site code that adds the price to the session variable? I'm relatively new to Corvid, but I have plenty of programming experience. Any help would be greatly appreciated.
P.S. The site is for educational use, and we are selling virtual products as part of the Virtual Enterprise International program, so security is not a huge concern.