Create a Purchase Button
In this article we'll show you how to use Launchaco's button element to create a Foxy purchase option.

In this article
Add Foxy Code Snippet
To display the sidecart when a customer adds a product to cart and to store customer sessions, Foxy's code snippet must be added to your Launchaco website.
- 1
- In the Foxy dashboard, go to the Sample Code page.
- 2
- In the Sample Code page, copy the snippet of code from the Step 1 section.
- 3
- In Launchaco, click on the "Website & Page Settings" option.
- 4
-
In the "Website & Page Settings" modal, click on the "Website Settings" option.
- 5
-
Paste the snippet of code you just copied into the "Custom Code" section.
- 6
-
Click the "Save" button to save your changes.
Link Button Element
- 1
-
In Launchaco, select your add to cart button to display the button settings.
- 2
- Go back to the Foxy Sample Code page to get a sample purchase link.
- 3
-
From the Step 2 section, copy the link example
href
value. - 4
- In Launchaco, paste the link you just copied into the "Your Link" field.
- 5
- Modify the product parameters as needed. More information about product parameters can be found in our wiki here.
- 6
- Click on the "Save" button to save your changes.
- 7
- Click on the "Publish" or "Republish" option to publish your changes.