Community Add-Ons

Add file to this package
Top » Order Total Modules

Payment Type Charge
for osCommerce Online Merchant v2.2

order total class that lets you set a percentage based charge depending on the payment type the customer uses.

Legend:  Download   Report
Expand All / Collapse All
delivery tax fix for Payment Type Charge v1.8 (contrib # 251) JuanNavarro 29 Dec 2007  

delivery tax fix for Payment Type Charge v1.8 (contrib # 251)

The tax is applied based on the customers primary address, but thats not the osc default behavior.
Osc by default takes the delivery address to apply the taxes.

To achieve this change line 73:
$tod_rate = tep_get_tax_rate(MODULE_FIXED_PAYMENT_CHG_TAX_CLASS);

to:
$tod_rate = tep_get_tax_rate(MODULE_FIXED_PAYMENT_CHG_TAX_CLASS, $order->delivery['country']['id'], $order->delivery['zone_id']);

Payment Type Charge v1.8 Spaceboy 30 Sep 2007  
Payment Type Charge v1.7 Ralph2 13 Feb 2007  
Fixed Payment Type Charge v1.6 giz80 19 Apr 2006  
Fixed Payment Type Charge v1.5 RogerSwiss 12 Apr 2006  
contre remboursement maxetliz 17 Jul 2005  
Payment Type Charge update Edwin Bekaert 6 Mar 2003  
Fixed Payment Type Charge v1.4 Ian Wilson 26 Oct 2002  
Fixed Payment Type Charge v1.3 Ian Wilson 10 Oct 2002  
Payment Type Charge v1.2 Ian Wilson 30 Sep 2002  
Fixed Payment Type Charge v1.2 Ian Wilson 12 Sep 2002  
Payment Type Charge v1.1 Ian C Wilson 4 Sep 2002  
Fixed payment type charge v1.1 Ian C Wilson 4 Sep 2002  
Fixed payment type charge v1.0 Ian C Wilson 31 Aug 2002  
Payment Type Charge v1.0 Ian C Wilson 11 Aug 2002