christianb2 Posted February 16, 2003 Share Posted February 16, 2003 I created a customized shipping module that was working fine and now for some reason it doesn't allow me to get through the checkout process. It displays the first page, the Delivery Information page, with no problems but when I click on the Continue button, the screen is just refreshed and I'm back at the same page. It doesn't progress to the Delivery Information page. I know the shipping module is the culprit because if I disable it and enable another module, checkout works fine. I know this is a hard one to diagnose without seeing my customized code, but can anybody out there point me in a few directions? I have looked at the database for corruption or artifact records left over from my customization work, but everything looks clean. Any thoughts? Link to comment Share on other sites More sharing options...
Guest Posted February 16, 2003 Share Posted February 16, 2003 My thought is...Good Luckgetting any help on this. I have psoted this same queston3 times with no resolution. If you should happen to be having a lucky day and you obtain a solution...I'd be interested in hearing it. :? Link to comment Share on other sites More sharing options...
Ajeh Posted February 16, 2003 Share Posted February 16, 2003 What shipping module did you base it on? What did you call the new one? Did you replace the code with case sensative replacements? ie. If you based it on flat.php did you replace FLAT with FRED and flat with fred? Link to comment Share on other sites More sharing options...
christianb2 Posted February 16, 2003 Author Share Posted February 16, 2003 My new shipping module is based on table.php and when I first created it I named it table_perc.php and did indeed change all text based on case. I was able to enable the module and it worked as expected. Then one day...no can do! I just now disabled the "bad" module and completely deleted it from the system. I then started from scratch and took the table.php file and created a brand new module. This time I changed everything from table to table_percent. Made the same coding changes as before and reinstalled. Went into admin, enabled the module, but I still get the exact same thing. Can't figure it out. The Delivery Information page displays with the correct shipping amount, so I know that at least quote() is working correctly (and the other functions "must" be as well, or it wouldn't be enabled...right?). Could it be a permissions thing...? Link to comment Share on other sites More sharing options...
Ajeh Posted February 16, 2003 Share Posted February 16, 2003 Make sure ... You do not have any "extra" files sitting in /includes/modules/shipping that do not have a matching /includes/languages/english/modules/shipping You do not have and files sitting in /includes/modules/shipping that have a number in the name You see that the configuration table is updated when you enable the new module with all the new settings You remembered to edit the //includes/languages/english/modules/shipping file to match the new names in your new file You uploaded the language file to the language directory ... sounds dumb, but easy to mixup You uploaded the code file to the modules directory ... sounds dumb, but easy to mixup You did not leave on the server in the /includes/modules/shipping any peices and parts of dead files Link to comment Share on other sites More sharing options...
christianb2 Posted February 16, 2003 Author Share Posted February 16, 2003 Thanks for the response Linda. I have taken care of everything you suspect. No extra pieces in any of the folders, MySQL database table shows the "keys" are installed correctly, correct files are in the right folders, no number in the name, etc. Everything is as it should be (famous last words...!). Still perplexed...!? Link to comment Share on other sites More sharing options...
Ajeh Posted February 16, 2003 Share Posted February 16, 2003 What snapshot are you working from and do all the shipping modules match that snapshot and does the shipping class match that snapshot and do the checkout files all match that snapshot? Link to comment Share on other sites More sharing options...
christianb2 Posted February 16, 2003 Author Share Posted February 16, 2003 I'm working from the 02/04/2003 snapshot and the answer is yes to all your questions. All shipping modules that I have used come from this snapshot. In fact, when I started to have some of these problems, I actually replaced some of the files (not the configure.php files) with the snapshot originals. I think what I'll try to do is take the percentage customized module (the one that comes with the shipping modules documentation - did you write that?) and just try installing that as is and see if I get the same problem. If not, maybe my problem is with the customization of the code, although I don't know why that should be an issue since, as I said earlier, there are no error messages returned when I enable/disable and the quote() calculations work as expected. I'm sure it's something I've done, but what? Do you believe in code poltergeists...? Link to comment Share on other sites More sharing options...
Ajeh Posted February 17, 2003 Share Posted February 17, 2003 I have written a percentage based shipping module. Depending on the code, it may not be current with the new shipping methods if it was not updated from the originals. If you based your code from that, and it is not updated, that could be part of the problem. The one I wrote is a couple months old. Link to comment Share on other sites More sharing options...
toolcrazy Posted February 17, 2003 Share Posted February 17, 2003 What about your providers upgrading from PHP 4.1.x to PHP 4.3.x could that have done what you?re talking about? It doesn't make any sense that it would work one day and not the next. Steve ------------------------- Link to comment Share on other sites More sharing options...
christianb2 Posted February 17, 2003 Author Share Posted February 17, 2003 Ajeh - Thanks for the heads up. No I didn't base my module on the percentage module, but I understand the issue with old code vs. the new. (By the way, if you were the one who wrote the documentation on the shipping modules, my hats off to you for a job well done!) toolcrazy - Your point is a good one, but no my provider has been at 4.3 for a while now and hasn't changed within the last couple of weeks. I appreciate all the feedback but the problem is still outstanding. I'm wondering if it would behoove me just to upgrade to the lastest release. Comments, opinions, please. Link to comment Share on other sites More sharing options...
christianb2 Posted February 17, 2003 Author Share Posted February 17, 2003 :lol: I think I have finally solved the problem!!!! My customized shipping module now works (keep your fingers crossed!) Here is what I did to make it work: [*] I edited the php files in a PHP text editor that allowed me to save the files in Unix format. (I had been doing my editing on my Windows XP machine using Notepad.) [*] After I FTPed the files (as ASCII) I opened them on the server side for editing and removed any spaces at the end of the last PHP tag. Both of these or one of these seemed to do the trick. Don't ask me why any of this made a difference because, as I mentioned in my original post, the customized module was working last week using my "old" way of doing things. Go figure!!!! Thanks for all the help! Regards, Dave Link to comment Share on other sites More sharing options...
christianb2 Posted February 17, 2003 Author Share Posted February 17, 2003 Oh, one last thing I forgot in my previous post. I also changed any variables/functions/constants and file names from "table_percent" to "tableper". Again, I don't know if that helped! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.