Help with cart-template.liquid custom coding

Help with cart-template.liquid custom coding

JessTNB
Tourist
5 0 1

My code currently reads;

  {%- endunless -%}

                              {% if line_item.title contains 'SPECIAL ORDER' %}

                              <strong><p><font color='RED'>Ships in 2-4 Weeks </font></p></strong>

                              {% endif %}
However, I want it to draw from the vendor name to add the message. I have tried this, however had no sucess with it working;

  {%- endunless -%}

              {%- if product.vendor == "Warehouse" -%}

              <strong><p><font color='RED'>Ships in 2-4 Weeks </font></p></strong>

               {% endif %}

 How do I code it to Vendor details in this instance?

Replies 4 (4)

KetanKumar
Shopify Partner
36939 3642 12001

@JessTNB 

can you please send store urk

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
JessTNB
Tourist
5 0 1

What is your recommendation for the code?

Dan-From-Ryviu
Shopify Partner
8548 1686 1693

Try this code instead of 

{%- endunless -%}
              {%- if line_item.vendor == "Warehouse" -%}
              <strong><p><font color='RED'>Ships in 2-4 Weeks </font></p></strong>
               {% endif %}

- Helpful? Like and Accept solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

JessTNB
Tourist
5 0 1

Thanks Dan - This was successful!!!