MightyThor Posted July 22, 2005 Share Posted July 22, 2005 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 More sharing options...
MightyThor Posted July 28, 2005 Author Share Posted July 28, 2005 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 More sharing options...
MightyThor Posted July 28, 2005 Author Share Posted July 28, 2005 I fixed the bug. The problem was that my shipping methods had a _ in their names and apparently this causes a severe problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.