-
Hi
I ran the GTIN migration tool on my website (www.watersportswarehouse.co.za)
It runs with an error. If I look at my cron events, a job wp_gtin_data_migration_cron runs for 2 min, then aborts with “Unknown (wp_gtin_data_migration_cron_interval)”
Even worse I am losing both my wooseas_GTIN field (Used by my product feed to google), and in some cases my rankmath GTIN also gets deleted…
I have an older staging site, so I can extract all GTIN’s to a CSV file and then hopefully you can assist in getting me to re-populate the rankmath GTIN, ad then we can update the woocommerce GTIN field…
regards, Bruce
-
Hello,
We apologize for the issue you are facing with the GTIN migration tool. It sounds like a frustrating situation, especially with the loss of your GTIN fields.
The error message you mentioned, "Unknown (wp_gtin_data_migration_cron_interval)," indicates that there might be a problem with the cron job setup on your site. This could be causing the migration process to fail.
To address this issue, we recommend checking the following:
- Cron Jobs: Ensure that your WordPress cron jobs are functioning correctly. You can use a plugin like WP Crontrol to manage and monitor your cron jobs.
- Plugin Conflicts: Sometimes, other plugins can interfere with the migration process. Try deactivating other plugins temporarily to see if that resolves the issue.
- Server Resources: Ensure that your server has enough resources (like memory and execution time) to handle the migration process.
Since you have an older staging site with the GTINs, extracting them to a CSV file is a good idea. Once you have that, we can assist you in re-populating the Rank Math GTIN fields. Please reply to this ticket with the CSV file, and a human agent from our support team will take over and help you further.
Thank you for raising this concern, and we look forward to assisting you in resolving it!
Hi
I copied the code from a previous thread
function update_gtin() {
$posts = get_posts(array(
‘posts_per_page’ => -1,
‘post_type’ => [‘product’, ‘product_variation’] // Replace post with the name of your post type
));foreach($posts as $p){
$rank_math_gtin = get_post_meta( $p->ID, ‘_rank_math_gtin_code’, true );
update_post_meta($p->ID, ‘_global_unique_id’, $rank_math_gtin);
}
}add_action( ‘init’, ‘update_gtin’ );
This code does not seem to work for me though..??
I do have a list of GTIN’s in a CSV file. I would really like to update every GTIN field on my woocommerce store. (To ensure everything works). That means woocommerce GTIN, Rankmatch GTIN and woosea_GTIN.
Surely this should be not too difficult to achieve?regards, Bruce
Hello,
Thank you for contacting Rank Math support.
The GTIN option and migration tool are part of the PRO plugin. You used a free account to open this ticket. Please confirm the email address of your PRO account so we can verify your purchase and assist you further.
Looking forward to helping you.
Hi
The pro plugin was bought by
s****@w*************************cheers, Bruce
Hello,
The PRO plan of s****@w************************* account expired on October 12, 2024. We have fixed the GTIN Migration issue in the latest version of the PRO plugin. However, since you don’t have an active PRO plan, you can’t update the PRO plugin.
Please purchase a new PRO plan to update the PRO plugin and fix the migration issue.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
We’ve just purchased a new PRO plan…
regards, Bruce
It’s still not working. Please see screenshot
https://snipboard.io/PJxMTc.jpgI’m using staging.watersportswarehouse.co.za. The user and password remains the same
cheers, Bruce
Hello,
We can check that the migration process was successful on the staging site and the data has been migrated to WooCommerce’s GTIN field:
Please check and let us know if you need any other assistance.
Hi
Thats great, I guess I looked too early.
Last issue. I have a CSV file of around 180 GTIN numbers that seem to have got deleted on the live instance. Is there a script that I can use to populate your GTIN’s..??? Both for variable and simple products
cheers, Bruce
Hi
Sorry, besides my query above, I have also noticed some discrepancies after running the migration tool….
I did notice that while a lot of GTIN’s were migrated a lot were not.Here are some examples.
https://staging.watersportswarehouse.co.za/product/mystic-majestic-long-arm-shorty-zip-free-wetsuit/
https://staging.watersportswarehouse.co.za/product/slingshot-2020-grom-wakeboard-boot/I think your script only looks for in stock stock?
regards, Bruce
Hello,
The products you shared don’t have any GTIN code from our plugin saved in the database, so that would explain why that was not imported.
This has nothing to do with the stocks as we don’t look at that when importing. We just look at the presence of the key
_rank_math_gtin_code
.Don’t hesitate to get in touch if you have any other questions.
???
https://snipboard.io/kHAPIF.jpghttps://snipboard.io/I7W5C0.jpg
https://snipboard.io/qpZyN0.jpgthen. Any update on
“Last issue. I have a CSV file of around 180 GTIN numbers that seem to have got deleted on the live instance. Is there a script that I can use to populate your GTIN’s..??? Both for variable and simple products”cheers, Bruce
Hello,
The fields you showed in the screenshot are not from our plugin. Our plugin no longer shows the GTIN fields by default since the recent update to migrate the data to WooCommerce.
Those fields are being added by another plugin which in this case is from the one you are using for your product feeds.
As to the other questions regarding the import, you would need to import using an external plugin such as WP All Import that can map data to specific meta keys and map that data to the meta key
_rank_math_gtin_code
.Don’t hesitate to get in touch if you have any other questions.
How can I see your GTIN values then??? Presumably you add your GTIN values to the product schema?
But then, I also send GTIN values from my product feed to google shopping. What if these are different???
I really would like all GTIN’s to be in sync
cheers, Bruce
Hello,
You will have to get in touch with the support of your feed plugin and ask them the method to sync their GTIN values to WooCommerce’s new GTIN field to include it in the Schema.
Please do not hesitate to let us know if you need our assistance with anything else.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘GTIN migration tool not working’ is closed to new replies.