Author |
Message |
Loudirian
Newbie
Joined: 14 Aug 2006
Posts: 4
|
 "Make Changes" button gives empty form
I wasn't sure where to place my question, sorry in advance if it should not be here, but here goes:
I have a problem with the "make changes" button when completing an order. The complete order form appears, you start filling it in, click on verify order. In this case, if you forgot one of the required fields or you want to make a change to the form data, you press the "make changes button".
You would expect Agora to come with the form page including the data you filled in so it can be altered. Instead I'm getting an empty form, which leaves you no other option than to fill in everything again from scratch. Very annoying...
I've searched like crazy, but cannot find a reason why this is happening. Can anyone give me some ideas??
Thanks in advance,
Art
|
Fri Oct 06, 06 3:59 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Art,
What is the URL to the store?
Which gateway are you using?
Some of the main reasons for this happening is not downloading or uploading the order form file in ASCII mode.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Fri Oct 06, 06 4:12 am |
 |
 |
Loudirian
Newbie
Joined: 14 Aug 2006
Posts: 4
|
Hi Bonnie,
Thanks for your quick response.
the URL for the store is: http://www.neutecgroup.com/agora/agora.cgi
I'm using the offline payment gateway.
With the order form file, are you referring to the html file? (in my case Offline-orderform.html..)
Regards,
Art
|
Fri Oct 06, 06 6:02 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Art,
Upon review of the site, you have some other issues going on, as well. You have stuff in your header file which MUST be removed and put in their proper places.
Namely:
Code:<html>
<head>
<link rel="shortcut icon" href="neutec.ico">
<title>Neu-Tec Group Inc. - Online Shopping Center</title>
<script src="/jsac/flashbar.js" type="text/javascript"></script>
<script src="/jsac/WizardFeature.js" type="text/javascript"></script>
<script type="text/javascript" src="/includes/browser.js">
</script>
<script type="text/javascript" src="/menu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
-->
</style>
</head>
<body link="#666666" vlink="#666666" alink="#666666" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" onLoad="init()">
For proper placement of this info, please refer to the following threads:
http://www.agoraguide.com/faq/viewtopic.php?t=1156
http://www.agoraguide.com/faq/viewtopic.php?t=358
But it still looks like the Offline-orderform.html file was not uploaded in ASCII mode.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Fri Oct 06, 06 6:17 am |
 |
 |
Loudirian
Newbie
Joined: 14 Aug 2006
Posts: 4
|
Hi Bonnie,
Uploading the file in ascii mode indeed did the trick.
Thanks for your help,
Art
|
Wed Oct 11, 06 8:07 am |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Hi Bonnie (I always want to refer to you as "scott"...):
I had the same problem and checked my upload method out. It was set to "auto" so i assumed no problem. But of course, there was a problem, so I adjusted it to "ascii" and uploaded again, and suddenly my "make changes" page came alive. all problems solved on that front.
Just wondering though, are there any other specific pages that also needed to be uploaded in ascii mode in order for the script to run properly?
Thanks,
Thomas
|
Tue Nov 07, 06 1:17 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Thomas,
Your ftp client should have a way in the preferences to set the extensions that are to be uploaded in ASCII mode.
THe following extenstions are to be uploaded in ASCII mode:
.html
.htm
.inc
.db
.cgi
.pl
.tpl
.txt
.log
.dat
.file
.pm
.htaccess
.php
.alt
.xml
.sql
.cfg
The basic rule is this, if you can open the file in a text editor, like notepad, and you can read the text and there are no "gobbly-gook" characters, then it should be uploaded in ASCII.
Graphics, compressed files (.zip, .tgz, etc...), .doc, and the like are uploaded in binary mode.
HTH!
Last edited by scottcrew on Tue Nov 07, 06 6:16 pm; edited 1 time in total
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Nov 07, 06 5:02 am |
 |
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Yeah, that's what I thought also, so I would have assumed that the "auto" mode on the program (FTP Commander) would have been uploading html files as ascii, but apparentely it was not. So much for relying on "auto"!
|
Tue Nov 07, 06 5:00 pm |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
One more quick question to confirm: What about pl files? ascii upload or not?
|
Tue Nov 07, 06 5:49 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
.pl files, ABSOLUTELY ASCII!!!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Nov 07, 06 6:14 pm |
 |
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Gee, I thought I was done with this topic/problem, but it seems to have come back to haunt me again. Here's the latest problem:
When I upload Offline-orderform.html in ascii form, it works as planned in terms of the remembering the user input data if you click make changes on the Step Two page. BUT, this ascii-uploaded Offline-orderform.html does not display my column widths properly...it squeezes the left size column too narrow.
If I upload Offline-orderform.html in non-ascii version, it handles the column display perfectly, but will not remember the user inputs if you click make changes on the Step Two page.
If I try to directly access the ascii-uploaded page at http://www.westec-beauty.com/web/html/forms/Offline-orderform.html, it displays without the cart of course, but the column widths on the order form are fine.
Another way to say it would be: If the ascii-uploaded orderform is accessed directly, it displays perfectly, but if it is accessed via agora.cgi, the column widths in the order form are wrong.
This is a total mystery to me. Any ideas???
|
Sat Nov 18, 06 11:16 pm |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Sorry for the false alarm...problem solved.
I tried upload using a different FTP software and everything worked perfectly. Must be something wrong with FTP Commander. I have now switched to SmartFTP.
|
Sat Nov 18, 06 11:44 pm |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Oops, delete that false alarm report. I am still having the same problem with different FTP software. I was too excited and looked at the wrong part of the page!
So, still hoping for some ideas on how to solve this.
|
Sat Nov 18, 06 11:51 pm |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Solved. It was some kind of bug with this section near the bottom:
Code:<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
When I deleted this section, everything worked perfect.
All the other special messages work fine and appear to be letter for letter identical with this one. So probably it is something that I corrupted in one of the other files.
|
Sun Nov 19, 06 1:35 am |
|
 |
Dan
Guest
|
the script...
<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
means that if there is a message then display the message and the table row and the table cell. if there is no message then do not display any of the script. whenever you have something like this you need to add the "hardcoded" html tags above and below the script just as if the message always displays. so for example you cannot have this...
<tr>
<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
</tr>
or this
<td>
<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
</td>
this will break the display if a message is returned. some possibilities would be...
<table>
<tr>
<td>some stuff here</td>
</tr>
<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
<tr>
</table>
or focusing on leading up to the script you can do this...
table, rows, cells and content...then
</td>
</tr>
<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
<tr>
<td> more content more rows and cells then </table>
so if you remove the agorascript then the table rows and cells will be balanced. likewise, if the agorascript is added then the hardcoded tr's and td's will be balanced whether or not the script displays anything.
make sense? hope so.
d
|
Sun Nov 19, 06 8:56 pm |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Makes total sense and that is what I have. The other two messages on the order form appear without a hitch, but for some reason, the third one always creates problems. So I finally gave up and hardcoded the message.
I think is probably is caused by my screwing up the third message variable somewhere in one of the other files by mistake. I had a mouse that always clicked twice when I wanted to click once and this led to me making some unknown mistakes in some of the scripts. Finally got a new mouse today.
Anyways, thanks for your feedback. Hopefully it will help others that might have a similar problem in the future.
Thomas
|
Sun Nov 19, 06 10:17 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Thomas,
I am seeing some funky stuff in the order form.
Namely:
Code:<TR>
<FONT SIZE="-1" COLOR="333333"></FONT></TD>
<TD COLSPAN="3"><CENTER><TEXTAREA NAME="Ecom_XCOMMENT_Special_Notes" COLS="60" ROWS="5"
WRAP="SOFT">$eform_Ecom_XCOMMENT_Special_Notes</TEXTAREA></CENTER><BR></TD>
</TR>
See that very 1st stuff there? I think that is what is causing the problem...
Try replacing that entire section with the following, which includes the agorascript stuff:
Code:<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~<TR>
<TD COLSPAN="3"><blockquote>$sc_offline_special_message</blockquote></TD>
</TR>~
;}
-->
<TR>
<TD COLSPAN="3"><CENTER><TEXTAREA NAME="Ecom_XCOMMENT_Special_Notes" COLS="60" ROWS="5"
WRAP="SOFT">$eform_Ecom_XCOMMENT_Special_Notes</TEXTAREA></CENTER><BR></TD>
</TR>
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Nov 20, 06 5:06 am |
 |
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Hi Bonnie:
Once I put the agroscript stuff back in to make the third message appear, the message appears no problem, but the columns get all messed up. That was why I decided to just hardcode the message since I searched for 3 hours and could not find out the source of the problem.
I tried it again by pasting in your suggested code, but same thing occurred. I will leave it there for a day so you can take a look if you are curious, but don't waste too much time on it. It is not such a big problem and hardcoding solves it easily.
But thanks for the suggestion. You were right about my sloppy html on the hardcode version. This whole line:
Code:<FONT SIZE="-1" COLOR="333333"></FONT></TD>
should have been deleted.
Thomas
|
Mon Nov 20, 06 10:28 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Thomas,
I am not seeing that the columns are messed up. Everything looks fine to me.
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Nov 21, 06 3:13 pm |
 |
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
I am not sure what you can see on your screen since the characters are all Chinese...let's try this:
In the first row that shows a red asterisk on the left, just to the immediate right of the asterisk is a line of Chinese characters followed by a colon and then a text input box. (This is where the user inputs their name. In Chinese, we always list the last then first name together on the same line, so I used the Ecom_BillTo_Postal_Name_First variable for the full Chinese name and the Ecom_BillTo_Postal_Name_Last variable for a "male/female" pull down menu in the second row).
Refering to the "first column" as the one with the red asterisk, the "second column" for this line of characters and a colon should be wide enough so that they are all in one single line and do not wrap down. Currently, after putting the third comment agorascript back in, this column is too narrow to hold these characters so they wrap down to fill three lines. You can see the colon is at the end of the third line.
If I take out the third comment agorascript, this column then goes back to the correct width of 126 which i specified in:
Code:<TR>
<TD WIDTH="8"><font color="RED">*</font></TD>
<TD WIDTH="[b]126[/b]">
<FONT SIZE="-1" COLOR="333333">订货人真实姓名:</FONT></TD>
<TD WIDTH="416">
When I put in the third comment agorascript at the bottom of the page, it somehow overrides this column width command and makes this column very narrow, thus leading to the three wrapped lines of text instead of one single line.
Is that what you see too?
It is really a mystery to me as I can not figure out how a "colspan=3" comment at the bottom of the page would influence the width of the columns. Also, even more strange, if I hardcode the third comment, using the exact same "colspan=3" html, it works no problem. So I guess it has to be something about how the cgi script is handling the third comment instructions when in script form.
Thomas
|
Tue Nov 21, 06 5:16 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Thomas,
I am not seeing a wrap of those columns. They are lining up on 1 line.
Still....
Try this:
Code:<!--agorascript-pre
if ("$sc_offline_special_message" ne "") { return
q~
<TR>
<TD COLSPAN="3">$sc_offline_special_message</TD>
</TR>
~
;}
-->
<TR>
<TD COLSPAN="3"><CENTER><TEXTAREA NAME="Ecom_XCOMMENT_Special_Notes" COLS="60" ROWS="5"
WRAP="SOFT">$eform_Ecom_XCOMMENT_Special_Notes</TEXTAREA></CENTER><BR></TD>
</TR>
I removed the <blockquote> tags, they might have been interfering.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Nov 22, 06 5:42 am |
 |
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
Nope, still doesn't work. Thanks for trying though. I will just live with the hardcode version.
Best Regards!
Thomas
|
Wed Nov 22, 06 5:22 pm |
|
 |
Dan
Guest
|
well, the only thing i noticed was...
</CENTER>
</FORM>
</HTML>
</td>
after the verify button. premature </html> tag. probably wont have any effect but it shouldn't be there either.
oh. i think i just found your problem. your agora order pl hack has some problems...
Code:<TABLE BORDER=0 CELLPADDING=4 CELLSPACING=0 BGCOLOR="#FFFFFF" width="550">
<TR>
<FONT FACE="Arial" SIZE=2 color="#666666">
<TH BGCOLOR="#FFFFFF"><FONT FACE="Arial" SIZE=2 color="#666666"> Qty </FONT></TH>
<TH BGCOLOR="#FFFFFF"><FONT FACE="Arial" SIZE=2 color="#666666"> Picture </FONT></TH>
<TH BGCOLOR="#FFFFFF"><FONT FACE="Arial" SIZE=2 color="#666666"> Product Description </FONT></TH>
<TH BGCOLOR="#FFFFFF"><FONT FACE="Arial" SIZE=2 color="#666666"> Total Cost </FONT></TH>
<TR><TD ALIGN="LEFT"><FONT FACE="Arial" SIZE=2 color="#666666">1</FONT></TD>
<TD ALIGN="LEFT"><FONT FACE="Arial" SIZE=2 color="#666666"><IMG SRC="picserve.cgi?picserve=/classichigher.jpg" BORDER=0></FONT></TD>
<TD ALIGN="LEFT"><FONT FACE="Arial" SIZE=2 color="#666666">Cat. No. F202A0173 110/220V <br> VORTEX “CLASSIC” is the ultimate expression of continuous product evolution. “CLASSIC” is a solution suited to the most diversified mixing needs. It is able to provide the highest performance ratings in terms of speed while at the same time ensuring reliability and safety.<br> It is equipped with two operation modes, with the possibility to change the vibration frequency: <li><a href="http://www.neutecgroup.com/classic.htm" target="_blank"> Learn More</a></li><br>Stock Status: Will ship in 1-2 days <br><b>WEB SPECIAL: FREE SHIPPING! <b> </FONT></TD>
<TD ALIGN="LEFT"><FONT FACE="Arial" SIZE=2 color="#666666">$ 344.00</FONT></TD>
</TABLE>
note that you have this...
<table>
<tr>
then a bunch of <th> tags followed by <tr><td> this is incorrect. further the table ends with...
<TD ALIGN="LEFT"><FONT FACE="Arial" SIZE=2 color="#666666">$ 344.00</FONT></TD>
</TABLE>
no </tr> as required. when adding more than one product type the problem repeates itself. this will absolutely mess up display and data transfer.
another thing is to add "nowrap" to the cost <td> in the agora order pl file. this will eliminate the money symbol stacking on top of the price.
d
|
Thu Nov 23, 06 1:09 am |
|
 |
thomasw98
User - One Blade
Joined: 20 Aug 2006
Posts: 39
|
uhhhh....I think you are looking at the wrong website. Mine is at www.westec-beauty dot com.
On the main page, click on the second from the left choice on the top menu then select the top product on the left side menu that appears. then select click the "put in your cart" button which is written in Chinese. You then should be able to see the order form.
|
Thu Nov 23, 06 1:43 am |
|
 |
Dan
Guest
|
well dangit!
thanks for the link. i'll take a look.
d
|
Thu Nov 23, 06 2:21 am |
|
 |
|