Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Bug - Page Just Reloads


MightyThor

Recommended Posts

Hi guys,

 

I wanted to add some more flat rate shipping options to my site. They would basically do exactly what the existing flat rate module does but I'd have five of them all set at different prices.

 

I.e.

Before noon - $5

Before 9:30am - $10

etc

 

And the user just selects what they want and everything's dandy.

 

So I copied and duplicated the existing flat.php four more times from the include/modules/shipping dir and the includes/language/modules/shipping dir and edited the contents.

 

I changed the name of the class and the constructor to be unique for each shipping method plus I also changed every global variable name to be unqiue. I then changed the corresponding code in the appropriate language files, renamed the variables, and gave them new text.

 

I uploaded the files and installed them through the admin system and everything seemed to be going fine and the modules appeared on the checkout shipping page.

 

BUT... if you choose one of the new shipping methods and click 'Continue', the checkout_shipping.php page just reloads and you don't progress through the checkout. The existing shipping methods I had up (item and original flat rate) still work fine.

 

I'm assuming I've missed something in my conversion but I can't figure out what.

 

Any ideas?!

 

Thanks!!!

Link to comment
Share on other sites

I'm still having this weird problem. All my other shipping methods work fine but, even if I completely change everything to do with flat.php, the modified modules just don't seem to work and I keep getting returned to the shipping selection page.

 

Anyone know what causes this bug?

 

Is anyone able to tell me what the requirements for making a brand new shipping module are? Obviously I'm missing something and I'd love to track it down.

 

Cheers!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...