Post by cashman9 » Mon Nov 22, 2010 2:13 pm

I have a website up running now but I would like to have USPS Shipping options.

Lets say, USPS gives me a rate, and it displays the rate, I would like to have the option to add an amount to the rate that USPS provided. Meaning, if the shipping cost that USPS provided, for example, is $3, I would like to add $2 to it on top into the total shipping that a customer sees. Is there a module that does it in the total shipping rate?

In addition, I would like to choose from 4 Shipping methods, like USPS Priority, USPS Express, USPS First class, and others and have the rate on top added to it.

The same thing goes for UPS. Can I alter the amount by adding a fee extra that will be included in the total shipping displayed.

Please help me out with this issue, and where I can get this module?

Active Member

Posts

Joined
Wed Nov 17, 2010 4:28 am

Post by Johnathan » Mon Nov 22, 2010 9:48 pm

There's no module I know of that will do this, but you can pretty easily hardcode it by editing the /catalog/model/shipping/ files. In the usps.php file, for example, just change the two instances of:

Code: Select all

$cost = 
to:

Code: Select all

$cost = 2 +  
You'd have to look at the code for the others, but it should work similarly.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Qphoria » Mon Nov 22, 2010 10:02 pm

my usps module has this already, but like jonathan said, it is pretty much just like that

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cashman9 » Mon Nov 22, 2010 11:31 pm

Qphoria wrote:my usps module has this already, but like jonathan said, it is pretty much just like that
Exactly which modules have this options on your site? USPS and UPS?
Also, what is the difference between your module and the one that is original, with the exception mentioned above?
Can you please provide a link. Thanks

In addition, in the original USPS module, the shipping date (estimates) (1-2 days) is not shown for some reason.?
Also, First-Class mail is not shown.

Thanks for the help.

Active Member

Posts

Joined
Wed Nov 17, 2010 4:28 am

Post by Qphoria » Tue Nov 23, 2010 12:48 am

yea all my live rate shipping modules have an extra cost field
Differences
firstclass only shows if the package is 13oz or less

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cashman9 » Tue Nov 23, 2010 1:07 am

Qphoria wrote:yea all my live rate shipping modules have an extra cost field
Differences
firstclass only shows if the package is 13oz or less
Alright, great. How about showing of the date or expected time for delivery? It doesn't show it in the original USPS module?

Active Member

Posts

Joined
Wed Nov 17, 2010 4:28 am

Post by cashman9 » Tue Nov 23, 2010 3:23 am

Anyone knows why the date not shown in USPS?

Active Member

Posts

Joined
Wed Nov 17, 2010 4:28 am

Post by Qphoria » Tue Nov 23, 2010 3:28 am

Yes mine does show the transit times. It is a real pain to use them which is why the core one probably doesn't. It requires a separate api call so it is annoying.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Johnathan » Tue Nov 23, 2010 3:52 am

Yeah, it's too bad USPS makes it so difficult. I ended up just hard-coding the time estimates in there, which isn't ideal, but seemed easier than working out the other API. Gotta love the postal system...

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 3 guests