Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to copy a shipping module?


Bobbot20

Recommended Posts

take for instance ups.php in modules folder. change the name to FILENAMEYOUWANT.php. find the reciprocal file in the language directory, copy and change its name. begin editing both, and youre on your way.

 

(sorry for bad punctuation, spelling, etc, Im in a hurry)

Link to comment
Share on other sites

Wow thanks, that helped!

 

One more problem, is now when they reach over $25, they get free Media Rate shipping (that's good), but that copies over everything else.

 

Is there a way to make Free Shipping, in addition with everything else, only when they are over $25?

Link to comment
Share on other sites

  • 3 weeks later...

OK, this one is killing my brain....

 

Version: MS 2.2

 

I have flat rate shipping on, and set it to $0. I also have a copy of the flat rate module, and renamed it to flat_ups (did this to replace UPS). I set this new module to $9.

 

Here is the problem:

 

If the original flat rate ($0 one) is not active, then the new one ($9 one) doesn't show up! If Both are active, then the $0 flat rate always shows up on the confirmation page (even though I select the $9 one)!

 

I think this is the problem Bobbot20 is having also.

 

Please help. Thanks.

Link to comment
Share on other sites

  • 7 years later...

I realise this is an oooold post, but this is exactly the problem I'm having. I've spent half the afternoon on this, originally copied flat.php and changed all variable names and hit this problem, then downloaded http://www.oscommerce.com/community/contributions,1470/ and have hit exactly the same thing with this.

 

If flat.php is installed (regardless of whether it's enabled), any modules which were copied from flat.php will NOT be displayed in checkout (unless their filename appears before flat.php in which case flat.php won't show up). Why is this so and how do I get around it?

 

Please help!!

Link to comment
Share on other sites

I can't believe it was that simple... this happens if you have two shipping modules installed which have the same sort order! Unlike payment methods, it seems OSC is pretty fussy about this. Because default sort order is 0 all modules started off with 0 so you end up with duplicates.

 

It may not fix every single instance of this but I'm reliably getting it to repeat on my installation.

 

Hope this saves some aspirin on someone else's part.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...