Allow using GTIN as unique identifier

Closed

Import WP Addon - WooCommerce Updated 2 weeks ago 7 Replies

Rimas asked 2 weeks ago on May 2, 2025 at 7:21 am

When configuring product importer for WooCommerce, only three fields are selectable as “Template field” by default:

post_title
post_status
_sku

For products, it would make sense to allow matching by GTIN. Is it possible to configure import for that at the moment? If yes, how? If not, would you consider adding such option?

I tried setting the value of that field to _global_unique_id, but when I ran the import, all products failed with an error which said “No Unique fields present.”.

J

James replied Support Agent

2 weeks ago on May 4, 2025 at 2:36 pm

Hi Rimas,

I have updated the importwp-woocommerce plugin (version 2.3.7 should now be available) to allow the use of _global_unique_id as a unique identifier.

James

RK

Rimas replied

2 weeks ago on May 4, 2025 at 3:26 pm

Hi James!

Thanks a lot! I've updated the plugin, but:

1. when I go to the permissions tab of my already created import config, I still see the same three fields available in the drop-down by default
2. the plugin still reports it's version as 2.3.6.

Rimas

P.S. reply editing here removes all newlines, so I'm reposting this reply.

 
 

 

 

J

James replied Support Agent

2 weeks ago on May 6, 2025 at 8:38 am

If you add the _global_unique_id as custom it should now work with 2.3.7.

RK

Rimas replied

2 weeks ago on May 6, 2025 at 9:56 am

Thanks James, that indeed seems to work!

Please consider adding it to the default list of template fields though.

J

James replied Support Agent

2 weeks ago on May 6, 2025 at 11:45 am

thanks, yes this will be added in future, i was just trying to get you a quick solution.

 

James

RK

Rimas replied

2 weeks ago on May 6, 2025 at 11:46 am

Thank you, I appreciate that!

Feel free to close this ticket :)

RK

Rimas replied

2 weeks ago on May 6, 2025 at 11:46 am

...or keep it open as a reminder to add that choice. :)