Post by punchi » Thu Jul 22, 2010 12:06 pm

Hi guys!

I want to add an 2% of fee when choosing Paypal. I have this code in "confirm.php" (controller/checkout)

Code: Select all

if ($this->session->data['payment_method']["id"] == "pp_standard")
        {
        $total_temp = substr($total_data[2]["text"], 1, 10);
        $arr = array("title" => "Paypal Fee:", "text" => "$".$total_temp*0.2, "value" => $total_temp*0.2, "sort_order" => "3" );
        array_push($total_data, $arr);
        $total_data[2]["text"] = $total_temp+ $total_temp*0.2;
        $total_data[2]["text"] = "$".$total_data[2]["text"];
        $total_data[2]["value"] = $total_temp+ $total_temp*0.2;
        }
 
With that, appear the cost for the fee. The problem is later, when you confirm and appear in paypal the cost without the fee. I figured that the:

Code: Select all

$this->session->data['shipping_method']['cost'] 
Can be modified to show it in the final price, but that isn't the idea. Which are the variables that pass to the next page?? I need to add that fee modifing the final price.

Thanks!

Newbie

Posts

Joined
Fri Mar 12, 2010 5:29 am

Post by punchi » Wed Jul 28, 2010 3:15 am

no body knows? ???

Newbie

Posts

Joined
Fri Mar 12, 2010 5:29 am

Post by Xsecrets » Wed Jul 28, 2010 4:42 am

q has a mod for it PAYMENT TYPE FEE MODULE I'm sure I could figure it out, but it's just not worth the time when it's available so cheaply.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US
Who is online

Users browsing this forum: No registered users and 7 guests