Support Forum

Content of the article

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

Problem with price filter....

(new from 01-07-2019)
This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see green button on the right side) and press Save button.
If you not got email within 24 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.

I 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

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

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.

View post on imgur.com

 

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>';
}

}

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.

Yes, I have tested with native woo price filter.... Same issue...

I am using the latest version of the plugin...

Check the issue here:

http://staging.tollwear.gr/product-category/%ce%b1%ce%bd%ce%b4%cf%81%ce%b1%cf%83/andras-papoutsia/sneakers/

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

Can you be more specific? There is nothing out of the ordinary in the database... Standard woocommerce

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