In this article we'll show you how to use Weebly's button element to create a Foxy purchase option.
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 the footer of your Weebly website.
- In the Foxy dashboard, go to the Sample Code page.
- In the Sample Code page, copy the snippet of code from Step 1.
- In Weebly, click on the "Settings" option.
- Click on the "SEO" option.
- Scroll down to the "Footer Code" section.
- Paste the snippet of code you just copied.
- Save your changes.
Link Button Element
- Select your add to cart button to display button settings.
- Choose the "Website URL" option.
- Go back to the Foxy Sample Code page to get a sample purchase link.
- From the Step 2 section, copy the link example href value.
- In Weebly, paste the copied link into the "Insert URL" field.
- Modify the product parameters as needed. More information about product parameters can be found in our wiki here.
- Uncheck the "Open in new window" option.
- Save your changes.