Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

commerce.cgi

Status
Not open for further replies.

perlcoder

Programmer
Jul 1, 2001
16
0
0
US
I installed a commerce.cgi which is shop cart program. Searched a possible modification to extend fucntions.
if you see this page there is a modification which enables to pay online and offline.
I could follow and change with what they wrote.
but own script canoot expect from me.
I can only change with a manual.
It makes a lot of fun because it works often.

The problem is i cannot modify a loop function because Author wrote only the Loop fucntion not with entire details which i can not create own and understand.

the copy of that is;
The most complex part of this modification is to the file:
\library\AuthorizeNet-order_lib.pl
In this file we will basically stuff in the logic
from '\library\Offline-order_lib.pl' and create if-else loops for
Order Form Definition Variables, sub PrintSubmitPage, sub
ProcessOrder and sub display_calculations. This is done with the
logic of
if ($form_data{'sc_gateway_name'} eq "Offline")
{
... # logic for if gateway name is 'Offline'
} # end of if loop for Offline
else
{
... # logic for if gateway name is unchanged at 'AuthorizeNet'
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top