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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #260105

    natah
    Participant

    please 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.
    #260108

    natah
    Participant

    please 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 working

    #260237

    Hello,

    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

    #260294

    natah
    Participant

    The 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 wrong

    But if you sort them by price / low to high is working fine
    https://www.refurbishstore.gr/shop/?orderby=price

    the 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

    #260457

    Hello,

    Please check the price filter with the Storefront theme to detect if the problem is caused by our theme.

    Best Regards

Viewing 5 posts - 1 through 5 (of 5 total)