missing data in google merchans

  • Posts: 81
  • Thank you received: 0
10 years 3 months ago #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!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 3 months ago #165743

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:

if(strlen($type.'"'.$catPath['path'].'",')>750) continue;
before the line:
$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 or Create an account to join the conversation.

  • Posts: 81
  • Thank you received: 0
10 years 3 months ago #166442

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 or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 3 months ago #166451

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 or Create an account to join the conversation.

  • Posts: 81
  • Thank you received: 0
10 years 3 months ago #166580

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 or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 3 months ago #166593

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

Please Log in or Create an account to join the conversation.

  • Posts: 81
  • Thank you received: 0
10 years 3 months ago #166772

Ok!

Please Log in or Create an account to join the conversation.

  • Posts: 81
  • Thank you received: 0
10 years 3 months ago #166773

Ok

Please Log in or Create an account to join the conversation.

  • Posts: 81
  • Thank you received: 0
10 years 3 months ago #166774

Now...

File Attachment:

File Name: Google_dat...8850.zip
File Size:24 KB

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 3 months ago #166782

Hi,

Change the line:

$xml.="\t".'<g:mpn><![CDATA[ '.str_replace(array(' ','-'),array('',''),$product->product_code).' ]]></g:mpn>'."\n";
to:
$xml.="\t".'<g:mpn>'.str_replace(array(' ','-'),array('',''),$product->product_code).'</g:mpn>'."\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

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum