Test adding a product coupon to the InLine Checkout
Overview
Use case - add product coupon
Sample request
HTML
<a href="#" class="btn btn-success" id="buy-button">Buy now!</a>JavaScript
window.document.getElementById('buy-button').addEventListener('click', function() {
TwoCoInlineCart.products.add({
code: "74B8E17CC0"
});
TwoCoInlineCart.cart.addCoupon('CUPON');
TwoCoInlineCart.cart.checkout();
});Demo
Last updated
Was this helpful?