Forums / Built-in Shipping and Payment Modules / Handling Charge for all International?

Handling Charge for all International?

Locked

Views: 2,414

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
5 Dec 2006, 4:16 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Handling Charge for all International?

could you enter the amount in the Handling charge on the UPS and USPS? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Dec 2006, 4:26 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Handling Charge for all International?

I thought you said you used UPS and USPS for international ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Dec 2006, 4:54 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Handling Charge for all International?

You could customize the usps.php and ups.php to manage different handling charges based on national or international shipping address ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Dec 2006, 5:36 AM
#7
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Handling Charge for all International?

How would one go about doing this, Ajeh? I'd like to charge a small handling fee for all non-US based transactions as well. I use USPS but I'm sure UPS will be a very similar hack :)

5 Dec 2006, 5:42 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Handling Charge for all International?

I'd peek around the Modules and find one that referrences the International and National ...

Then I'd use some similar logic to alter the Handling charge in the UPS and USPS modules ... :smile:

Easy, eh? :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Dec 2006, 6:00 AM
#9
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Handling Charge for all International?

found the answer here: http://www.zen-cart.com/forum/showthread.php?t=36421&highlight=international+handling+fee

(since i don't know the exact way to call the variables i decided to do a quick search instead of give myself a migraine :))

So.. if you want it strictly for USA.. here's the code for the USPS module (view that thread to see where to change it)

/// ADDED Extra Handling Fee for International Orders
		if ($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY) { // equal to the US?
			$modified_usps_handling = MODULE_SHIPPING_USPS_HANDLING;
		} else {
			$modified_usps_handling = (MODULE_SHIPPING_USPS_HANDLING + 5.00); // my added handling fee is $5
		}
		///
          $methods[] = array('id' => $type,
          'title' => $title,
          'cost' => ($cost + $modified_usps_handling) * $shipping_num_boxes);
5 Dec 2006, 6:04 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Handling Charge for all International?

Neat the way that works eh? :smile:

Thanks for posting the solution that worked for you ...

Next I suppose I should re-write all the shipping modules to manage separate handling charges so no one has to think ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Dec 2006, 6:47 PM
#12
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Handling Charge for all International?

^^ on the other hand, i like it when I have to think this hard :) helps me learn a little more about PHP in general

21 Nov 2010, 9:58 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Handling Charge for all International?

NOTE: if you have not built the Zone yet for the create the Zone for the Lower 48 States plus DC post #8 will help you:
http://www.zen-cart.com/forum/showthread.php?t=83677&highlight=geo_zones

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!