WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Bulk Discount
Round the price (3 posts)

  1. jeff1026j
    Member
    Posted 9 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

    tks

    http://wordpress.org/plugins/woocommerce-bulk-discount/

  2. Rene Puchinger
    Member
    Plugin Author

    Posted 9 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
    Member
    Plugin Author

    Posted 9 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags