Turn on auto-advance feature
PreviousSet billing details for the InLine CheckoutNextAssign values for the additional order fields
Last updated
Was this helpful?
Was this helpful?
<a href="#" class="btn btn-success" id="buy-button">Buy now!</a>window.document.getElementById('buy-button').addEventListener('click', function() {
TwoCoInlineCart.products.add({
code: "74B8E17CC0"
});
TwoCoInlineCart.cart.setAutoAdvance(true);
TwoCoInlineCart.billing.setCountry('US');
TwoCoInlineCart.billing.setEmail('some@email.com');
TwoCoInlineCart.billing.setName('John Doe');
TwoCoInlineCart.cart.checkout();
});