Skip to content
CrateHelp Centre
Browse guides

On this page

Online store

Sell on your own website

Add a buy button, a product widget, a product grid or a cart button to any website that accepts HTML, from Settings > Embed.

Reviewed

View as Markdown

On this page

Already have a website or a blog? Add a Crate buy button to it. Buyers click it and check out with Crate, and the order lands in your dashboard like any other. You set it up under Settings > Embed, on every plan.

Step 1: Choose an embed type

  1. Open Settings > Embed.
  2. Under Embed type, choose one:
Type What it adds to your page
Buy button One button for one product
Product widget A product's photo, price, options and a buy button
All products A live grid of everything you sell
Shopping cart A cart button on any page
alt: The Embed settings page with the four embed types, the Configure options and the Install snippet
caption: Choose a type, configure it, then copy the snippet.
1: 20,18 Embed type
2: 50,45 Configure
3: 80,75 Install

Step 2: Configure it

For a Buy button or Product widget:

  1. Under Product, choose the product this embed sells.
  2. If the product has options, choose one, or Let the customer choose at checkout.
  3. Under On tap, choose Open checkout in a popup, Add to the cart or Go to the product page.
  4. Type the Button text, or leave it blank to show Buy now.

For All products, choose how many Products shown. For Shopping cart, the Floating button sticks to the bottom right of every page you paste it on.

Under Button style, the button color starts from your brand colour, and you can change the color and corners. Buttons you have already pasted update on their own when you change these settings.

Step 3: Copy the snippet

  1. Under Install, choose Copy next to Snippet.
  2. On your website, add an HTML, code or embed block where the button should appear, and paste the snippet.
  3. Publish the page on your website.

The script line in the snippet is only needed once per page. Install guides on the same page show where to paste it for common website builders.

alt: A buy button and product widget from Crate shown on an external web page
caption: The embed on your own website.

Step 4: Test it

  1. Open your website page and choose the button.
  2. Check that checkout opens and shows the right product and price.

Open the page on a phone as well.

alt: A product widget from Crate on an external web page viewed on a phone
caption: Check the embed on a phone too.
frame: phone

See how it performs

Under Performance, see views, clicks and how many clicks turned into sales over the Last 30 days, by page and by type. A new page shows up a few minutes after its first visitor. Until then you see Nothing measured yet.

Troubleshooting

  • You see "You have no published products yet": publish a product first. The cart button still works.
  • You see "Your store has no public web address yet": choose Go to Domains and check your store address.
  • The button doesn't appear on my site: some website builders only show embeds on the published page, not in their editor. Check the live page. On a free website plan, HTML blocks may be blocked; use Plain link instead.
  • The button opens my product page, not checkout: a browser blocked the script, so the button falls back to your product page. Buyers can still buy there.

Troubleshooting

Next steps

Was this helpful?

Yes No

Still need a hand?

Tell us the task you were trying to complete and the message you saw. Include your store name or order reference when relevant. Keep passwords, API secrets and card details private.

Contact Crate