Brian,
What version of the cart do you have?
If it is 4.0K-4b then zOffline is obsolete and you need to use combo-orderform.html.
Set up is as follows:
1. Look in the html/forms directory for the choose-orderform.html file. This is the file that you will use to create an extra screen in the checkout process for the customer to choose which gateway they are going to be using.
2. Edit the choose-orderform.html file to reflect the gateways used.
IE: you want to use Linkpoint and Offline
The code for each gateway selction will be as follows:
Linkpoint
Code:
<FORM action="agora.cgi" method="POST">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "LinkpointHTML">
<INPUT TYPE=HIDDEN NAME = "submit" VALUE = "1">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="IMAGE" NAME="Pay By Credit Card" VALUE="1"
ALT="Bubba"
SRC="agora.cgi?secpicserve=linkpoint.gif" border=0></FORM>
Offline
Code:
<FORM action="agora.cgi" method="POST">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "Offline">
<INPUT TYPE=HIDDEN NAME = "submit" VALUE = "1">
<INPUT TYPE=HIDDEN NAME="order_form_button" VALUE="1">
<INPUT TYPE="IMAGE" NAME="Other Payments" VALUE="1"
ALT="Bubba"
SRC="agora.cgi?secpicserve=by_ccard.gif" border=0></FORM>
If you want standard submit buttons you can set it up based on this format:
Code:
<FORM action="agora.cgi" method="POST">
<INPUT TYPE=HIDDEN NAME = "ofn" VALUE = "Offline">
<INPUT TYPE="SUBMIT" NAME="order_form_button" VALUE=" Pay By Credit Card ">
</FORM>
3. After you are done with setting up the gateway selection buttons, SAVE the file as
combo-orderform.html
4. Upload the combo-orderform.html file, in ASCII, to the html/forms directory.
5. In the manager -> Main AgoraCart Store Settings:
Set one of the gateways as Primary and hit submit.
Then, go to the Payment Gateway area of the manager and set up the gateway.
Complete this procedure with each of the gateways you are using.
6. Go back to the manager -> Main AgoraCart Store Settings and set Offline as primary and begin testing the cart using each gateway. If you do not get an order written to the order log from a particular gateway, you may need to play with which gateway needs to be primary.
BTW, just the <gateway>-order_lib.pl files need to be in the custom directory.
The <gateway>-user_lib.pl files need to be in the 'admin_files' directory.
The <gateway>-mgr_lib.pl & a copy of the <gateway>-order_lib.pl are put into the 'library' directory.
HTH!
_________________
God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership