Open fabio323ti opened 2 years ago
Solved : hope this helps!
add_filter('term_link', function ($termlink, $term, $taxonomy) {
if ('product_cat' == $taxonomy) {
$termlink = trailingslashit(get_home_url()) . 'shop/?jsf=jet-woo-products-grid&tax=product_cat:' . $term->term_id;
}
return $termlink;
}, 10, 3);
Im using Jetsmartfilter on main shop page to filter products grid . by opening single product page and select category on breadcump link.... permalink redirect goes to : /sitename/product-category/taxonomie_name/ . i see main shop page but products are not filtered
ther's some snippet to replace category page with jetsmartfilter url?
for ex. selecting category product on breadcumb > redirect to /shop/?jsf=jet-woo-products-grid&tax=product_cat:72 , where 72 is cat_id
in this way, you'll can use jetsmartfilter inside shop page and category page will redirect to main shop page already filtered...
someone can help? Thx