PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Display woocommerce category url of shop with gerarchy

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

We have a similar problem to another user, this is his support request: https://wordpress.org/support/topic/display-category-url-of-shop-and-breadcrumbs/

As him we would like too show the category url of woocommerce and not the query generated by the plugin but moreover our site has this structure for categories: category-->subcategory1-->subcategory2.

We tried to use the code of that request support but it does not work with category gerarchy but only for the first child, this is the code:

add_action('registered_taxonomy', function () { $site_url = 'https://adv-online.it/'; $current_url = $_SERVER['SCRIPT_URI']; if (str_contains($current_url, 'swoof')) { $data = explode('/', $current_url); if (str_contains($data[5], 'product_cat')) { $tmp = explode('-', $data[5]); $link ="{$site_url}categoria-prodotto/{$tmp[1]}/"; wp_redirect($link); exit; } } });

Our site is: https://adv-online.it/

For example if we filter for APRILIA-->Amico 1° serie 50 cc.-->1990-1992 we would like to show the url https://adv-online.it/categoria-prodotto/aprilia/amico-1-serie-50-cc/ and not the actual: https://adv-online.it/negozio/swoof/product_cat-1990-1992/

Could you please help us?

Thank you,
STUDIOBENVENUTI

 

Hello

Unfortunately, the plugin does not have such a feature. You will not be able to change the structure of the search query in the URL.