How to add the " quantity " counter at the checkout page

sachingupta
New Member
2 0 0

Hi Everyone, 

Can someone pl guide me on how to add the quantity counter at the checkout page? Iam not able to do the same on my page.

Attaching a sample screenshot for reference.

TIA.

Best,
Sachinquantity.jpg

Replies 3 (3)
Tuecus
Shopify Partner
2589 78 376

Hello @sachingupta ,

Try below <script></script>.

$(document).on('ready', function () { // initialization
var counter = 0;

$.HSCore.components.HSQantityCounter.init('.js-quantity', {
stopIncrease: function() {
if (counter >= 19) return true;
},
afterIncrease: function() {
counter += 1;
},
afterDecrease: function() {
counter -= 1;
}
});
});

Thanks,
Tuecus.

 

Apps Developer Team |
@Elist eBay Integration
@Tuecus-Customer Page
@Aliexpress Dropshipping & More
If the my answer is helpful to you? Click Like/Accept Solution to let me Know!!
sachingupta
New Member
2 0 0
Hi. Can you also pl guide me as to how and where to add this script ?
MS-WEB-DESIGNER
Shopify Partner
3012 181 488

Dear @sachingupta 

Shopify Plus users can only edit the Checkout page.

Click Here to Hire Shopify Store Customization Experts
Boost Conversions & Average Order Value with this
Best App for Sticky Add To Cart