WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Multilingual - run WooCommerce with WPML
[resolved] Version 2.3 is breaking attributes ? (7 posts)

  1. uscarsfrance
    Member
    Posted 1 year ago #

    Hi. I've upgraded some translations of my products (french products translated in english) and I note that the attributes are gone away. I tried to set up them again, but it fails with no error. So I downgraded to 2.2 and now it seems that I can set up the attributes again. I now have to check all the products I translated today.

    http://wordpress.org/extend/plugins/woocommerce-multilingual/

  2. uscarsfrance
    Member
    Posted 1 year ago #

    When the attributes are broken, the error message is :
    Warning : Invalid argument supplied for foreach () in
    /.../woocoomerce-core-functions.php on line 1499

  3. uscarsfrance
    Member
    Posted 1 year ago #

    Hi David. I'm now sure that there's a bug with attributes with version 2.3. I've tested with Safari and Firefox. The process is the following :
    - create a new product with its attributes
    - create a translation of this new products using the "+" button
    - click the button to save as a draft, click the button to replace the content with the original version then click the button to translate separately.
    For now, you've a translated product with a maximum of the informations of the original product (not all because the attributes which are choices-based are kept whereas I have to add again the attributes which are text-based).
    You publish the translated product and... you loose all the attributes except the last one. So you try to add the lost attributes, you publish and again, you loose them.
    I have downgraded to version 2.2 and the problem does not exist. When you publish the translated product, the attributes that exist in the form of the product are kept.
    Beware because if you change one thing in a existing translated product with version 2.3, you'll loose silently its attributes.
    David, if you want an access to my site to check that, no problem, just contact me in a way that I can give you the required informations.
    Best regards.

  4. adelval
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi,

    From the docs at http://wpml.org/documentation/related-projects/woocommerce-multilingual/#translating-products:

    Important notice #1: The synchronization is always relative to the original product , i.e. the product created in your site’s default language. Edits of any of the synchronized properties in the translated versions will be lost upon saving, because they are recopied from the original.

    Does this help?

    If you want us to test your site it's better if you post it in our technical forum http://wpml.org/forums/forum/english-support/ where we have a procedure set up so that you can give us your access details safely. (Please make sure to tag the post with 'woocommerce' so that we don't miss it).

    Another thing: When you say 'text based attributes' do you mean 'custom product attributes' or (global) 'Product->Attributes' with 'text' instead of 'select'?. We haven't really tested the latter, and in fact I'm now checking a WooCommerce only (no WPML) test site and frankly I don't know how they work. It turns out that they can be defined as taxonomies, you can add terms (i.e attribute values), etc. but then those terms do not show up in edit-product.

    If you mean, custom product attributes, they should be copied over to the translated product just fine. In the backend you'll see the values in the original language always, but they are translated in the front end.

    More details in the documentation, that has had a major upgrade with this release.

    Regards

    Alvaro

  5. uscarsfrance
    Member
    Posted 1 year ago #

    Hi.
    The notice does not help me. My translated product is first a duplicata to get the most of the content of the original product and then, I click on the button to be able to translate it separately so I should be able to change all what I want on the translated product. My problem with version 2.3 is that when I set my attributes (which are global attributes), either text-based (text) or choices-based (select), they are just resetted once the article is published (the attributes disappeared in the form of the article). With the version 2.2, the same process keeps the attributes. I really do not understand what is going wrong.
    Best regards.

  6. bernattorras
    Member
    Posted 7 months ago #

    Hi there uscarsfrance,

    Have you tried it with latest versions? Can you tell us if your issue got solved? :)

    Thanks,
    Bernat

  7. uscarsfrance
    Member
    Posted 7 months ago #

    Hi Bernat. Sorry, this topic should have been closed by me a long time ago. I do not have any issue to report actually. Thanks for your follow up. Best regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.