Adding Quantity Field to a Product Card

Edited

When a customer clicks on a base product that has a per unit, tiered, or volume pricing model, a field should be displayed for them to enter the quantity they wish to subscribe to.

Below is the code that can be used:

< div class="qty-container" data-bind="visible: selected()">

<input type="text" class="input-spinner" min="1" data-bind="value: quantity">

</div>

This is in combination with the button code:

<button class="btn btn-primary" data-bind="click: select">SELECT</button>

 

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.