Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
integration:google_customer_reviews [2018/10/16 02:30] – [Adding Google Customer Reviews to your Foxy store] adam | integration:google_customer_reviews [2021/03/24 19:55] (current) – adam | ||
---|---|---|---|
Line 59: | Line 59: | ||
" | " | ||
{% if gtin|length > 0 %} | {% if gtin|length > 0 %} | ||
- | " | + | " |
{% endif %} | {% endif %} | ||
}); | }); | ||
Line 78: | Line 78: | ||
You can [[https:// | You can [[https:// | ||
+ | |||
+ | ==== Using product code instead of a custom product option for gtin ==== | ||
+ | If you specify the '' | ||
+ | |||
+ | Specifically, | ||
+ | |||
+ | <code javascript> | ||
+ | {% set gtin = [] %} | ||
+ | {% for item in items %} | ||
+ | {% for option in item.options %} | ||
+ | {% if option.class == " | ||
+ | {% set gtin = gtin|merge([' | ||
+ | {% endif %} | ||
+ | {% endfor %} | ||
+ | {% endfor %} | ||
+ | </ | ||
+ | |||
+ | With this version: | ||
+ | |||
+ | <code javascript> | ||
+ | {% set gtin = [] %} | ||
+ | {% for item in items %} | ||
+ | {% set gtin = gtin|merge([' | ||
+ | {% endfor %} | ||
+ | </ |