How to display product Delivery time and charge note manually on cart page.

shop.jpg
 
Go to Sections > cart-template.liquid

Include below snippets where you would like to add notes
 
<!-- to display vendor name -->
<h4 class="product-vendor">From <span>{{ item.product.vendor }}</span></h4>

<!-- loop for estimated dilivery based on vendor -->
{% if item.product.vendor == "Vendor1_Name" %}
<p>Estimated delivery time:15-25 days.</p>
<p>Estimated delivery time: 5-7 working days.</p>
{% elsif item.product.vendor == "Vendor2_Name" %}
<p>Estimated delivery time: 5-7 working days.</p>
{% endif %}

<!-- loop for estimated dilivery charge based on vendor -->
{% if item.product.vendor == "Vendor1_Name" and item.product.type == "Product_type" %}
<!-- also can be filtered with product type -->
<p>Delivery Charge: £5.99 </p>
{% elsif item.product.vendor == "Vendor2_Name" %}
<p>Delivery Charge: £1.99 </p>
{% else %}
<p>Delivery Charge : Free</p>
{% endif %}
 
Note : Backup is highly recommended before applying any changes.
0 Likes