• Resolved Anton Bond

    (@antonbond)


    Hi

    Thank you for your plugin, it’s really helpful

    I faced with some issue, when product has many variations (about 30), and in this case the price range stops working correctly. By default, Wooommerce shows a range of price variations from the smallest to the highest price. So in the case when discounts are applied using your plugin and the product has more than 20 variations the price range stops working correctly, it only shows the minimum price.

    I looked into the plugin code and found a filter which limits variations to 20 items:

    apply_filters(‘advanced_woo_discount_rules_check variants_limit_for_variable_strikeout’, 20); in /v2/App/Controllers/ManageDiscount.php:getVariablePriceHtml()

    Of course, this can be easily fixed by adding a filter in the theme code, but why is this filter needed? Does it somehow affect productivity? I didn’t find any mention of this filter in the documentation. And I spent several hours trying to figure out what the problem was.

    Thanks.

Viewing 1 replies (of 1 total)
  • sangeethasrinivasan

    (@sangeethasrinivasan)

    Hey

    Thank you for reaching out to us. This is Sangeetha from Customer Support Team.

    We have implemented a limit of 20 variants to improve the performance of site. This helps optimize the site’s speed and responsiveness. When dealing with products that have 20 variants or more, we calculate only the minimum and maximum prices for these variants to further enhance site performance.

    Please note that the maximum price may not always be displayed because the highest-priced product might be nonpurchasable, possibly out of stock.

    To ensure that both the minimum and maximum prices are displayed in such cases (Out of stock), please refer to this code snippet: https://gist.github.com/AnanthFlycart/7720b84aed32927671e9bedeb3ed3b47

    Additionally, we have provided another code snippet to increase the search limit for variable products, which you can find here: https://gist.github.com/AnanthFlycart/c76ae42736ca95224e1d3ca06b0dad4f

    I hope this information clarifies your questions. If you have any more inquiries or require further assistance, please don’t hesitate to contact us.

    Thanks
    Team Flycart

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with price ranges for variations’ is closed to new replies.