OpenCart - 中文论坛

标题: opencart设置支付手续费的插件 [打印本页]

作者: sunboy    时间: 2014-11-19 14:42
标题: opencart设置支付手续费的插件
可以设置各种支付网关的手续费
[attach]1137[/attach]

=================================
== NOTE for all version
=================================

# Simple formula: (Total or SubTotal / 100 * Charge)
  wrong way to Paypal payment...
  
  Customer total: 100
  Paypal commission: 3.4%
  
  Now the customer will pay with paypal: 103.40
  When Paypal get the commission (103.40 - 3.4%) we have: 99.8844
  
==
  
# Complex Formula: (Total or SubTotal * PercentCharge) / (1- PercentCharge)
  right way to Paypal payment...
  
  Customer total: 100
  Paypal commission: 3.4%
  (100 * 0.034) / (1 - 0.034) = 3,5196 (rounded = 3.52)
  
  Now the customer will pay with paypal: 103.52
  When Paypal get the commission (103.52 - 3.4%) we have: 100.00
  
==

# Percentage charge support for shipping cost:
  If you declare percentage charge, you can also add this on shipping cost.
  Example with charge of 5% supplement, with shipping cost support:
  
             Sub-Total: 100.00
         Shipping Cost:  10.00
  Cash on Delivery(5%):   5.50
                 Total: 115.50

  (5% of sub-total) + (5% of shipping sost) == (5.00 + 0.50)
  
      Sub-Total: 100.00 + 5% (100.00 + 5.00 = 105.00)
  Shipping Cost:  10.00 + 5% ( 10.00 + 0.50 =  10.50)

==

# Enable/Disable fix based in total or sub-total of cart customer:
  If total or sub-total is lower and/or higher, to XXX; apply a load and/or discount, in fixed values or percentage of YYY
  A few example:
  - Line 1: Discount of 3% for Bank Transfer with order lower than to 150.00
  - Line 2: Discount of 5% for Bank Transfer with order higher than y ...
  or
  - Line 1: Cash on delivery Supplement/cost 5.00, for order lower than to XXX
  - Line 2: ..........

==
  
#Limited configuration for same payment methods with Sub-Total enabled:
  - apply to semi-pro (version)
  
  By configuring the same method of payment with more fixes, for example,
  
    line fix 1: cash on delivery with sub-total major of 100 and charge 10 (description: cash on delivery for order higher to 100)
    line fix 2: cash on delivery with sub-total major of 200 and charge 5  (description: cash on delivery for order higher to 200)
    line fix 3: ...
   
  the fix will be totaled and checkout will be in all...
                                1 x product yyy $ 10,00
                                     sub-total: $ 10,00
      cash on delivery for order higher to 100: $ 10,00
      cash on delivery for order higher to 200: $  5,00
                                         Total: $ 35,00
                                    
   So in this case the fix must be set:
     line1: cash on delivery with sub-total minor of 100.00 and charge 10 (description: cash on delivery for order lower than 100)
     line2: cash on delivery with sub-total major of 100.01 and charge 5  (description: cash on delivery for order higher to 100)

==

#Unlimited configuration for same payment methods with Sub-Total Enabled without sum of fix Eg:
  - apply to professional version
  
  line 1: payment-method-1 if sub-total is major(or equal) of 10 : discount of 3%
  line 2: payment-method-1 if sub-total is major(or equal) of 20 : discount of 5%
  line 3: payment-method-1 if sub-total is major(or equal) of 30 : discount of 7%
  line 4: payment-method-1 ....
  
  If you have the same payment method with different charges, set it in increasing order Eg:
    Bank Transfer Method with sub-total major(or equal) of 100 with (charge or)discount %-1
    Bank Transfer Method with sub-total major(or equal) of 300 with (charge or)discount %-3
    Bank Transfer Method with sub-total major(or equal) of 900 with (charge or)discount %-5

==



=================================
== Instruction
=================================
If empty language description value the fix non work in that language site.

#Charge (decimal values 0 "zero" can be omitted):

  Positive fixed value, surcharge: 10.00 = addition of 10.00
  Negative fixed value, discount: -10.00 = subtraction of 10.00

  Free, Semi-Pro(2|4):
    If we want to put a percentage value, we must first declare the "%" symbol: %
    Surcharge: %3.4 = addition of 3.4%
    Discount: %-10 = subtraction of 10%
   
  Professional, Semi-Pro(8):
    Individual input field for fixed and percentage charge

#Cart Total or Sub-total activation rule (no in free version):
  If you want to set the activation of the sub-total select from drop down menu:
  The minor < symbol is same to: if less than or equal
  The major > symbol is same to: if greater than or equal
  

#Pro Version:
  If you have payment method with geo zone setted, and product without shipping required, the fix not work.
  If the geo zone setted in "all zones" the fix work also with this products.
  
===






欢迎光临 OpenCart - 中文论坛 (https://bbs.opencart.cn/) Powered by Discuz! X3.2