• Resolved lukascech

    (@lukascech)


    Hi guys,

    I did everything according to https://advanced-woo-labels.com/guide/wpml/ but the second language labels (in my case DE) appear on the EN products (default language).

    So I have duplicated labes everywhere:
    https://i.imgur.com/1tFPlxj.png
    https://nimblecamper.com/best-cars-for-camping/
    I have:

    • the latest WPML + Woocommerce multilingual
    • I did set labels to Translatable
    • I have translated them using the Advanced Translation Editor (duplicated the settings first using the WPML Duplicate option)

    But the translated labels (into German – DE) do not appear on the DE products, they appear twice on the EN products.

    I have also tried not using ATE but creating the DE label translation using WordPress editor, no change.

    My labels have the same name in EN and DE, but they have different slugs in the database.

    what can I do to make sure they work on DE products?

    Lukas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter lukascech

    (@lukascech)

    BTW, I have turned off the DE labels, as I don’t want to have duplicates on the website, but you can see the issue in the screenshot above.

    Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Thanks for letting me know about this issue. You are right – it is some sort of bug. I will fix it in the next plugin release. For now you can do the following – open wp-content/plugins/advanced-woo-labels/includes/class-awl-helpers.php file, find lines:

       $labels = get_posts( array(
                    'post_type'              => 'awl-labels',
                    'post_status'            => 'publish',
                    'posts_per_page'         => -1,
                    'meta_key'               => '_awl_label_priority',
                    'orderby'                => 'meta_value_num date',
                    'order'                  => 'DESC',
                    'update_post_term_cache' => false,
                    'fields'                 => 'ids',
                    'no_found_rows'          => 1,
                ) );

    and replace it with

       $labels = get_posts( array(
                    'post_type'              => 'awl-labels',
                    'post_status'            => 'publish',
                    'posts_per_page'         => -1,
                    'meta_key'               => '_awl_label_priority',
                    'orderby'                => 'meta_value_num date',
                    'order'                  => 'DESC',
                    'update_post_term_cache' => false,
                    'fields'                 => 'ids',
                    'no_found_rows'          => 1,
                    'suppress_filters'       => false,
                ) );
    Thread Starter lukascech

    (@lukascech)

    Thanks for the quick response Mihail. This fixed the double EN labels, but not the WPML issue. They don’t show on DE at all.

    Plugin Author ILLID

    (@mihail-barinov)

    Hm, interesting.

    All those labels that you don’t see for DE site are translated to this language?

    Thread Starter lukascech

    (@lukascech)

    Yes – translated 100% and active https://i.imgur.com/xOtsLEV.png

    Plugin Author ILLID

    (@mihail-barinov)

    Interesting. Can you please write me directly to [email protected]?? I need some few more details here.

    Regards

    Plugin Author ILLID

    (@mihail-barinov)

    Will be fixed in next plugin release.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Doesn’t work with WPML’ is closed to new replies.