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

Different other Content on Filter Reults Pages?

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.

Hello,

I was wondering if it is possible to show different content above the product listing AFTER a filter is applied / DEPENDING on the filter option(s) set by the frontend user?
Example:
I have a filter for product color or styles /others also with ACF).
If I set the filter in the frontend it will result in showing correctly the"shop" template" and filtered products with an URL like e.g.
/shop/swoof/product_cat-electronics/ or
/shop/swoof/acf_filter-red-color/ ...

Now what I would like to display would be decription text and/or images or a slider (content in general) above the filter and product listing DEPENDING ON THE FILTER SET.

Working with DIVI in my case, it would be possible to diplay content by conditions, HOWEVER conditions can be defined in DIVI only with URL parameters,
e.g. having URLs like /shop/swoof/?product_cat=electronics...

Question:
Is there either a way to rewrite the url /...filter-colors/ to an URL with parametes /?filter=colors to use DIVI conditions?
AND/OR
is there any other way to show other content depending on the filter option(s) set by the frontend user?
(If otherwise impossible maybe also with programming? Or htaccess rewrites?)

Thank you very much!

Best,
Thomas

Hello Thomas

Is there either a way to rewrite the urlĀ  - Yes. Please disable SEO URL - https://share.pluginus.net/image/i20240805121600.png

Otherwise, you need code customization.

Check if there is a pot request:

global $WOOF;

if($WOOF->is_isset_in_request_data( $WOOF->get_swoof_search_slug())){

// do something

}

To get search parameters:

$WOOF->get_request_data();