Hello,
I’ve shipping parameters to put in my Google Merchant Feed depending on item price / collection.
If my item is >= 60, shipping must be free.
If my item is < 60, shipping must be 6€.
But if my item is in collection ‘Rentrée 2021’ (with handle ‘rentre-2021’), then shipping must be free regardless of item price.
My problem here is that items with collection.handle ‘rentree-2021’ AND with price < 60€ get 2 values (6€ AND 0€), which breaks the feed.
I tried to put {% break %} tag but it also breaks my feed, couldn’t figure where to place it by myself yet.
Here is my code
{% for collection in product.collections %}
<g:shipping>
<g:country>FR</g:country>
{% if pprice >= 60 or collection.handle == ‘rentree-2021’ %}
<g:price>0.00 EUR</g:price>
{% else %}
<g:price>6.00 EUR</g:price>
{% endif %}
</g:shipping>
{% endfor %}
Still have a lot to learn, maybe you can help me understand this. I hope this is clear enough,
Thanks a lot for your time. Regards.