Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom Shipping method based on UPS


cabrubak

Recommended Posts

Posted

I'm working on custom shipping method that set ground shipping to 0, when the order is above a certain amount.

 

I based this on the ups module.

 

It displays the correct amount on the delivery page, but it doesn't always let me leave, I'll pick a method hit continue, and I get back to the same screen. No errors or messages.

 

When I am able to get past that, on the order summary page it charges ground shipping, when it was 0 on the delivery page.

 

To questions then.

1. What would stop it from continuing past the delivery page?

2. How is shipoing determined, does it store the array returned by quote in the session (in which my code should have worked), or does it call some method in the module, with the shipping method selected.

 

Thanks,

Clint Brubakken

Posted

To see whats causing the problem, I copied my version over the ups.php, and searched and replaced the 'ups_free' text back to 'ups', and it works.

 

So there is nothing wrong with my changes, but something wrong with how I created a new version. Something I didn't change from the ups.php, that interferes with my ups_free.php module.

 

I'd appreciate any ideas and suggestion on those who know anything about shipping modules or the ups one in particular

Posted

I?ve had a similar problem trying to copy the table rate module (table.php) whilst a I haven?t checked it as thoroughly as you I was very careful. Another user got the same error messages ....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...