Automatically create/generate an GTIN for Google Products

  • Posts: 11
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business
2 years 1 month ago #347838

To have a GTIN for Google Products using the Hikashop Google Products Plugin, do I have to first create a custom products field and then fill in the GTIN field in the Hikashop Google Products Plugin with the title of the products custom field?

Is there a way for a GTIN to be automatically generated for products?

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

  • Posts: 83328
  • Thank you received: 13476
  • MODERATOR
2 years 1 month ago #347843

Hi,

You need to enter the column name of the custom product field in the GTIN setting of the plugin.

The GTIN needs to follow a certain set of rules:
support.google.com/merchants/answer/6324...en&ref_topic=6324338
It can't be a random number HikaShop would generate.
So usually, merchants would manually attribute a GTIN for each product.


Now, you can kind of automatically fill it. For example, you could use a mass action with a trigger "after a product is updated" with an action "update the values" on the column of your GTIN custom field and select the "operation" mode with something like this for example:

CONCAT('123456',LPAD(product.product_id, 8,'0'))
So in that example a product with the product ID 12345 would have the GTIN: 12345600012345

This mass action would run for a product when you save it, and if you want to manually run it for all your products, you can click on its "process" button.

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

Time to create page: 0.043 seconds
Powered by Kunena Forum