Support » Plugin: Dynamic Pricing With Discount Rules for WooCommerce » After update, the discount calculations are wrong

  • Resolved Sygnoos

    (@sygnoos)


    Hello,

    Thanks for the great plugin.

    We are currently using the version 3.2.5 and everything is working good besides one little bug.

    After updating to the latest version, this little bug got fixed but another problem arises: it doesn’t work good with another plugin.

    We have installed a plugin (WC Fields Factory) which modifies the price of the product according to some conditional fields. But whenever your plugin detects that is time to make a discount, the price added by the other plugin gets cleared.

    So for example:

    We have a product that costs $20. If user selects X option from a dropdown, we add another $10, making it $30 in total. Then, if we change the quantity to 2, it means it has to be $60 in total and the discount get applied to that, and that is how it works in your 3.2.5 version.
    But in your latest version (I’m not sure in which version that got changed), you apply the discount over $40 (the original product price multiplied by 2), so you don’t take into account the $10 added by the other plugin, which is very bad for us.

    So my question is, are you able to fix this so it can work like it did before or we have to stick with the older version of your plugin?

    I hope that I have explained everything correctly, if not, please let me know.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor ijas_acowebs

    (@ijasacodez)

    Hi,

    Sorry for the inconvenience. In our latest releases, along with bug fixes, new features (quantity discount updates) we have also made it compatible with some other plugin.

    We have forwarded the same to our development team, we will check into the compatibility issue and will try to get it resolved asap. Meanwhile please use the older version (if its working fine with WC Fields Factory).

    Thanks for reporting the same.

    Plugin Contributor ijas_acowebs

    (@ijasacodez)

    Can you please share the WC Product Field Group settings / product fields screenshot so that we can setup the same config on our local system for testing.

    Plugin Contributor ijas_acowebs

    (@ijasacodez)

    Can you please try commenting this code on the plugin file:

    File: class-awdp-discount.php
    Line: 729

    $price = ( array_key_exists ( $product->get_data()['slug'], $this->actual_price ) && $this->actual_price[$product->get_data()['slug']] ) ? $this->actual_price[$product->get_data()['slug']] : $price;

    Sygnoos

    (@sygnoos)

    @ijasacodez here is the screenshot of the pricing rules: https://prnt.sc/qf21u0

    Regarding the code change, should we try this change in the latest version of your plugin?

    Plugin Contributor ijas_acowebs

    (@ijasacodez)

    yes in the latest version

    Plugin Contributor ijas_acowebs

    (@ijasacodez)

    We have fixed the compatibility issue (WC Fields Factory) on our latest update and have added some new features to our plugin, please update your plugin to the latest version.

    Marking this thread as resolved. Please feel free to open a new thread if you have any further questions. Thanks.

    Sorry for the late reply.

    Yes, it works.

    Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.