Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Nykolyszyn committed May 18, 2022
1 parent 66c7fda commit b2543fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/Index/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function execute()
'image_link' => $imageUrl,
'brand' => $brand,
'mpn' => ($product->hasData('mpn') ? $product->getData('mpn') : $product->getSku()),
'gtin' => ($product->hasData('gtin') ? $product->getData('gtin') : ''),
'gtin' => ($product->hasData('gtin') ? $product->getData('gtin') : ($product->hasData('upc') ? $product->getData('upc') : '')),
'product_type' => $product->getTypeID(),
];

Expand Down
2 changes: 1 addition & 1 deletion Controller/Index/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function execute()
<g:image_link><![CDATA[" . $imageUrl . "]]></g:image_link>
<g:brand><![CDATA[" . $brand . "]]></g:brand>
<g:mpn><![CDATA[" . ($product->hasData('mpn') ? $product->getData('mpn') : $product->getSku()). "]]></g:mpn>
<g:gtin><![CDATA[" . ($product->hasData('gtin') ? $product->getData('gtin') : ''). "]]></g:gtin>
<g:gtin><![CDATA[" . ($product->hasData('gtin') ? $product->getData('gtin') : ($product->hasData('upc') ? $product->getData('upc') : '')). "]]></g:gtin>
<g:product_type><![CDATA[" . $product->getTypeID() . "]]></g:product_type>
<g:shipping>
<g:country>UK</g:country>
Expand Down

0 comments on commit b2543fb

Please sign in to comment.