Your Store, Right on Your Website

Everything on this page is a live DPD demo store. Browse products, add them to your cart, try a coupon and check out, all without leaving the page until it's time to pay. You can do the same on your own site with one script tag and a few lines of HTML.

<script src="https://YOURSTORE.dpdcart.com/dpd.js"></script>
<dpd-product product="119694"></dpd-product>
A real store

See it running on a real website

Cast & Crumb is a made-up cooking shop we built to show what these components look like on a finished site. It's a plain static site on GitHub Pages. Every product card, buy button and the cart come from DPD, styled to match the shop, and checkout goes to the store's own DPD checkout page.

Buy anything with the test card and you'll get the real thing: a sample cookbook, a printable planner stamped with your name, even a short original music track.

Product cards

Show your products anywhere

Each card pulls its image, name and price straight from your DPD store, so it's never out of date. Click Add to cart and the cart slides in from the side. The page doesn't reload and your visitor stays right here.

See the code
<dpd-product product="119694"></dpd-product>
<dpd-product product="19883"></dpd-product>
<dpd-product product="163005"></dpd-product>
<dpd-product product="45181"></dpd-product>
Product page and cart

A full product page and a cart that keeps up

The detail layout adds your product description and a quantity field. This demo product has a license agreement, so you'll see how DPD asks the buyer to accept it before it goes in the cart. Upsells and cross-sells show up the same way. The cart on the right updates the moment anything changes, anywhere on the page.

See the code
<dpd-product product="3062" layout="detail"></dpd-product>
Try a coupon: DEMO10PER takes 10% off and DEMO5DOL takes $5 off. At checkout, use the demo card number shown on the payment page to finish the order for free and see the download delivery.
See the code
<dpd-cart></dpd-cart>
Buttons

Drop a buy button into your own design

Already have a sales page you love? Keep it. Put an add to cart button wherever you'd put a link, and the button text is whatever you write between the tags. A checkout button takes buyers straight to payment, and it stays disabled while the cart is empty.

If a product sells out, the button says so on its own.

Your own sales page

Pass The Steak

This box is plain HTML styled by this website, the way your own sales page would be. Only the two buttons come from DPD. (It's a demo product, so you'll get a sample PDF, not the recipes.)

Get the cookbook Check out now
See the code
<dpd-add-to-cart product="163005">Get the cookbook</dpd-add-to-cart>
<dpd-checkout-button>Check out now</dpd-checkout-button>
Styling

Make it look like your site

The components use your page's font by default. Set a few CSS variables to change the colors and corners, or use ::part() for anything else. Pick a style below and watch the same live components change.

Add the recipe cards
CSS
For developers

Hook in your own scripts

Every change to the cart fires a dpd:cart event on the window, and every add fires dpd:added. Use them to send analytics, update a badge of your own or show a thank you note. Add something to your cart on this page and watch the log.

JavaScript
window.addEventListener("dpd:cart", (e) => {
  console.log(e.detail.itemCount, e.detail.cart);
});
window.addEventListener("dpd:added", (e) => {
  console.log("Added", e.detail.product);
});
Event log
  1. Waiting for the cart to load...
Your existing buttons

Buttons you already have keep working

Nothing changes for button and widget code you've already pasted into your site. They open the lightbox cart like they always have, and they share the same cart as the new components. Add an item with the classic button below and check the cart icon at the top of the page. Want the new cart drawer on an old link? Add data-dpd-mode="inline".

Classic button, lightbox cart

Add to cart

Classic link, new cart drawer

Add the Knife Skills class
See the code
<a class="dpdcart" data-dpd-mode="inline" href="https://demo.dpdcart.com/cart/add?product_id=3780&amp;method_id=2164">Add the Knife Skills class</a>

Get the code for your store

Open any product's Button code page in your DPD dashboard and pick the Components tab. It writes the code for that product and shows you a live preview. Add your website's domain under Settings, Checkout, Embed domains, paste the code into your page and you're selling.

The components speak your store's language too, in all 27 languages DPD's checkout supports.

Start Selling Now!

Take it for a test drive. No credit card required.