@@ -16,6 +16,7 @@ Documentation: https://business.czarto.com/2019/12/11/update-your-shopify-facebo
16
16
<link >{{ shop .url }}</link >
17
17
<description >{{ collection .description | strip_html }}</description >
18
18
{% for product in collection .products %}
19
+ {%- assign GoogleProductCategory = product .metafields .mm-google-shopping .google_product_category -%}
19
20
{%- assign Gender = product .metafields .mm-google-shopping .gender -%}
20
21
{%- assign AgeGroup = product .metafields .mm-google-shopping .age_group -%}
21
22
{%- assign Material = product .metafields .mm-google-shopping .material -%}
@@ -35,6 +36,8 @@ Documentation: https://business.czarto.com/2019/12/11/update-your-shopify-facebo
35
36
<g:id >{{ variant .id }}</g:id >
36
37
{% if useSEOdescription and product .metafields .global .description_tag .size > 0 %}<g:description >{{ product .metafields .global .description_tag | strip_html | strip_newlines | replace: '&' , '&' }}</g:description >{% endif %}
37
38
<g:content _id >{{ variant .id }}</g:content _id >
39
+ <link >{{ shop .url }}{{ variant .url }}</link >
40
+ <g:google _product_category >{{ GoogleProductCategory | replace: '&' , '&' }}</g:google _product_category >
38
41
{% if Material %}<g:material >{{ Material }}</g:material >{% endif %}
39
42
{% if Gender %}<g:gender >{{ Gender }}</g:gender >{% endif %}
40
43
{% if AgeGroup %}<g:age _group >{{ AgeGroup }}</g:age _group >{% endif %}
@@ -50,6 +53,8 @@ Documentation: https://business.czarto.com/2019/12/11/update-your-shopify-facebo
50
53
51
54
<item >
52
55
<g:id >{{ product .id }}</g:id >
56
+ <link >{{ shop .url }}{{ product .url }}</link >
57
+ <g:google _product_category >{{ GoogleProductCategory | replace: '&' , '&' }}</g:google _product_category >
53
58
{% if useSEOdescription and product .metafields .global .description_tag .size > 0 %}<description >{{ product .metafields .global .description_tag | strip_html | strip_newlines | replace: '&' , '&' }}</description >{% endif %}
54
59
{% if Material %}<g:material >{{ Material }}</g:material >{% endif %}
55
60
{% if Gender %}<g:gender >{{ Gender }}</g:gender >{% endif %}
0 commit comments