Problem with price filter....
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 pleaseIf 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.
Quote from tollwearspot on November 20, 2019, 20:18I am selecting a price filter to show products with price above 101 but it also show products that have price 90
https://imgur.com/pFCAvhf
I am selecting a price filter to show products with price above 101 but it also show products that have price 90
Quote from Pablo Borysenco on November 21, 2019, 18:26Hello
You use third-party plugins for discounts( https://c2n.me/44IjNDR.jpg ) Filter searches correctly for prices in the database
To test you can disable this plugin and try native woo price filter
Hello
You use third-party plugins for discounts( https://c2n.me/44IjNDR.jpg ) Filter searches correctly for prices in the database
To test you can disable this plugin and try native woo price filter
Quote from tollwearspot on November 21, 2019, 22:35I dont use amy kind of third party plugins...
The prices are show the way you see with the following code in functions.php. Removing the code below does not solve the problem.
https://imgur.com/M6Z8WfF
add_filter( 'woocommerce_get_price_html', 'wpa83367_price_html', 100, 2 );
function wpa83367_price_html( $price,$product ){if($product->is_on_sale())
{
if($product->is_type( 'variable' ) )
{
$from = $product->get_variation_regular_price();
$to = $product->get_variation_price();
return '<del style="color:grey;padding-right:4px;font-size:12px;">'. ( ( is_numeric( $from ) ) ? woocommerce_price( $from ) : $from ) .'</del> <span style="color:red;padding-right:4px;font-size:12px" class="discountprice">-'.round( ( ( $from - $to ) / $from ) * 100 ).'%</span> <span><strong>'.( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) .'</strong></span>';
}
else
{
$from = $product->regular_price;
$to = $product->sale_price;
return '<del style="color:grey;padding-right:4px;font-size:12px;">'. ( ( is_numeric( $from ) ) ? woocommerce_price( $from ) : $from ) .'</del> <span style="color:red;padding-right:4px;font-size:12px" class="discountprice">-'.round( ( ( $from - $to ) / $from ) * 100 ).'%</span> <span><strong>'.( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) .'</strong></span>';}
}
else
{
$to= $product->get_variation_regular_price();
return ' <span><strong>' . ( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) . '</strong></span>';
}}
I dont use amy kind of third party plugins...
The prices are show the way you see with the following code in functions.php. Removing the code below does not solve the problem.
add_filter( 'woocommerce_get_price_html', 'wpa83367_price_html', 100, 2 );
function wpa83367_price_html( $price,$product ){
if($product->is_on_sale())
{
if($product->is_type( 'variable' ) )
{
$from = $product->get_variation_regular_price();
$to = $product->get_variation_price();
return '<del style="color:grey;padding-right:4px;font-size:12px;">'. ( ( is_numeric( $from ) ) ? woocommerce_price( $from ) : $from ) .'</del> <span style="color:red;padding-right:4px;font-size:12px" class="discountprice">-'.round( ( ( $from - $to ) / $from ) * 100 ).'%</span> <span><strong>'.( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) .'</strong></span>';
}
else
{
$from = $product->regular_price;
$to = $product->sale_price;
return '<del style="color:grey;padding-right:4px;font-size:12px;">'. ( ( is_numeric( $from ) ) ? woocommerce_price( $from ) : $from ) .'</del> <span style="color:red;padding-right:4px;font-size:12px" class="discountprice">-'.round( ( ( $from - $to ) / $from ) * 100 ).'%</span> <span><strong>'.( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) .'</strong></span>';
}
}
else
{
$to= $product->get_variation_regular_price();
return ' <span><strong>' . ( ( is_numeric( $to ) ) ? woocommerce_price( $to ) : $to ) . '</strong></span>';
}
}
Quote from Pablo Borysenco on November 22, 2019, 11:02Hello
Did you do test with native woo price filter?
What version of the plugin are you using?
Pleas drop me exact link to the issue.
Hello
Did you do test with native woo price filter?
What version of the plugin are you using?
Pleas drop me exact link to the issue.
Quote from tollwearspot on November 25, 2019, 20:52Yes, I have tested with native woo price filter.... Same issue...
I am using the latest version of the plugin...
Check the issue here:
Yes, I have tested with native woo price filter.... Same issue...
I am using the latest version of the plugin...
Check the issue here:
Quote from Pablo Borysenco on November 26, 2019, 12:04Hello
I am using the latest version of the plugin... - Number of the version
I have tested with native woo price filter.... Same issue... - it seems the problem is not in the filter, but in the database and how the price of the product is formed
Hello
I am using the latest version of the plugin... - Number of the version
I have tested with native woo price filter.... Same issue... - it seems the problem is not in the filter, but in the database and how the price of the product is formed
Quote from tollwearspot on November 26, 2019, 13:07Can you be more specific? There is nothing out of the ordinary in the database... Standard woocommerce
Can you be more specific? There is nothing out of the ordinary in the database... Standard woocommerce
Quote from Pablo Borysenco on November 27, 2019, 12:42Hello
Please activate my plugin.
It looks like in this case, discount prices are formed on the fly, and the filter searches the database.
But better contact to woocommerce support
Hello
Please activate my plugin.
It looks like in this case, discount prices are formed on the fly, and the filter searches the database.
But better contact to woocommerce support