less than a minute read • Updated a day ago
Create a purchase button in Wix
How to turn any Wix button into an add-to-cart link so customers can purchase directly from your Wix site — grab a sample link from the Foxy admin, paste it into the button's link settings, and customize the product details.
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.