Ready to get started?Download WordPress


WooCommerce Bulk Discount
Round the price (3 posts)

  1. jeff1026j
    Posted 11 months ago #

    Hi, first I want to thank u for this plugin~ it's really convenient

    but the currency I use doesn't allow decimal point
    can I add round for percentage discount in the plugin file?

    I have the ability to modify the file and upload it, just have to know which line I should modify



  2. Rene Puchinger
    Plugin Author

    Posted 11 months ago #

    Hi, if I look which lines should be modified, I will be then able to release a new version which will allow this behaviour to be set in options. Therefore I recommend to wait few days until I update the plugin.

  3. Rene Puchinger
    Plugin Author

    Posted 11 months ago #

    Now I'm wondering whether to add this feature or not due to loss issues as a consequence of rounding. If you really want to round the price after percentage discount, carefully add the round() operation to places where multiplying of price by something like $coeff occurs. For example, one such modification would be on line 159.


You must log in to post.

About this Plugin

About this Topic