Skip to content

Commit

Permalink
Merge pull request #59 from mmenozzi/patch-1
Browse files Browse the repository at this point in the history
Fix identifier_exists false
  • Loading branch information
loevgaard authored Jun 17, 2022
2 parents 24ff26c + 7c2cb13 commit fe9c5ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Resources/views/Feed/Google/Shopping/_item.txt.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<g:brand>{{ item.brand|e }}</g:brand>
<g:gtin>{{ item.gtin|e }}</g:gtin>
<g:mpn>{{ item.mpn|e }}</g:mpn>
{% if not item.identifierExists %}<g:identifier_exists>false</g:identifier_exists>{% endif %}
{% if item.identifierExists is same as(false) %}<g:identifier_exists>false</g:identifier_exists>{% endif %}
<g:condition>{{ item.condition|e }}</g:condition>
<g:item_group_id>{{ item.itemGroupId|e }}</g:item_group_id>
<g:google_product_category>{{ item.googleProductCategory|e }}</g:google_product_category>
Expand Down
2 changes: 0 additions & 2 deletions tests/Behat/Context/Cli/ProcessFeedsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ private function getExpectedContent(string $channelCode): string
<g:image_link>https://example.dk/media/cache/resolve/sylius_shop_product_large_thumbnail/%image_path%</g:image_link>
<g:availability>in_stock</g:availability>
<g:price>0USD</g:price>
<g:identifier_exists>false</g:identifier_exists>
<g:condition>new</g:condition>
<g:item_group_id>WARM_BEER</g:item_group_id>
</item>
Expand All @@ -148,7 +147,6 @@ private function getExpectedContent(string $channelCode): string
<g:image_link>https://example.com/media/cache/resolve/sylius_shop_product_large_thumbnail/%image_path%</g:image_link>
<g:availability>in_stock</g:availability>
<g:price>0USD</g:price>
<g:identifier_exists>false</g:identifier_exists>
<g:condition>new</g:condition>
<g:item_group_id>COLD_BEER</g:item_group_id>
</item>
Expand Down

0 comments on commit fe9c5ee

Please sign in to comment.