Mandatory Fields, Admin Products not showing, Unexplainable $ appearing
Whale
2009-07-27 08:25
Hi Guys. This cart is fantastic but have had some problems tweaking it that I hope you can explain.
1) I seem to be having a problem with the mandatory fields. I have adjusted all the >2's in the orders php file to >1. Is that the right thing to do to change the manadatory setting from mandatory 2 characters to mandatory 1 character? I seem to get the mandatory fields page occurring too regularly even when I fill it out correctly but sometimes it submits the order?
2) Could someone tell me where the code is that inputs the data from the client into the admin section? My admin section shows my clients but not products or quantity. I have commented out a lot of the pricing and shipping that wasn't required and the email order is working just how I want it but no products appear in admin. I know I've commented out some code that is required for this but can't find it?
3) In my comments text field I get a "$" sign after any text that was inputted in my email. Where would that come from? I have been through the code and can't see where this is happening.
I know a lot to ask but so close to finishing the job and would love to sort these minor problems I'm having. Any help much appreciated.
1. yes. But don't be mistaken, we're talking about checking throwStrLen() outputs here, nothing else.
2. I don't get you. What do you want? Why?
3. In your comments text field you get a "$" sign after any text that was inputted in YOUR EMAIL? WTF? please explain.
Please be more descriptive about your changes too. I am no oracle and cannot see what is happening without your describing where you changed stuff and what do you want to accomplish.
Whale
2009-07-27 17:18
Sorry Beholder. Seemed clear at the time but I can see your frustration with my lack of description.
1) I have no idea what a throwStrLen() output is. Just not sure why the mandatory field error happens particularly when using auto fill from the browser.
2) My admin section shows my clients but shows no itemisation of any products ordered in the right hand box. I was just wondering which file controls what gets sent to this area. I suspect it's the orders_form.tpl. I have commented out some script that was superfluous to me but have obviously commented out the script that sends data to this area.
3) I can type a comment in the comment field but when I receive the order in my email it always ends with a "$" sign? e.g I type "Send order ASAP" into the online form and when I get the email it reads "Send order ASAP$"
This is the area where I have commented out some script with <!--LM in the orders_form.tpl. I hope this is more explanatory and thanks for your assistance:
1. hmm.. autofill must be a feature of Firefox or Opera. These browsers can use cache, therefore you may get a wrong page when submitting the same form. But tell you what.. disable all your changes in this thing and try again. If it works, it really doesn't work with your changes. Then try to pinpoint what exactly it is that doesn't work.
2. OMG you should not comment out like that. That is a way to introduce chaos and trouble into the template. Better make a copy of the file and then delete what you want in the original file.
3. No idea. This all (1+2+3) boils down to your careless editing of the files: if you know how to edit the file, you must also know how to debug and retrace your steps. Otherwise it's just shooting an arrow into a clear sky hoping a pidgeon will fly around that will get hit by the arrow. When you edit, you must be able to retrace and debug.