less than a minute read • Updated 5 days ago
Create a purchase button in Wix
In this tutorial we show you how to add a simple purchase option to your Wix website.
Add the Foxy loader snippet
The loader snippet displays the sidecart when a customer adds a product to cart, and stores customer sessions. Without it, your button sends the customer straight to the Foxy cart page instead of opening the sidecart.You if you want to use the sidecart do this step. If not it's optional.
Your Wix site must be published and have a connected domain before you can add custom code.
Notes
Set your product's parameters in the Link & Form Builder rather than editing the URL afterwards. See Standard parameters for what's available.
If your store has HMAC product validation enabled, the builder signs your links automatically, and editing any parameter afterwards breaks the signature. Rebuild the link in the builder instead.