[Skip to main content](#vessel-content)

#   missing data in google merchans

##

- **[bordia](/forum/user/31290-bordia "View bordia's Profile")**
- [![bordia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31290-bordia "View bordia's Profile") Topic Author
- [ Offline](/forum/user/31290-bordia)

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 3 months ago [\#165710](#165710) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#165710 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")* was created by *[bordia](/forum/user/31290-bordia "View bordia's Profile")*

Hello dear HikaShop team,

I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.

Google merchants needed
1 Cost of shipment
2 GTIN, brand or MPN
3 too long Product Type

How can I add the required data and what is the problem with the product type?
Even the brand has been deposited for each product.

Please help me!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

12 years 3 months ago [\#165743](#165743) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#165743 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Hi,

1. You need to configure the "Shipping" field of the Google Products plugin for that (only possible since HikaShop 2.3.2)

2. For the brand, you can just turn on the "Use products brand" option of the Google Products plugin (only possible since HikaShop 2.3.2)
For the MPN, you need to turn on the option "Add Product Code (mpn)"

3. Add the line: Code:

if(strlen($type.'"'.$catPath['path'].'",')&gt;750) continue;

before the line: Code:

$type.='"'.$catPath['path'].'",';

in the file plugins/hikashop/google_products.php and that should avoid sending a product type too long to Google Merchant.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[bordia](/forum/user/31290-bordia "View bordia's Profile")**
- [![bordia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31290-bordia "View bordia's Profile") Topic Author
- [ Offline](/forum/user/31290-bordia)

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 2 months ago [\#166442](#166442) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166442 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Hi Nicolas,
thank you for your help. Unfortunately, this line has not brought any changes with the shipping costs. With the change, not all products are downloadable from the trigger. There were otherwise more than 100 and are now only 17 displayed.

The line I've also come to the right place to insert it as you described.

Strange?

Best regards
Daniel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

12 years 2 months ago [\#166451](#166451) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166451 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Hi,

This line of code will not change anything for the shipping costs and it won't change anything with the trigger download.
This line is to avoid the error about the product type being too long.
For the shipping costs, you need to configure the shipping field of the plugin (see the tooltip of the field for how to do).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[bordia](/forum/user/31290-bordia "View bordia's Profile")**
- [![bordia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31290-bordia "View bordia's Profile") Topic Author
- [ Offline](/forum/user/31290-bordia)

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 2 months ago [\#166580](#166580) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166580 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Ok, thanks

now I get a xml formatting error.
Line Number: 385 Column number: 68

What should I do to resolve this problem. And why are not recorded all products?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

12 years 2 months ago [\#166593](#166593) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166593 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Can you provide the XML file that was generated so that we can see the problem ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[bordia](/forum/user/31290-bordia "View bordia's Profile")**
- [![bordia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31290-bordia "View bordia's Profile") Topic Author
- [ Offline](/forum/user/31290-bordia)

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 2 months ago [\#166772](#166772) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166772 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Ok!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[bordia](/forum/user/31290-bordia "View bordia's Profile")**
- [![bordia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31290-bordia "View bordia's Profile") Topic Author
- [ Offline](/forum/user/31290-bordia)

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 2 months ago [\#166773](#166773) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166773 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Ok

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[bordia](/forum/user/31290-bordia "View bordia's Profile")**
- [![bordia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31290-bordia "View bordia's Profile") Topic Author
- [ Offline](/forum/user/31290-bordia)

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 2 months ago [\#166774](#166774) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166774 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Now...
*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

12 years 2 months ago [\#166782](#166782) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[missing data in google merchans](/forum/30-integrations/870024-missing-data-in-google-merchans#166782 "Hello dear HikaShop team,  I want to use for my internet sales google merchants. I have a data feed created and uploaded the respective products on google merchants. Unfortunately there are some problems.  Google merchants needed 1 Cost of shipment 2 GTIN, brand or MPN 3 too long Product Type  How can I add the required data and what is the problem with the product type? Even the brand has been deposited for each product.  Please help me!")*

Hi,

Change the line: Code:

$xml.="\t".'&lt;g:mpn&gt;&lt;![CDATA[ '.str_replace(array(' ','-'),array('',''),$product-&gt;product_code).' ]]&gt;&lt;/g:mpn&gt;'."\n";

to: Code:

$xml.="\t".'&lt;g:mpn&gt;'.str_replace(array(' ','-'),array('',''),$product-&gt;product_code).'&lt;/g:mpn&gt;'."\n";

in the file plugins/hikashop/google_products.php and that should avoid the problem.
However, I don't think that your MPN/product code is valid.
Beware that even though it should work with that code change, if the MPN value is not correct it is ground for removal of your products from the listing of Google.
[ support.google.com/merchants/answer/188494?hl=en](https://support.google.com/merchants/answer/188494?hl=en)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzAwMjQtbWlzc2luZy1kYXRhLWluLWdvb2dsZS1tZXJjaGFucz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.102 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
