Support » Plugin: EAN for WooCommerce » Can i copy EAN to Attribute?

  • Resolved LeoG

    (@gramve)


    Hello,

    I have EAN for all my product. Recently we changed the invoice software and their plugin reads EAN of products from attributes field. We created a new attribute called EAN, exported products in excel and copy them from the original field of the plugin. My question is this.
    Can the plugin copy automatic to attribute when we create a new products, so that we dont have to copy every time in 2 fields EAN. I saw the field Product attribute (optional) but i dont think its gonna copy automatic the field. Or just transform directly in a attribute.
    Hope u get what i am saying.
    Any ideas?

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

    (@algoritmika)

    Hi @gramve,

    Our “Product attribute (optional)” option is similar to what you need but not exactly that. It will copy the EAN to the product attribute as you need it, however, it will do it only if you will generate EANs with our “Product Tools > Generate” tool in “WooCommerce > Settings > EAN > Tools”. As I understand, you are not generating EANs with our plugin, but instead you are entering them manually, correct?

    P.S. Just a thought – maybe there is a way to force your invoicing plugin to use product meta instead of product attribute? Usually, these plugins have such option. If you wish, you can tell me which plugin you are using, and I will check if there is a way to use product meta there.

    Thread Starter LeoG

    (@gramve)

    Hello, we had a talk with them. Its a software invoice(its a complicated software that helps us sell on our website/physical shops and other marketplaces) from our country, Romania.. They are updating monthly their plugin so we taught about modifying their plugin, but because of the constant updates will be a nag just to modify always after the ipdate/

    Anyway, i understood what u are saying. I was hoping to find a way.

    Maybe in the future will be such a option, to create a attribute from the field EAN.

    Thank u for the fast reply!

    Plugin Author Algoritmika Ltd

    (@algoritmika)

    @gramve,

    Ok, got it. Let me try to add something to the plugin. The first idea that comes to mind – we have the “Periodic action” option in “WooCommerce > Settings > EAN > Tools > Product Actions” – I could quite easily add a new periodic action there, e.g., “Copy to product attribute”. As you can see, there is the “Periodic action interval in seconds” option there, so you will be able to set it to be copied for all products, for example, once per hour. Do you think this will be good enough for you?

    Thread Starter LeoG

    (@gramve)

    It will be perfect!!!

    Also, it would be ok to override the ones existent. That way would be no errors.
    That means that will have posibility to choose a attribute(the one alreay created) or it wil create a new one?

    Plugin Author Algoritmika Ltd

    (@algoritmika)

    Hi @gramve,

    Ok, it’s done. Please update the plugin to the latest version 3.9.0 (released just a few minutes ago).

    Now in “WooCommerce > Settings > EAN > Tools > Product Tools” you will find a new tool – “Copy to product attribute”. There you will be able to select to which attribute EAN needs to be copied.

    After selecting the attribute, you have three different options:

    1. Set both “Automatic actions” (in “WooCommerce > Settings > EAN > Tools > Product Actions”) to “Copy to product attribute”. This way, each time a product is updated, the plugin will copy EAN to the selected attribute.

    2. Set “Periodic action” (again in “WooCommerce > Settings > EAN > Tools > Product Actions”) to “Copy to product attribute”. This way, the plugin will copy EANs for all of your products periodically.

    3. Finally – you can copy all EANs to product attributes by running the “Copy to product attribute” tool manually (in “WooCommerce > Settings > EAN > Tools > Product Tools”).

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

    And if you like the plugin, please consider leaving me a rating.

    Thread Starter LeoG

    (@gramve)

    Hello, i will give it a try now. Hope it will work for variation products aswell.

    Will come back în a few minute with a review!

    Thread Starter LeoG

    (@gramve)

    Hello,

    From description of what u said, i used method nr 1:
    “1. Set both “Automatic actions” (in “WooCommerce > Settings > EAN > Tools > Product Actions”) to “Copy to product attribute”. This way, each time a product is updated, the plugin will copy EAN to the selected attribute.”

    So if i create a new product or update one, EAN(its the attribute name)will “appear” by himself in attribute section.
    As i said in previous post, now i tested and i saw that its not copying in EAN field of variation products.

    Am i missing something?

    Plugin Author Algoritmika Ltd

    (@algoritmika)

    Hi @gramve,

    Thank you for the feedback.

    Yes, the attribute will appear automatically for the variable/simple/etc. products, however, if we do that for the variations, this will mean that your customers will see it as a selectable attribute on the frontend. So for example, if you have a variation with “Color” and “Size” attributes, and we will add the “EAN” attribute to it, then your customers will see all three attributes on the frontend. Is that what we need? Or am I missing something?

    Thread Starter LeoG

    (@gramve)

    Hello,

    I understand now what are u saying. If u look in a variation products its a EAN field, by default. I don`t know how, but would be nice to copy there aswell.

    Unfortunelly, i follow youre direction above, and EAN attribute field now is showing on the product page. I dont want that. I export it and import it in excel to hide all EAN attribute from front page, but now when will be updated, it wil show again on frontpage.
    Can it be a fix for that?
    Most of the users, for sure they will not want to be available on the product page.
    Thank u!

    Plugin Author Algoritmika Ltd

    (@algoritmika)

    Hi @gramve,

    We can hide it with CSS; not sure if this is the best solution though. Try adding this to your custom CSS (e.g., via “Customize > Additional CSS”):

    #pa_ean, label[for=pa_ean] {
        display: none;
    }

    You may need to replace ean with the actual name of your attribute. For example, if you’d name your attribute “Color”, then, instead of pa_ean, you’d write pa_color.

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

    Plugin Author Algoritmika Ltd

    (@algoritmika)

    P.S. This will work only if all of your variations have the same EAN because if we hide it with CSS, then your customers won’t be able to change it.

    Plugin Author Algoritmika Ltd

    (@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 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.