- Posts: 637
- Thank you received: 26
Google products XML feed issue after update
7 years 1 month ago - 7 years 1 month ago #310462
by Lumiga
Kind regards,
Lumiga
Google products XML feed issue after update was created by Lumiga
-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.3
Hi Hikashopteam,
Before update to 4.2.0 the xml export with GTIN code went fine.
If there was no GTIN code we have to set a FALSE value to the identifier-exist field and the xml didn't export a GTIN field.
But now after the update, the xml feed export the custom field name for the GTIN code if there is no GTIN code present in the product.
Hope you can fix this.
Kind regards,
Lumiga
Here you can see our configuration.
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.3
Hi Hikashopteam,
Before update to 4.2.0 the xml export with GTIN code went fine.
If there was no GTIN code we have to set a FALSE value to the identifier-exist field and the xml didn't export a GTIN field.
But now after the update, the xml feed export the custom field name for the GTIN code if there is no GTIN code present in the product.
Hope you can fix this.
Kind regards,
Lumiga
Here you can see our configuration.
Kind regards,
Lumiga
Last edit: 7 years 1 month ago by Lumiga.
Please Log in or Create an account to join the conversation.
7 years 1 month ago #310509
by nicolas
Replied by nicolas on topic Google products XML feed issue after update
Hi,
Add the code:
before the line:
in the file plugins/hikashop/google_products/google_products.php
and it should help.
Add the code:
Code:
$column = @$plugin->params['identifier_exists'];
if(!empty($column) && ($column == 'TRUE' || (!empty($product->$column) && $product->$column == 'TRUE')))
Code:
$xml .= $this->_additionalParameter($product,$plugin,'gtin','gtin');
and it should help.
The following user(s) said Thank You: Lumiga
Please Log in or Create an account to join the conversation.
7 years 2 weeks ago #311013
by Lumiga
Kind regards,
Lumiga
Replied by Lumiga on topic Google products XML feed issue after update
Thanks!
Are you going to add this code also in the new update?
Kind regards,
Lumiga
Are you going to add this code also in the new update?
Kind regards,
Lumiga
Kind regards,
Lumiga
Please Log in or Create an account to join the conversation.
7 years 2 weeks ago #311015
by nicolas
Replied by nicolas on topic Google products XML feed issue after update
Yes
The following user(s) said Thank You: Lumiga
Please Log in or Create an account to join the conversation.
Time to create page: 0.179 seconds