Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

bit of help


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




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.



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




'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




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


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

  • Create New...