Post by BulletJules » Sun May 29, 2011 12:05 am

I'm using UPS as one of my shipping methods. I need to add a shipping/handling fee to the quoted UPS rate. Is there a way I can do this? As an example, if UPS shipping method has quoted $8.64 I need to add $2.50 to that rate so the total UPS shipping rate would be quoted at $11.14. Is there a way of doing this? :-\

Newbie

Posts

Joined
Sun Apr 17, 2011 4:12 am

Post by Qphoria » Sun May 29, 2011 1:03 am

1. EDIT: catalog/model/shipping/ups.php

2. FIND:

Code: Select all

$cost = $total_charges->getElementsByTagName('MonetaryValue')->item(0)->nodeValue;
3. AFTER, ADD:

Code: Select all

$cost += 2.50;

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by tdaubs » Fri Apr 19, 2013 7:13 am

Thanks Q. That's a pretty cool little trick.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by Johnathan » Sat Apr 20, 2013 9:03 am

For those looking, I just released a Hidden Shipping Adjustments extension to do this for all shipping methods without manually modifying core files.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 1 guest