Show an offer as a product card on another website

Copy one line of code from an offer’s Embed tab and paste it on your blog or another website: it shows the offer’s name, picture, description and price, with a button to its checkout on your site.

A product card shows one of your offers on a website you don't run on Zinstruct, such as a WordPress blog or a partner's page. It shows the offer's name, its product picture, a short description, the price and a button (Buy now, Subscribe or Get it free). The button opens the offer's checkout on your own site, where the buyer pays as usual.

The card is drawn by a small script from your site. It is not a framed copy of your checkout: your checkout and other site pages can't be shown inside another website.

Who can do this

  • Anyone on your team who can open Revenue → Offers can copy the code. Copying changes nothing.
  • Product cards are included on every plan.
  • You need a website: the card loads from your site's address.

Copy the code

  1. Go to Revenue → Offers and open the offer.
  2. Click the Embed tab.
  3. In Product card for another website, click Copy code. The button shows Copied!.
  4. On the other website, add an HTML block (some builders call it a code, custom HTML or embed block) where you want the card, and paste the code.
  5. Publish that page. The card appears where you pasted the code.

The code is one line, for example <script src="https://yourschool.zinstruct.com/api/embed/offers/…/card.js" async></script>. It uses your custom domain when one is connected and active.

The Preview panel below the code shows the card as visitors see it.

What visitors see

  • A card up to 360 pixels wide, with its own fonts and colours, so the other website's styles don't change it.
  • The offer's name, its product's picture, the offer's description (or the product's, when the offer has none) cut to about 240 characters, the price and how it's paid (for example "One-time payment"). A pay-what-you-want offer shows From and its minimum price.
  • A button that opens the checkout on your site in the same tab.

When the card shows nothing

The card hides itself, leaving no gap or error on the page, while:

  • the offer is a draft or was deleted,
  • its Available until date has passed, its Quantity limit is reached, or one of its products is archived,
  • your site is offline (see Take your site offline), or your workspace is suspended or closed.

It comes back on its own once the offer is on sale again. The Embed tab tells you when the card isn't showing.

What happens next

  • Changes to the offer's name, price, description or picture show up on the card within about five minutes.
  • Buyers who click the button get the same checkout, receipt and access as from any other checkout link.
  • Sales from the card show in Revenue → Transactions like any other sale.

Common errors

  • The Embed tab says "Set up your website first: the card loads from your site.": create your website, then come back.
  • The Embed tab says "This offer is a draft, so the card shows nothing until you publish it.": publish the offer.
  • The Preview panel says "The card isn’t showing right now": the offer isn't on sale or your site is offline. See the list above.
  • Nothing shows on the other website: check that the page kept the code as you pasted it. Some editors remove scripts from a normal text block, so use an HTML or code block. The other site may also have a security setting that blocks scripts from other addresses.
  • The card still shows an old price: wait about five minutes and reload the page.

Related articles

Still stuck? Talk to a human.

Email support@zinstruct.com. We reply within one business day, Monday to Friday, 9 a.m. to 5 p.m. US Mountain Time. Already signed in? Ask from the help button inside the app.

Email support