• Hello,

    I use your plugin and it works ok on normal sale prices. But it doesn’t work with prices set by Discount rules plugin.
    In your FAQ section is stated it works with it. I’am talking about plugin Discount rules by Flycart.
    Why this isn’t working, should I do some additional setup?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author kkarpieszuk

    (@kkarpieszuk)

    hey

    Honestly I’ve never tested this plugin, it is mentioned in the faq based on the reports from the users who say it works.

    Could you describe what is your scenario and current output and desired output? If you describe me step by step how to replicate your setup and configuration, I will test it and debug and – if this will be possible – provide a solution

    Thread Starter simonwebtim

    (@simonwebtim)

    Hi,

    scenario is simple. When discount price plugin is used to apply discount, this doesn’t get noted in WC price history plugin. Desired output is of course to get it noted in your plugin, and also shown on site.

    Discount plugin uses apply_filters to change price, you can get it in PHP for example with below code.
    $sale_price_WC_discount = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price’, $product->get_price(), $product);

    Thread Starter simonwebtim

    (@simonwebtim)

    Hello, any reply/fix for this?

    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    I am not familiar with this plugin so could you give me the steps to set the discount rules? I have installed it but I can’t find where to configure the rules. Please help me to speed up the troubleshooting so I will be able focus on coding. I am sorry but I am lone developer here working on a free plugin, so sometimes I need an assitance 🙂

    Thread Starter simonwebtim

    (@simonwebtim)

    This is one of more popular discount plugins on woocommerce. It is very good even in free version.
    https://ww.wp.xz.cn/plugins/woo-discount-rules/

    Here is documentation with examples: https://docs.flycart.org/en/collections/806883-discount-rules-for-woocommerce

    I think that main point that in segment that you check for disocunt price, you should also check if price is discounted with discount plugin. It actually doesn’t change product prices.
    You can check if price is changed with PHP code:
    $sale_price_WC_discount = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price’, $product->get_price(), $product)

    It is explained with more examples in docs here: https://docs.flycart.org/en/articles/7907342-developer-documentation

    I hope this helps and you can make changes so it is compatible with discount plugin.

    Thank you for your time, your plugin is quite good and I hope you will manage to make it even better.

    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    the issue for the request has been created:

    https://github.com/kkarpieszuk/wc-price-history/issues/171

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Discount rules plugin not working’ is closed to new replies.