All things Shopify and commerce
Hi everyone,
I’m looking to create a mandatory discount field & checkbox with "i dont have discount code" field on the cart page of my Shopify store. Currently, my cart page doesn’t have a discount field at all.
Could someone guide me on how to implement this? Are there any specific steps or code snippets that can help achieve this functionality?
You mean the "discount code" field? It's only display in the checkout page rather than in the cart page.
If you want to add some field and checkbox to the cart page,
customise your theme,switch to edit code, edit the file "sections/main-cart-footer.liquid",
find the code
<div class="cart__ctas" {{ block.shopify_attributes }}>
and add below code after it
<input type="checkbox" required>i dont have discount code
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024