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

filter mask doesn't show on secondary language shop page

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 a multivendor, multilanguage site.

The filter mask works on the main ITA language shop page (even we have some cache issues and search page must be reloaded everytime) but is not shown at all on the secondary ENG shop page.

http://www.mercatodeivignaioli.it/en/vinegrowers-wines/

Hello

What  you  mean "mask"?

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png and  wp-admin access - https://c2n.me/42BAoj4.png

on the secondary ENG shop page. - it looks like the plugin is disabled at all

access data sent.

Mask is the WOOF Search/filter area that appears here https://www.mercatodeivignaioli.it/negozio/ and not here https://www.mercatodeivignaioli.it/en/vignaioli-wines/

 

 

I don't know how it has been placed on that page. is not a widget nor a shortcode and the person who did it doesn't remember anymore.....

Hello

Unfortunately, the key you gave me is not valid

To  get  license  key - https://codecanyon.net/downloads -> https://clip2net.com/s/49WQikd

I just created a new password

 

Hello

Please  drop me the valid license  key

To  get  the license  key - https://codecanyon.net/downloads -> https://clip2net.com/s/49WQikd

I did it already on Nov 24.

you have right credentials to enter. they work perfectly

Hello

I wrote to you  on Nov 24 - https://c2n.me/49YKDmI.png  - And I still see the invalid license key

you have right credentials to enter. they work perfectly - OK! Great!  But I ask you to give me the license code

added now

if  you  mean  this settings - https://c2n.me/49YW6Gr.png

https://www.mercatodeivignaioli.it/negozio/ AND  https://www.mercatodeivignaioli.it/en/vignaioli-wines/  - here you need to use different masks:

negozio

vignaioli-wines

And  try  in  file - \wp-content\plugins\woocommerce-products-filter\index.php  change  this function is_should_init()

private function is_should_init() {

if (is_admin()) {
return true;
}

//stop loading the plugins filters and its another functionality on all pages of the site
if (isset($this->settings['init_only_on']) AND ! empty($this->settings['init_only_on'])) {
$links = explode(PHP_EOL, trim($this->settings['init_only_on']));
$server_link = '';
//print_r($_SERVER);
if (isset($_SERVER['SCRIPT_URI'])) {
$server_link = $_SERVER['SCRIPT_URI'];
} else {
if (isset($_SERVER['REQUEST_URI'])) {
$server_link = site_url() . $_SERVER['REQUEST_URI'];
}
}

//***
$removeChar = ["https://","http://","/"];
$init=true;
if (!empty($server_link)) {
$server_link_mask = str_replace($removeChar, '', trim(stripcslashes($server_link)," /"));
//echo stripcslashes($server_link_mask . '<br />');
foreach ($links as $key => $pattern_url) {

$pattern_url = str_replace($removeChar, '', trim(stripcslashes($pattern_url)," /"));
$use_mask=true;
if(stripos($pattern_url,'#')===0){
$pattern_url=ltrim($pattern_url,"#");
$use_mask=false;
}

if($use_mask){
preg_match('/(.+)?' . trim($pattern_url) . '(.+)?/', $server_link_mask, $matches);
$init_tmp = !empty($matches);
}else{
$init_tmp =($pattern_url== $server_link_mask);
}

if (isset($this->settings['init_only_on_reverse']) AND $this->settings['init_only_on_reverse']) {
$init_tmp = !$init_tmp ;
}

if (!$init_tmp AND $init) {
$init = false;
}
}
if($init){
$this->is_activated=true;
return true;
}
}
} else {
return true;
}

return false;
}

 

I'm sorry but is not clear
First of all, the mask now has disappeared from the ITA page.

Can you explain me why?

Hello

You hid it on purpose with this option : https://c2n.me/49ZSqkW.png

https://c2n.me/49ZSmQd.png - this means that you want to show the filter only on this page - https://www.mercatodeivignaioli.it/negozio/ and hide on all other pages

If you still want to show the filter on this page - http://www.mercatodeivignaioli.it/en/vinegrowers-wines/  read this  please - https://c2n.me/49ZSMze.png (or  add: shop)

Or don't use this option at all

Clear now

thanks a lot. solved

Hello

Welcome;)