Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello, as the title suggests, I want to trigger a warning if the customer goes into a product page based on a certain vendor because the vendor would only ship to specific places and I want to highlight that to the customer as a warning.
Solved! Go to the solution
This is an accepted solution.
{% assign p_vendor = product.vendor | downcase %}
{% if p_vendor == ' vendor_name' %}
<div style="color: red;">
<h1>This is a warning</h1>
</div>
{% endif %}
Hello,
You can add a pop up to the product section or template.
Add this code in the code editor in shopify
<div style="position: absolute; top: 10px; right: 50%;">
<h1>This is a warning</h1>
</div>
This is an accepted solution.
{% assign p_vendor = product.vendor | downcase %}
{% if p_vendor == ' vendor_name' %}
<div style="color: red;">
<h1>This is a warning</h1>
</div>
{% endif %}
Hello,
Try the app Product Warnings on Checkout to create a warning pop up for your customers. You can create a warning for a certain product, for all products or for a specific collection. So in your case just create a smart collection with product vendor as a condition and target the warning to this collection.
User | RANK |
---|---|
40 | |
37 | |
30 | |
15 | |
12 |