Hi folks, really hoping someone on here can help! I have a client with live site www.hairypony.com.au - well over a month ago we implemented a section on the cart page that offered customers a free gift when the cart total is equal to or greater than $100; when the cart is equal or greater than $250 they get more free gift options revealed to choose from. This is implemented using liquid code to capture a cart attribute which comes through to the client under ‘Additional Details’ field, telling the client which gift is selected for shipping. This has worked perfectly for the most part, however recently we have seen customers spending less than $100 and still being able to select a free gift.
The issue we are seeing is not happening for every customer, only a very small few here & there. I am trying to troubleshoot this, however I cannot seem to recreate the issue myself? The free gift section is not displayed to until I add at least $100 of product to cart.
Seeking some advice on how I can troubleshoot this when I am unable to recreate the issue? If it is something with the wheel spin interfering with our theme, how would I determine and fix this?
The code for the snippet I created - ‘freegift100.liquid’ - is following:
{{'Select a Free Gift'}}
{% comment %} FREE GIFT TABLE FORMAT / PRODUCT SELECTIONS {% endcomment %}
{% comment %} UNICORN COOKIES {% endcomment %}
{% comment %} COMPRESSED SPONGE {% endcomment %}
{% comment %} EQUINE SAFETY RAZORS {% endcomment %}
|
Select: <input type=“radio” name=“attributes[Gift Selections]” value=“Unicorn Cookies”{% if cart.attributes[“Gift Selections”] == “Unicorn Cookies” %} checked{% endif %}> |
Huds & Toke Unicorn CookieMolasses Based, 1 Piece |
Regular price
|
|
|
Select: <input type=“radio” name=“attributes[Gift Selections]” value=“Compressed Sponge”{% if cart.attributes[“Gift Selections”] == “Compressed Sponge” %} checked{% endif %}> |
|
Compressed Sponge |
Regular price
|
|
Select: <input type=“radio” name=“attributes[Gift Selections]” value=“Equine Safety Razors”{% if cart.attributes[“Gift Selections”] == “Equine Safety Razors” %} checked{% endif %}> |
|
Equine Safety RazorsPack of Five |
Regular price
|
//------------------------------------------------------------------------------------------------------------------\
This is the code from cart-template:
{% comment %} ADD FREE GIFT SELECTION $100-$249.99 {% endcomment %}
{% if cart.total_price >10000 and cart.total_price <24999 %}
{% unless customer.tags contains ‘wholesale’ %}
{% include ‘freegift100.liquid’ %}
{% endunless %}
{% else %}
{% endif %}
TIA folks for any help you can provide!
