Barcode meta key

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #85156
    eskamedia
    Participant

    I see that the EAN is stored in this Meta key: _alg_ean

    But what about the barcode itself?

    We’re trying to extract data to another application.

    #85157
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Unfortunately, we generate the barcodes dynamically, so they are not stored in the product meta.

    If you can add a PHP code when extracting data, you can generate them dynamically as well, for example, with shortcodes (assuming you have the $product_id available):

    do_shortcode( '[alg_wc_ean_barcode_base64 product_id="' . $product_id . '"]' );

    and for 2D barcodes:

    do_shortcode( '[alg_wc_ean_barcode_2d_base64 product_id="' . $product_id . '"]' );

    Please let me know if that’s not possible in your case, and I will try to add some options to the plugin to store the barcodes in meta.

    #85158
    eskamedia
    Participant

    Thanks Tom!

    #85159
    Tom Anbinder
    Moderator
    Plugin Support

    Happy to help 🙂 However, could you please clarify if you still need it in the product meta? Or my suggestion with shortcodes was good enough for you?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.