Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello Chris Yau,

    I hope you are well and thank you for contacting us.

    Please try going to:

    1-woocommerce settings.
    2-Ean Tabs.
    3-Select Advanced tab.
    4-Change Meta Key.

    Regards,

    Thread Starter Chris Yau

    (@chris-yau)

    Hi, I have followed the instruction above to chage the meta key, however the EAN and label of product cannot show on frontend after changed, please check with the screen record. Thanks

    https://drive.google.com/file/d/14pDiGfYXL8CgPgIuzCw7H_Lpsb_OCU_c/view?usp=drive_link

    Thread Starter Chris Yau

    (@chris-yau)

    I notice that after changed the meta key of EAN, all previous EAN data gone. How can I just change the label of the EAN at orders and order admin in backend? many thanks

    Thread Starter Chris Yau

    (@chris-yau)

    How to display the EAN label at order admin not displaying the meta key? thanks

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @chris-yau,

    We will add an option for this in the next plugin release. Meanwhile, you can solve the task with this small PHP snippet:

    add_filter( 'woocommerce_order_item_display_meta_key', function ( $display_key, $meta ) {
        return ( '_alg_ean' === $meta->key ? get_option( 'alg_wc_ean_title', __( 'EAN', 'ean-for-woocommerce' ) ) : $display_key );
    }, 10, 2 );

    P.S. Regarding “… all previous EAN data gone…” – simply set the “Advanced > Meta key” option to the previous value (default _alg_ean).

    Please give it a try and let me know what you think.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @chris-yau,

    Please update the plugin to the latest v4.8.9. Now it will use the “General > Title” option value for the order item meta labels. Please give it a try and let me know what you think.

    Thread Starter Chris Yau

    (@chris-yau)

    Hi @algoritmika,

    After updated to latest v4.8.9, the label works fine, many thanks for help and update.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi,

    Happy to hear it’s solved. Please let me know if you will need anything else.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘EAN label shows _alg_ean in order admiin’ is closed to new replies.