Author |
Message |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
 combo-orderform.html, for Offline and PayPal?
I'm trying to use multiple gateways, Offline and PayPal. Whichever is selected as the Primary Gateway is the one that is used for both Offline and PayPal.
Allow Multiple gateways is "yes"
Replace Order Form Tags is "no"
Either works correctly when not using multiple gateways. PayPal-order_lib.pl and Offline-order_lib.pl are in the store add_ons directory.
Perhaps my combo-orderform.html isn't coded correctly? I've tried it various ways, not sure what is used by agora.cgi to identify which gateway the user is selecting. Thank you! combo-orderform.html:
<HTML>
<HEAD>
<TITLE>Secure Order Form</TITLE>
</HEAD>
<BODY>
<FORM action="agora.cgi" method="POST">
<H2>CART CONTENTS HERE</H2>
</form>
<form method="post" action="agora.cgi">
<CENTER>
<TABLE WIDTH="550" BORDER="0" CELLPADDING="0">
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><FONT SIZE="-1"><hr></FONT></TD>
</TR>
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><FONT face=arial SIZE="2"><B>What method
would you like to use to pay for your order?</B></FONT></TD>
</TR>
<TR>
<TD width="50%" align="center">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "Offline">
<INPUT TYPE=HIDDEN NAME = "submit" VALUE = "Next">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="image" NAME="Offline" VALUE="1"
SRC="agora.cgi?secpicserve=by_check.gif" border=0>
</TD>
<TD width="50%" align="center">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "PayPal">
<INPUT TYPE=HIDDEN NAME = "submit" VALUE = "Next">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="image" NAME="PayPal" VALUE="1"
SRC="agora.cgi?secpicserve=logo-xclick.gif" border=0><p><BR><BR>
<font face=arial size=2>Use the secure PayPal system for Visa, MasterCard, American Express, Discover and Check Payments</font></TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
|
Tue Oct 28, 08 5:41 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Make sure that the *-order_lib.pl files for each gateway are, also, copied to the 'add-ons' directory.
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Oct 29, 08 3:40 am |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
Yes, PayPal-order_lib.pl and Offline-order_lib.pl have been in the store add_ons directory.
The link is:
http://www.swst.org/cgi-bin/merchandise/agora.cgi?product=clothing&xm=on
Currently, both options go to the PayPal order form. If I make Offline the primary gateway, both options go to the offline form. Any other suggestions for something I can check?
|
Wed Oct 29, 08 11:56 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
In the Primary/Core Settings, set the "Replace Order Form Tags?" to "NO"
Also, please post the entire contents of your combo-orderform.html file.
I have a sneaking suspicion that there may be a problem with the form tags...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Oct 29, 08 3:25 pm |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
The "Replace Order Forms" tag was already set to "no".
I suspect the combo-orderform.html as well. I've changed it numerous times, even tried using the combo-sampleorderform.html but couldn't get that to work either.
Here's the current combo-orderform.html:
Code:
<HTML>
<HEAD>
<TITLE>Secure Order Form</TITLE>
</HEAD>
<BODY>
<FORM action="agora.cgi" method="POST">
<H2>CART CONTENTS HERE</H2>
</form>
<form method="post" action="agora.cgi">
<CENTER>
<TABLE WIDTH="550" BORDER="0" CELLPADDING="0">
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><FONT SIZE="-1"><hr></FONT></TD>
</TR>
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><FONT face=arial SIZE="2"><B>What method
would you like to use to pay for your order?</B></FONT></TD>
</TR>
<TR>
<TD width="50%" align="center">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "Offline">
<INPUT TYPE=HIDDEN NAME = "submit" VALUE = "Next">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="image" NAME="Offline" VALUE="1"
SRC="agora.cgi?secpicserve=by_check.gif" border=0>
</TD>
<TD width="50%" align="center">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "PayPal">
<INPUT TYPE=HIDDEN NAME = "submit" VALUE = "Next">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="image" NAME="PayPal" VALUE="1"
SRC="agora.cgi?secpicserve=logo-xclick.gif" border=0><p><BR><BR>
<font face=arial size=2>Use the secure PayPal system for Visa, MasterCard, American Express, Discover and Check Payments</font></TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
|
Thu Oct 30, 08 8:17 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Try this:
Make sure you only edit in a plain html editor or something like EditPad Lite
and be sure to upload/download the files in ASCII mode.
Code:
<HTML>
<HEAD>
<TITLE>Secure Order Form</TITLE>
</HEAD>
<BODY>
<form action="agora.cgi" method="POST">
<H2>CART CONTENTS HERE</H2>
</form>
<CENTER>
<TABLE WIDTH="550" BORDER="0" CELLPADDING="0">
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><FONT SIZE="-1"><hr></FONT></TD>
</TR>
<TR>
<TD COLSPAN="2" ALIGN="CENTER"><FONT face=arial SIZE="2"><B>What method
would you like to use to pay for your order?</B></FONT></TD>
</TR>
<TR>
<TD width="50%" align="center">
<FORM action="agora.cgi" method="POST">
<INPUT TYPE=HIDDEN NAME="ofn" VALUE="Offline">
<INPUT TYPE=HIDDEN NAME="submit" VALUE="Next">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="image" NAME="Offline" VALUE="1"
SRC="agora.cgi?secpicserve=by_check.gif" border=0>
</FORM>
</TD>
<TD width="50%" align="center">
<FORM action="agora.cgi" method="POST">
<INPUT TYPE=HIDDEN NAME="ofn" VALUE="PayPal">
<INPUT TYPE=HIDDEN NAME="submit" VALUE="Next">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="image" NAME="PayPal" VALUE="1"
SRC="agora.cgi?secpicserve=logo-xclick.gif" border=0><p><BR><BR>
<font face=arial size=2>Use the secure PayPal system for Visa, MasterCard, American Express, Discover and Check Payments</font>
</FORM>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
Let me know how it goes...
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu Oct 30, 08 8:48 am |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
It worked like a charm! Thanks so much for your help!!
|
Thu Oct 30, 08 4:04 pm |
|
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
Ooops, one more glitch...
I want to shift the text on the final Order Confirmation page to the right. All of the checkout pages look fine until I get to the very last "Order Confirmation" page (using Offline-orderform.html). I've tried modifying the agorastyles.css to shift the checkout pages. I also looked at the secure_store_footer.html but my footer actually is a much smaller width on this final Order Confirmation page as well. What am I missing?
|
Thu Oct 30, 08 5:49 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Your secure_store_header.html file has an error with the agorascript stuff with your shopping categories display...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu Oct 30, 08 6:12 pm |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
I cleared my error.log and processed an Offline order and no errors were recorded. The order seems to process correctly, I just need to shift the Order Confirmation text. It looks like the css width of the body/footer is different than for the rest of the checkout process but I can't figure out where to change it.
Many thanks for your speedy responses!
|
Fri Oct 31, 08 3:29 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You MUST correct your coding errors in your template files before you can move on...
HTML coding error can cause a myriad of display issues...
I am seeing some wierdness happening in the secure_store_header.html file and in your order form file....
You MUST fix your HTML coding errors before you can really try to change other display issues as they may be related...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Fri Oct 31, 08 4:22 am |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
My apologies, I think at the point you looked at this I had been trying to modify agoratemplates.css and agorastyles.css to shift the "Order Confirmation" checkout text.
For now, I've set the secure_store_header.html and secure_store_footer.html back to your original agora versions. I haven't made any changes to the offline-orderform.html. At this point there shouldn't be any html coding errors since the html is your original... but I still want to know how to shift the final checkout Order Confirmation text so that it's not hidden behind my left navigation menu. I was able to modify everything else with my version of the secure_store_header.html (although for now what you'll see is the original agora version). The only question I still would like to have answered is how to shift the final Order Confirmation text.
Again, many thanks.
|
Mon Nov 03, 08 5:31 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
I am STILL seeing the coding errors...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Nov 03, 08 5:54 am |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
I guess I don't understand where to look for the coding errors since I set the secure_store_header, secure_store_footer and orderform html files back to the original agora files. Is there a log somewhere or something I can look at to see the coding errors to which you're referring?
|
Mon Nov 03, 08 6:01 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
No, it is in the secure_store_header.html file.
Whatever html editor you are using is corrupting the code, even if you never changed anything and only opened the file in your editor...
And... since you are running the store in the cgi-bin, I can give any specifics because I can't see the raw code, but I can see the results of the code and that some of the agorascript is mangled...
You may need to go to the "Downloads" link above and get the "AgoraCart Shopping Cart - AgoraCart5_2_005.tgz" file. This file,once unzipped, will provide you with the original files installed with AgoraCart that can be used as reference.
Only use a plain HTML editor, like EditPad Lite to edit your files... Other editors like FrontPage and others with mangle the code. Also, never directly edit files on the server, the tools in your cpanel/vdeck/etc... may corrupt the files...
One other thing I see is that you are trying to pull your css from inside the cgi-bin and it will not parse that way. You need to move the agoratemplate.css & agorastyles.css files outside of the cgi-bin and set the levels up in the Primary/Core Settings manager.
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Nov 03, 08 6:10 am |
 |
 |
bethsmith24
Newbie - One Blade
Joined: 07 Sep 2008
Posts: 12
|
Okay, I'll download the original files and start from there. I did use my host's cpanel editor at one point so maybe that's how the files got corrupted.
|
Mon Nov 03, 08 6:15 am |
|
 |
|