Produc Category Filter & Weglot
-
Hi,
We use WordPress/DIVI/Woocommerce/Weglot. (french and spanish)
There’s a problem about Filter Product Catégory and Weglot.
The stranslation is ok but not the target link.
In the spanish boutique, i Select a category (filter in sidebar) and after the new page is the good page but in french. It must be the same page in Spanish language.
Weglot support ask me to contact woocommerce support in order to know if there’s a way to add a language information in the url, for exemple : https://guapi-store.com/?product_cart=les-hauts?locale=es because the bad url is https://quapi-store.com/?product_cat=les-basthe woocommerce code is :
jQuery( '.dropdown_product_cat' ).change( function() { if ( jQuery(this).val() != '' ) { var this_page = ''; var home_url = 'https://guapi-store.com/'; if ( home_url.indexOf( '?' ) > 0 ) { this_page = home_url + '&product_cat=' + jQuery(this).val(); } else { this_page = home_url + '?product_cat=' + jQuery(this).val(); } location.href = this_page; } else { location.href = 'https://guapi-store.com/'; } }); if ( jQuery().selectWoo ) { var wc_product_cat_select = function() { jQuery( '.dropdown_product_cat' ).selectWoo( { placeholder: 'Seleccione una categoría', minimumResultsForSearch: 5, width: '100%', allowClear: true, language: { noResults: function() { return 'Aucun résultat'; } } } ); }; wc_product_cat_select(); }
});
So is-there someone who know this problem or have a procedure to get the solution please ?
Thank for your help.The page I need help with: [log in to see the link]
- The topic ‘Produc Category Filter & Weglot’ is closed to new replies.