DotApparel21 Voucher Widget
React widget for redeeming Apparel21 vouchers in the Shopify checkout.
Installation
In layout/checkout.liquid
, add the following just before the </head>
tag.
<script src="https://unpkg.com/@dotdev/dotapparel21-voucher-widget"></script>
Local development
Run npm start
to start the dev server.
In layout/checkout.liquid
in a preview theme, add the following just before the </head>
tag.
<script src="http://127.0.0.1:8000/app.js"></script>