WordPress.org

Forums

WooCommerce Bulk Discount
Round the price (3 posts)

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Bulk Discount
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags