templates not working as expected

tbone1
New Member
3 0 0

https://samuelandstone.com/collections/mens-wedding-bands

https://samuelandstone.com/collections/settings

The client wanted any product with the type of 'Setting' to have the word 'from' before the price. I implemented the following in the code within the price div just before the price: 

            {% if product.type == 'Setting' %}
              From 
            {% endif %}
 
I also added a data-test="{{product.type}}" to the price div. As you can see from viewing the source, none of the settings have the word 'from', yet some (not all) products that do not have the product type of 'Setting' have the word 'from'.
 
EG from html source:
 
<div class="grid-product__price" data-test="Setting">
$1,888.51
</div>
 
<div class="grid-product__price" data-test="Wedding Band">from $1,133.11
</div>
 
<div class="grid-product__price" data-test="Wedding Band">
$1,699.66
</div>
 
I am using the theme cli, latest version with: theme watch --allow-live 
 
I tried deleting the code that I added, but it is still appearing on the website. I checked the theme source in shopify admin, and it is getting updated correctly, but it still appears, like it's cached or something. 
0 Likes