Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bit of help


Guest

Recommended Posts

I know I have asked loads of questions and for help on here but cant solve this one, I have tried to find the cause but cant, sorry, I am trying

 

I installed the following add for 2.3.1

 

http://addons.oscommerce.com/info/7700/v,23

 

I found the following coding for this add on so the discounts gets carried over to PayPal but after doing the coding, it was changing the currency from GBP to USD on the Paypal page, I need the currency to stay in GBP

 

This is the steps I followed

 

 

1. Modify the catalog/includes/modules/payment/paypal_standard.php file.

Find:

 

function process_button() {

global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping;

 

Replace with:

 

function process_button() {

global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping, $discount; // Discount Code

 

Find:

 

'amount' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']),

 

Replace with:

 

'amount' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax'] + (empty($discount) ? 0 : $discount)), // Discount Code

 

Find:

 

if (is_numeric($sendto) && ($sendto > 0)) {

 

Add before:

 

// Discount Code - start

if (!empty($discount)) {

$parameters['discount_amount'] = $this->format_raw($discount);

}

// Discount Code - end

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...