Skip to content

Commit 717d036

Browse files
committed
Bug fixes for single variants; Better defaults
1 parent 7955f13 commit 717d036

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Templates/collection.fb-product-update.liquid

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
33
{%- paginate collection.products by 1000 -%}
44
{%- assign useSEOdescription = true -%}
5-
{%- assign additionalImagesForVariants = false -%}
5+
{%- assign additionalImagesForVariants = true -%}
66
{%- assign includeOutOfStock = false -%}
7-
{%- assign filterVariantImagesByColor = false -%}
7+
{%- assign filterVariantImagesByColor = true -%}
88
{% comment %}
99
This template is used to add additional information to the Facebook product catalog
1010
Documentation: https://business.czarto.com/2019/12/11/update-your-shopify-facebook-product-feed-with-missing-attributes/
@@ -35,8 +35,6 @@ Documentation: https://business.czarto.com/2019/12/11/update-your-shopify-facebo
3535
<item>
3636
<g:id>{{ variant.id }}</g:id>
3737
{% if useSEOdescription and product.metafields.global.description_tag.size > 0 %}<g:description>{{ product.metafields.global.description_tag | strip_html | strip_newlines | replace: '&', '&amp;' }}</g:description>{% endif %}
38-
<g:content_id>{{ variant.id }}</g:content_id>
39-
<link>{{ shop.url }}{{ variant.url }}</link>
4038
<g:google_product_category>{{ GoogleProductCategory | replace: '&', '&amp;' }}</g:google_product_category>
4139
{% if Material %}<g:material>{{ Material }}</g:material>{% endif %}
4240
{% if Gender %}<g:gender>{{ Gender }}</g:gender>{% endif %}
@@ -52,8 +50,7 @@ Documentation: https://business.czarto.com/2019/12/11/update-your-shopify-facebo
5250
{%- else -%}
5351

5452
<item>
55-
<g:id>{{ product.id }}</g:id>
56-
<link>{{ shop.url }}{{ product.url }}</link>
53+
<g:id>{{ product.variants[0].id }}</g:id>
5754
<g:google_product_category>{{ GoogleProductCategory | replace: '&', '&amp;' }}</g:google_product_category>
5855
{% if useSEOdescription and product.metafields.global.description_tag.size > 0 %}<description>{{ product.metafields.global.description_tag | strip_html | strip_newlines | replace: '&', '&amp;' }}</description>{% endif %}
5956
{% if Material %}<g:material>{{ Material }}</g:material>{% endif %}

0 commit comments

Comments
 (0)