Jump to content

Shipping through UPS


Guest andysim

Recommended Posts

Hello all!

Now I struggle with shipping system setup.

I would like to use UPS "Ground" and "2nd day Air".

and I set it up, works actually.

Now it charges $5.27 for UPS Ground, $10.13 for UPS 2nd day air.

and it goes up little bit depends on item quantity.

How could I set the price for them myself?

For example;

I would like to charge $5.95 for UPS Ground and add $1.00 more for each more item.

Also need to make default to UPS Ground shipping.

Anyone has brilliant idea?

Thanks guys.

andy

Link to comment
Share on other sites

I had no idea UPS Module calculate fee automaticaly depends on Zip Code.

So, it is Ok now.

But still needs to modify rate table because some company needs to charge handling.

Thanks for the answer tbladecki.

Thanks for all.

Link to comment
Share on other sites

Here's your hack. Shortest one I've ever written:

In the file /modules/shipping/UPS/calc.php

Around line 73 (Code is shown below), change sum to be $quote + [some number], where [some number] is a decimal representing the amount of handling you want to charge below. In my example, I have added a $1.00 handling charge. If you wanted to get fancy, you could put the handling charge in a config file somewhere instead of hard-coding it, but this does work...

if($quote>0){

// Change the line below this comment

$sum = $quote + 1.00;

$shippingPrice .= $rate->getOpt($sum,$productCode,$desc);

}

Shortest hack ever...counting the spaces, it is 8 characters long. Good luck.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...