How do I install this script for my Web?
You will need to go to your console and select Install Prewritten Scripts. Check the Perlshop box, and click install.
**NOTE** If a previous install has been misconfigured, check overwrite and install then click the install button.
This will create all of the necessary directories with the correct permissions and install the necesassry files.
Why do I get an Invalid Transmission Error #3 when I try to enter the store?
The reason you are receiving this is most likely because you do not have ENTER SHOP as the value on your button. We have noticed that unless ENTER SHOP is the value on the button you won't ever be able to enter the shop. However if you have made this change then you may want to change the following in the script:
*DO NOT ATTEMPT THIS IF YOU ARE NOT FAMILAR WITH PERL! Let us know and we can make the change for you.Change this:
&ReadParse(*input);
### Subroutine ReadParse is part of cgi-lib.pl library, Copyright 1993 Steven E. Brenner (see full text below)
to these:
#&ReadParse(*input);
### Subroutine ReadParse is part of cgi-lib.pl library, Copyright 1993 Steven E. Brenner (see full text below)
%input=&ReadParse;
and change this:
{&error_trap("SHA function is not working!
");}
to this: {&error_trap("SHr function is not working!
");}
and change this:
return 1; # just for fun
to these:
#return 1; # just for fun
return %in;
Is there anything I'll need to make changes to?
Yes, here are the changes which you will need to make in the perlshop.cgi document, located in your cgi-bin/Mystore directory:
$company_name = 'www.yourdomain.com';
$company_address = 'Company Address';
$company_email = 'webmaster@yourdomain.com';
$mail_order_to = 'webmaster@yourdomain.com';For an explanation of these variables, click here.
You should now have a working Shopping cart, ready for you to customize. You will find Company customization options ready to be configured for your needs, located further down in the perlshop.cgi script. To call your script in an HTML document, include something similar to the following form:
<FORM METHOD=POST ACTION="http://YOURDOMAIN.com/cgi-bin/MyStore/perlshop.cgi">
<input type=SUBMIT NAME=ACTION value="ENTER SHOP">
<input TYPE=HIDDEN NAME=thispage VALUE="page1.html">
<input TYPE=HIDDEN NAME=ORDER_ID VALUE="!ORDERID!">
</FORM>
You should be able to get to enter the Store afterwards.
How Do I get the order information placed by my customers?
In order to get the orders placed by your customers you will need to install a seperate script. The following link will send you to a page called printorders.txt, you will need to save it as printorders.cgi or printorders.pl(it's up to you, both will work!!) There are instructions within the script on how to set it up. If you still can not get it working correctly please contact help@webstorage.com. You will need to supply the domain name your are using these scripts on and the error you are getting.
Where do the files get installed to?
The files and locations are as follows:
/htdocs/perlshop
index.html - basic entrance page
perllogo.jpg - perlshop logo
perllogo.gif - required by license agreement for use of perlshop
The script itself and directorys required for operation, as well as permssions for directories
/htdocs/cgi-bin/Mystore 755
/htdocs/cgi-bin/Mystore/perlshop.cgi 755
/htdocs/cgi-bin/Mystore/catalog 755
/htdocs/cgi-bin/Mystore/catalog/page1.html 644
/htdocs/cgi-bin/Mystore/catalog/page2.html 644
/htdocs/cgi-bin/Mystore/catalog/page3.html 644
/htdocs/cgi-bin/Mystore/catalog/page4.html 644
/htdocs/cgi-bin/Mystore/customers 755
/htdocs/cgi-bin/Mystore/log 755
/htdocs/cgi-bin/Mystore/orders 755
/htdocs/cgi-bin/Mystore/temp_customers 755
/htdocs/cgi-bin/Mystore/temp_orders 755
/htdocs/cgi-bin/Mystore/tokens 755
&co py; 1997-1999 Internet Quality Services Corporation. All rights reserved.