Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

zero shipping cost on paypal


erikwi

Recommended Posts

Posted

hi,

 

Before I start there are few things you should know about my site.

Currently my site is setup to have one currency only which is a Singapore Dollar (SGD) as default.

It also don't have any options to change languages so I default will be English.

 

Some history about what had happend so far:

1. After I set Singapore dollar as my default currency, when I arrive at the paypal biling information page from the checkout_confirmation.php page

the subtotal and the shipping & handling will be zero (0). I fix this by adding SGD to the paypal.php

 

function process_button() {

global $order, $currencies, $currency;

 

if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {

$my_currency = $currency;

} else {

$my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);

}

 

//note: SGD is added on 11 April 2007

if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD','SGD'))) {

//$my_currency = 'USD';

$my_currency = 'USD'; //added on 12 April 2007

 

}

 

2. After doing the above change now when I go to the paypal billing information page I have the subtotals amount but the shipping is still zero

 

So is there any other things that I need to modify in order to get the shipping amount??

 

 

Thanks,

 

Erik

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...