Viewing 3 replies - 1 through 3 (of 3 total)
  • 99w

    (@ninetyninew)

    Hmm, I think this is due to the way the links are currently generated in-conjunction with how WPML is amending links to add the lang parameter – which I assume is doing via filter on get_permalink().

    Ensure you have the latest version installed, then in the wcpas-product-attributes-shortcode.php file look for line 101 which is:

    $href = get_permalink( wc_get_page_id( 'shop' ) ) . '?filter_' . $taxonomy->attribute_name . '=' . $term->slug;

    Change that to:

    $href = add_query_arg( 'filter_' . $taxonomy->attribute_name, $term->slug, get_permalink( wc_get_page_id( 'shop' ) ) );

    You’ll want to check both the default links and language based links after this change as this is a really quick code edit we have created with minimal testing.

    If this works we can investigate further and look to include this fix for this scenario in the next release.

    Let us know how you get on.

    Thank you

    99w

    (@ninetyninew)

    @voskotan We haven’t heard back from you in a while, can you confirm if you attempted the above fix as if this resolves your issue we would like to investigate including this code in latter releases.

    Thank you

    99w

    (@ninetyninew)

    Hi @voskotan – we haven’t heard back from you in a while so we are going to mark this issue as resolved, if you have any further feedback on the points raised above please raise a further ticket and let us know.

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working correct with wpml’ is closed to new replies.