• Resolved sandras21

    (@sandras21)


    I have created translations for the shop with wpml plugin and realised that advance woo labels are not working with that. I can translate the label but if I activate translated label, it will display both language labels for the products on the first language page and for the second language page. However, if I look at the list of products for the translated label, I see that it has taken already translated products into account (on label settings page) but in front end it is just displaying both languages. Do you have any suggestions how to correct that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Looks like understand what cause the issue.
    Please open advanced-woo-labels/includes/class-awl-helpers.php file, find lines

    $query_args = wp_parse_args( $args, 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',
                    'suppress_filters'       => true,
                    'no_found_rows'          => 1,
                    'lang'                   => ''
                ) );

    and replace it with

    $query_args = wp_parse_args( $args, 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,
                ) );

    I will also add the same changes to the next plugin release.

    Regards

    • This reply was modified 3 years, 9 months ago by ILLID.
    Thread Starter sandras21

    (@sandras21)

    Thank you so much @mihail-barinov worked like charm!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adv. Woo labels and wpml plugin compability?’ is closed to new replies.