• Resolved raeevy

    (@raeevy)


    I have the API option enabled in the admin side but still the EAN does not appear in the API response neither on the order details or order list i.e.
    wp-json/wc/v1/orders
    wp-json/wc/v3/orders/XXXX

    In the admin side, I can see the code printed onto the invoice but API response is not working.

    Can you please help in this matter.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @raeevy,

    Could you please check if “Orders > Enable (Add EAN to new order items meta)” checkbox is enabled as well in “WooCommerce > Settings > EAN > General” (i.e. in addition to “Orders > REST API” checkbox)? Also – the order, you are trying to get EAN from, must be created after you’ve enabled the “Orders > Enable” checkbox.

    Please let me know if that helps.

    Thread Starter raeevy

    (@raeevy)

    Thanks for the quick response.

    All the options are enabled. I think the only thing I have been missing is to check on new orders. Is there any way we can also produce this on existing orders?

    Also is there a possibility of having base64 code in the API response ? We need to print labels. If not is the existing format, can you help us customize it?

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @raeevy,

    > Is there any way we can also produce this on existing orders?

    Yes, you need to run our “Order Tools > Add > Add EANs to all order items” tool (it’s in “WooCommerce > Settings > EAN > Tools”).

    > Also is there a possibility of having base64 code in the API response ?

    Do you mean barcodes? If that’s the case, then, unfortunately, no – currently it’s only EAN. However, this seems like a useful feature, and shouldn’t be too complicated to implement. Let me try to add it to the plugin. I will get back to you about this asap. P.S. As barcodes are our Premium feature, this will also go to the Premium version of the plugin, hope that’s ok.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @raeevy,

    We’ve just released a new plugin version (v3.2.0), where I’ve made a few improvements.

    > Is there any way we can also produce this on existing orders?

    Now there is no need to add EAN to order items meta for REST API. If our plugin won’t find EAN in order item meta, it will try to get EAN from the product directly.

    > Also is there a possibility of having base64 code in the API response ?

    I’ve added “REST API > Products” and “REST API > Orders” options to “WooCommerce > Settings > EAN > (2D) Barcodes”. So now you can get barcodes in base64 format. P.S. As mentioned, these are Pro features, unfortunately. And as wp.org forum rules forbid us from providing support for Pro plugins here, please contact us via our website, if you have questions/comments regarding this one.

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

    Thread Starter raeevy

    (@raeevy)

    Thats great news. I have just submitted a message on your website. Lets connect!

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @raeevy,

    Just wanted to confirm – we’ve got your message regarding the Pro version via our website.

    Plugin Author Algoritmika

    (@algoritmika)

    I’m going to mark this thread as “resolved” for now, hope that’s ok. Please let me know if there are still any questions/issues.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘EAN code not appearing API Response’ is closed to new replies.