Websites and builders
Wix and Wix Studio
On Wix, the simplest way to sell is a Wix button that opens your hosted Plandalf checkout. You can also show a checkout inside the page with an Embed HTML element.
Wix runs embedded code in a sandboxed frame, separate from the rest of the page. A button inside an embed can't reach a script added in Settings → Custom Code, and Wix's own buttons can't carry Plandalf attributes. So on Wix, link buttons to your hosted checkout, and keep the script and any inline checkout together in one embed.
Add the script
For buttons there's nothing to install: a hosted checkout link works on any Wix plan. For an inline checkout or a countdown, the script goes inside the same Embed HTML element as the checkout, shown in the next sections. Copy your script line from your checkout's Share screen (pick HTML):
<script async src="https://YOUR-ORG.plandalf.dev/js/plandalf-sdk.js"></script>
Open a checkout from a button
Copy your checkout link
In Plandalf, open the checkout's Share screen, choose Hosted link and copy Your checkout link.
Link a Wix button to it
In the Wix editor, select a button, click the link icon, choose Web Address and paste the link. Choose whether it opens in the same tab or a new one.
Publish
Buyers land on the checkout page Plandalf hosts for you. See Checkout links.
Show a checkout on the page
Click Add Elements → Embed Code → Embed HTML, choose Code and paste the script and the checkout together:
<script async src="https://YOUR-ORG.plandalf.dev/js/plandalf-sdk.js"></script>
<div data-plandalf-mount="YOUR-CHECKOUT" style="min-height: 480px"></div>
The checkout renders inside the element's frame, so drag the element tall enough to hold the whole checkout without scrolling. Publish, then make a test purchase there before you send buyers to it.
Show a deadline timer
Add an Embed HTML element with the script and an empty element that has your deadline timer's slug. The script draws the live countdown inside it.
<script async src="https://YOUR-ORG.plandalf.dev/js/plandalf-sdk.js"></script>
<div data-plandalf-promo="YOUR-PROMO"></div>
To send buyers to the current deadline timer tier from a Wix button, link it to the deadline timer's tracking link instead of the checkout link. Plandalf sends each click to the active tier's page. See Deadline timer links and landing pages.
Check it's working
Open the published site
Use a private window, so you see what a buyer sees.
Click your button
The hosted checkout opens with your offer and price.
Make a test purchase
Use Open the test checkout on the Share screen to try the hosted checkout with Stripe test cards. See Test mode.
If it isn't working
- A Plandalf button pasted into an embed does nothing on its own: the embed can't see a script from Custom Code. Use a hosted link, or put the script in the same embed.
- If the inline checkout is cut off, make the Embed HTML element taller.
- Velo page code can't call
plandalf.present(): it runs apart from the page, with no access to itswindow. Use the options above.
See Troubleshooting.