Home › Forums › WoodMart support forum › Filter by Price-desc is wrong if you have variable products
Filter by Price-desc is wrong if you have variable products
- This topic has 4 replies, 2 voices, and was last updated 3 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
January 20, 2021 at 6:14 pm #260105
natahParticipantplease check attachments to see that for sorting at low to high is working fine.
but sorting price high to low is confused with products that are variable and takes not the basic price.
is there a way to have the opposite of price ?
I am using this code:
add_filter( ‘woocommerce_catalog_orderby’, ‘bbloomer_rename_sorting_option_woocommerce_shop’ );function bbloomer_rename_sorting_option_woocommerce_shop( $options ) {
$options[‘date’] = ‘Πιο πρόσφατο’;
$options[‘price’] = ‘Τιμή: χαμηλή προς υψηλή’; //low to high it is working
$options[‘price-desc’] = ‘Τιμή: υψηλή προς χαμηλή’; //high to low it is not working
return $options;
}Attachments:
You must be logged in to view attached files.January 20, 2021 at 6:17 pm #260108
natahParticipantplease note that my products are imported by WP all import plugin
and the solution to go to woocommerce / status / tools
Regenerate Product lookup tables
and
Recount terms at Term counts
it is not workingJanuary 21, 2021 at 8:26 am #260237
Elise NoromitMemberHello,
The functionlity of the products sorting is provided by Woocommerce and it works correctly. We can suggest to disable the option: http://prntscr.com/xckcav in the Theme Settings > Shop.
Best Regards
January 21, 2021 at 11:18 am #260294
natahParticipantThe sorting by price-desc is NOT working correctly.it takes the price of a variable product with the price of an attribute.
for example please check
https://www.refurbishstore.gr/shop/server/dell-poweredge-r900-4xe72202-cores-16gb-perc6i-5xlff-2x1570w/
this product cost 502€ but with the extra option of its attribute it costs 1574€
so at the sorting it goes at 8th place of my shop! even if it shows correctly that costs 502euros
https://www.refurbishstore.gr/shop/?orderby=price-desc
that is wrongBut if you sort them by price / low to high is working fine
https://www.refurbishstore.gr/shop/?orderby=pricethe same product is at the 22 page at 101 place before end (the highest price)
Can you understand the issues?I don’t want to unhide the range of prices for my products.
the price of it is 502 and if you choose the extra setting it costs 1574, so it is correct that at the list of my products I have only the basic price.so the sorting for price-desc must take the basic price, NOT the price of the variable products with attributes.
Any suggestion for that ?
thanks in advance
January 21, 2021 at 11:11 pm #260457
Elise NoromitMemberHello,
Please check the price filter with the Storefront theme to detect if the problem is caused by our theme.
Best Regards
-
AuthorPosts
Tagged: sorting by price
- You must be logged in to create new topics. Login / Register