• Good morning, I need some help with the plug-in.
    I have two requests:

    1. I need to copy the GTIN from the EAN.
      I’ve tried but I can’t…
    2. Trying to do this I made a mistake and copied the EAN to the SKU.
      Is there any way to undo this process?
      I need the SKU from before, it’s over 1000 products.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello Sterakic,

    I hope this message finds you well. I’d like to address your concerns as follows:

    1. In regards to the first issue, if you have a GTIN-13 number e.g: 9781234567890, you can extract the EAN number by taking the last 12 digits of the GTIN-13 number. Therefore, the EAN number that you can extract from the GTIN-13 number 9781234567890 is 1234567890.
    2. For the second issue, there is a “Revision” option available that allows you to review and restore changes for each product. If you’re unable to locate this option, I can provide you with a screenshot to assist you. However, if the “Revision” option is not available, you can activate it by adding the following code to your functions.php file:
    /*
     * Add Revision support to WooCommerce Products
     * 
     */
    
    add_filter( 'woocommerce_register_post_type_product', 'cinch_add_revision_support' );
    
    function cinch_add_revision_support( $supports ) {
         $supports['supports'][] = 'revisions';
    
         return $supports;
    }

    However, please note that after activating this code, “Revision” will appear after new changes are made to the products,
    But old changes before applying the code cannot be restored.

    If you have a backup copy, you can also try restoring it to retrieve the previous version of the product. If you don’t have backups, I recommend using the Updraft backup plugin to take continuous backups.

    I hope this information is helpful to you. If you have any further questions or need additional assistance, please don’t hesitate to let me know.

    Thank you for your understanding, and I’m here to help.

Viewing 1 replies (of 1 total)
  • The topic ‘EAN to the GTIN’ is closed to new replies.