less than a minute read • Updated 5 days ago
Create a purchase button in SpaceCraft
In this article we'll show you how to use SpaceCraft's button block to create a Foxy purchase button.
SpaceCraft's button block can act as a Foxy purchase button. You add Foxy's loader snippet to your site footer, then point each product's button at a Foxy purchase link.
Add the Foxy loader snippet
The loader snippet displays the sidecart when a customer adds a product to cart, and stores customer sessions.
Create a products page
If you haven't created a Products page yet:
Add products
These steps work on any page type in SpaceCraft, not just products.
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 in the URL afterwards breaks the signature. Rebuild the link in the builder instead of hand-editing it in SpaceCraft.