Title: belpha's Replies | WordPress.org

---

# belpha

  [  ](https://wordpress.org/support/users/belpha/)

 *   [Profile](https://wordpress.org/support/users/belpha/)
 *   [Topics Started](https://wordpress.org/support/users/belpha/topics/)
 *   [Replies Created](https://wordpress.org/support/users/belpha/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/belpha/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/belpha/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/belpha/engagements/)
 *   [Favorites](https://wordpress.org/support/users/belpha/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/page/2/#post-3954096)
 * @ Panosdotk, I’m sorry but from tomorrow I will be out of city for a month! So
   I can get back on this only around half October…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/page/2/#post-3954091)
 * @ jayraaj, thanks for your feedback!
 * @ dekaru, glad to help! I tried to contact the original author in several ways
   but never got any reply so I think that I’ll start a fork version of this plugin
   in the near future.
    Oh thanks, but I don’t have any donation button, if I’ll
   ever come to Mexico City, you can pay me a beer 😉
 * @ panosdotk, it seems that woocommerce doesn’t support multistep checkout natively,
   as said here [https://twitter.com/feios/status/291974130327228417](https://twitter.com/feios/status/291974130327228417)
   
   If there is any demo/trial version of Bazar that I can install to make some test
   I’ll give a try, I don’t want to spend 60USD just for make a fix 😛
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/#post-3954088)
 * Try to clean your browser history (or use another browser / computer), I’m sure
   the information about (last) payment method is stored into browser’s cache.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/#post-3954085)
 * @ Dekaru: try now, I made a couple of fix for display the fees correctly and 
   add them to the gateway.
 * About “mixed” charges, this is the algorithm (the one used by PayPal):
 * NEW_TOTAL = (TOTAL + fixed) / (1 – percentage)
 * Note that NEW_TOTAL is always rounded up to next cent, exemples:
    0,999 -> 1,00
   || 1,000 -> 1,00 || 1,001 -> 1,01
 * @ all: added a new jQuery function that should force update of chart fees after
   selecting the payment method, I can’t test it with Bazar. Let me know!
 * V 0.12 beta: [http://www.sendspace.com/file/vr0hd5](http://www.sendspace.com/file/vr0hd5)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/#post-3954081)
 * About the “extra fees before payment method”, go to settings and check if your
   default payment type has “–select–” in Extra Charges Type field.
 * About the failed refresh, you’re right, once selected a payment type it doesn’t
   refresh. To force it to refresh, I selected the new type of payment, changed “
   envio” type and get back to original “envio”.
 * It seems the the JavaScript function I wrote doesn’t work properly with your 
   theme (as you can see it works with CatchBox, I was lucky). To solve it quickly,
   it would be better to translate it in jQuery but I’m not so skilled, we must 
   find a js guru that help us :/
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/#post-3954079)
 * I had a look to your website, actual pc is Win7, Firefox 23.0.1.
 * 1) added two items to chart (price 200 + 100)
    [http://img198.imageshack.us/img198/825/ijkm.jpg](http://img198.imageshack.us/img198/825/ijkm.jpg)
 * 2) default payment type (price 200 + 100)
    [http://img163.imageshack.us/img163/6862/bl1l.jpg](http://img163.imageshack.us/img163/6862/bl1l.jpg)
 * 3) MercadoPago type (price 200 + 100 + 6% = 312)
    [http://img23.imageshack.us/img23/8619/x3tw.jpg](http://img23.imageshack.us/img23/8619/x3tw.jpg)
 * 4) going back to the chart (price 200 + 100 + 6% = 312)
    [http://img837.imageshack.us/img837/4905/2pri.jpg](http://img837.imageshack.us/img837/4905/2pri.jpg)
 * Are you sure that you’re running v 0.12?
    Cause at point 3 (with percentage) 
   you should see a value of additional fees written in USD and not as xx%, also
   at point 4 you should get a line “additional fees” and value in USD.
 * Do you get the same output?
 * Here my shop, have a try: [http://www.toxicindustries.net/?post_type=product](http://www.toxicindustries.net/?post_type=product)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] contribution to this plugin (new version!)](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/contribution-to-this-plugin-new-version/#post-3954077)
 * Hello Jayraaj and Dekaru, I’m glad you find my contribution useful!
 * I checked again and I found a mistake using PHP_ROUND_HALF_UP, as fix I used ‘
   ceil’ function. I made a quick test, now the row displays correctly, please try
   it out and let me know, thanks!
 * v 0.12 [http://www.sendspace.com/file/1yxl5x](http://www.sendspace.com/file/1yxl5x)
 * EDIT: I just noticed you’re talking about Bazar theme, I’m using CatchBox and
   I can see rows (the bug I fixed was on the value of the row).
    I never tried 
   Bazar, this plugin uses standard hooks/actions from WooCommerce, maybe the Bazar
   overwrites them?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] use squared brackets in email](https://wordpress.org/support/topic/use-squared-brackets-in-email/)
 *  Thread Starter [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/use-squared-brackets-in-email/#post-4007911)
 * damn, it seems wp catched my double bracket…
    the code I used is this one without
   space between double brackets
 * `[ [category] ] [your-subject]`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Add Charges To Payment Gateway] Add percentage](https://wordpress.org/support/topic/add-percentage/)
 *  [belpha](https://wordpress.org/support/users/belpha/)
 * (@belpha)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/add-percentage/#post-3711116)
 * yeah it should be possible to add a kind of expression like: ” fix value + percentage”

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