Please follow the steps below to apply cart restrictions to your Shopify store using the Dawn theme:
1. Go to your Shopify Admin > Online Store > Themes.
2. Click the three dots on your current theme and select Edit Code.
3. In the code editor, open the main-cart-items.liquid file.
(Note: The file name may vary depending on your theme.)
4. Return to your store’s cart page. Inspect the quantity input box to identify its class.
5. Search for the input class you found inside the main-cart-items.liquid file. Then add the class multivariants_cart_quantity_box next to the input’s existing class.
6. Also, add the attribute: mv_cart_item_key=”{{item.key}}”
7. On the cart page, inspect the remove button and note its class.
Locate that class in main-cart-items.liquid and add this code onclick=”reloadDel();”
8.Before the {% schema %} tag in the same file, insert the following script and save it:
<script type=”text/javascript”>
function reloadDel(){
setTimeout(function(){window.location.reload();},500);
}
</script>
9. On the cart page, inspect the checkout button and note its class. Open the main-cart-footer.liquid file and search for that class (Note: The file name may vary depending on your theme.) Add this multivariants_cart_checkout_btn class next to the existing checkout button class.
Once saved, the cart restriction will be successfully applied.