Display product wise available delivery method in the cart?
End Result :
Go to the products section, open a product, and enter the delivery method tags for example
Go to the theme customiser. Click on edit code.
A new window will open after clicking on the edit code button as shown below.
Look for the cart page in the search files box. The cart page name will vary in some themes for ex. in some themes you will see that as cart.js or in some cart.liquid.js or cart-template.liquid
Now click on the cart template.liquid page then add below snippet code above or of cart_details
Change cart type – This guide explains configuring the app to be used on the cart page and customizing the display.
Go to the products section, open a product, and enter the delivery method tags for example
Go to the theme customiser. Click on edit code.
A new window will open after clicking on the edit code button as shown below.
Look for the cart page in the search files box. The cart page name will vary in some themes for ex. in some themes you will see that as cart.js or in some cart.liquid.js or cart-template.liquid
Now click on the cart template.liquid page then add below snippet code above or of cart_details
{% if item.product.tags contains "pick up" %}
<p style="color:green"><strong>Pickup Available</strong></p>
{% endif %}
{% if item.product.tags contains "local delivery" %}
<p style="color:green"><strong>Local Delivery Available</strong></p>
{% endif %}
{% if item.product.tags contains "Courier" %}
<p style="color:green"><strong>Shipping Available</strong></p>
{% endif %}
Related Document:
Change cart type – This guide explains configuring the app to be used on the cart page and customizing the display.
Updated on: 11/05/2024
Thank you!