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

shortcode without the open filter button or image

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.

Hi

I have the plugin working as I would like it to, but a couple of questions:

  1. Using the widget there is no open filter button/image just the search form, however it won't allow hierarchy drop down as my shortcode does see link in private data for this topic- I don't want anyone to have to click on anything to open the search filter
  2. I would like the search results to display the search terms chosen i.e. Citroen, Relay, 2007, L1H1 as a title.

Hope you can help :-)

Hello

1 Please check this option - https://share.pluginus.net/image/i20240403105159.png

2 Unfortunately the plugin does not have such a feature. SEO URL extension can provide similar functionality - https://products-filter.com/extencion/seo-url-request

Hi

I want to use the shortcode instead but it keeps displaying a button first instead of just the filter search form. This is my shortcode:

 

[woof sid='generator_660552c11daa7' redirect='https://www.omtest.co.uk/vanrack/shop' autohide='0' autosubmit='1' is_ajax='0' ajax_redraw='1' start_filtering_btn='1' btn_position='b' dynamic_recount='-1' hide_terms_count_txt='0' mobile_mode='0' ]

 

Thanks in advance

OK! Please  read docs - https://products-filter.com/shortcode/woof

you enabled this option - start_filtering_btn='1'  -  try to delete it in the shortcode

you are amazing - thank you :-)

Hello

Great! Welcome;)

 

Just another issue I have noticed - My site's mega menu works perfectly on website pages but on any of the swoof search result pages it breaks?

https://www.omtest.co.uk/vanrack/shop/swoof/select-vehicle-boxer/

hope you can help - nearly there :-)

Hello

Can you make a video with the issue?

 

Hi

 

please see the link: https://www.loom.com/share/5c1f6d2d397741b2a17e0ff3c47a5313?sid=14b4c9e1-6c20-4cb8-9b37-6e65d02ed077

many thanks in advance

Looks like I figured out what the problem might be: the filter's search query also affects these product blocks - https://c2n.me/4kPoTRA.jpg  - code customization is needed to solve this incompatibility

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Hi

it's ok, we worked around it. However, the website is now live but the client wants the title on the search resultds page to be:

You searched for: (terms)

Is this possible and how would I do it? Thanks again

Hello

The standard functionality looks like this - https://products-filter.com/shortcode/woof_search_options

If this doesn't work for you, then you need code customization

Thank you - that works fine but how do I get it to show the full search hierarchy

if I do a search for Renault > Kangoo > 1998 > L1 the search result just shows the last in the hierarchy

Hello

Unfortunately the plugin does not have such a feature.

Thanks

I am trying to make it work and have added this code to functions.php. I am using the theme thegem by codex who don't use the archive-product and appear to have removed the before and after - see end of post

function display_selected_terms_with_woof() {
// Initialize an empty array to store selected terms
$selected_terms = [];

// Get all taxonomies for products
$taxonomies = get_object_taxonomies('product', 'objects');

foreach ($taxonomies as $taxonomy => $taxonomy_object) {
if (isset($_GET[$taxonomy])) {
$term_slugs = explode(',', $_GET[$taxonomy]);
foreach ($term_slugs as $term_slug) {
$term = get_term_by('slug', $term_slug, $taxonomy);
if ($term) {
$selected_terms[] = $term->name;
}
}
}
}

// Display selected terms
if (!empty($selected_terms)) {
echo '<div class="selected-terms">';
echo '<h3>Selected Terms:</h3>';
echo '<ul>';
foreach ($selected_terms as $term) {
echo '<li>' . esc_html($term) . '</li>';
}
echo '</ul>';
echo '</div>';
}
}
add_action( 'woocommerce_before_shop_loop', 'display_selected_terms_with_woof', 9 );

 

Thegem woocommerce.php file beginning:

woocommerce.php

Hello

Ok! thank you for your cooperation

To make this code work with the SEO URL option:

Try using this code to get the current search query by taxonomy ( instead of $_GET )

if(class_exists('WOOF')){

global $WOOF;

$search_request = $WOOF->get_request_data();

}

 

Thank you - where would I add this? Sorry I am a beginner but trying :-)

Hello

I changed the function

function display_selected_terms_with_woof() {
// Initialize an empty array to store selected terms
$selected_terms = [];

// Get all taxonomies for products
$taxonomies = get_object_taxonomies('product', 'objects');

$search_request = $_GET;

if(class_exists('WOOF')){

global $WOOF;

$search_request = $WOOF->get_request_data();

}

foreach ($taxonomies as $taxonomy => $taxonomy_object) {
if (isset($search_request[$taxonomy])) {
$term_slugs = explode(',', $_GET[$taxonomy]);
foreach ($term_slugs as $term_slug) {
$term = get_term_by('slug', $term_slug, $taxonomy);
if ($term) {
$selected_terms[] = $term->name;
}
}
}
}

// Display selected terms
if (!empty($selected_terms)) {
echo '<div class="selected-terms">';
echo '<h3>Selected Terms:</h3>';
echo '<ul>';
foreach ($selected_terms as $term) {
echo '<li>' . esc_html($term) . '</li>';
}
echo '</ul>';
echo '</div>';
}
}
add_action( 'woocommerce_before_shop_loop', 'display_selected_terms_with_woof', 9 );

Thank you - how do I make this work with the seo url option. Ive read the documentation and not sure what to add:

 

 
 
 

 

Hello

You need to insert a search query (for which you want to do SEO optimization) - https://share.pluginus.net/image/i20240520125910.png The other fields are headers that will change if the user uses this search link.