Skip to content

Widgets overview

Neocarts widgets add product subscriptions to a shop’s website. They are loaded with one script from the CDN; they need no keys and no server involvement.

Widget Where it shows What it does
Subscribe buttons product page, catalogue card, cart the shopper picks how often to deliver a product
Checkout a window over the page contacts → delivery → review → payment → result

Subscribe buttons on product cards

  1. You embed the script on every page of the shop.
  2. You place a subscribe button under the «Buy» button. The shopper picks a frequency; the choice is kept in the browser.
  3. When the shopper clicks «Checkout» in your cart, your server creates an order through the Shop API. getOrderItems() gives you its lines.
  4. The page calls open({ orderId }) and the checkout opens.
  5. After payment the page receives the neocarts:paid event and the server receives webhooks.

The cart, prices and buy buttons stay yours. Order totals are computed by Neocarts on the server — the widget does not send them.