Hi,
Someone awhile back asked about pure perl shopping
carts. I mentioned Perlshop because the code was
simple and it was fast.
To "cut to the chase" go to
http://zentara.net/store
and test the sample store and administrator. Details below. You can download it if you want.
Use it if you want, improve on it,
email me questions if you need help setting it up.
My sample store dosn't have a secure server available,
but the code works with a Secure Server if available.
My goal is to make a general purpose small scale
store for farms or small home businesses.
This is not an "Enterprise Level" ecommerce solution,
but more of a "mom and pop online store". But it would
suit the needs of a small operation.
Before I even knew the difference between $ and @,
I setup my first store with Perlshop. It is an older
store, that used ReadParse, but otherwise worked nice.
All these new stores coming along are so complex, that
I always liked Perlshop better, because I could understand
the code and modify it to my liking. Also, it had a very
nice method of generating a SHA1 page key.
As my "pet project" to teach myself some Perl, I have improved
the old Perlshop(which is GPL'd), and added an administrator.
My improvements:
- switch to use CGI.pm (for params only)
- added credit card encryption
- switch to using Taint mode.( Surprisingly, Perlshop was Taint checking all variables except 1, which I fixed.)
- I stripped out all Perlshop code regarding cc verification,and put in a custom routine which works with Bank of America. This was done to reduce the code complexity. The original script tried to be easy to setup for anyone, my approach is to customize and strip code out.
- In order to make it easy to test offline, and/or do online testing without bothering BOA's test server, I have a fake response generator, (respgen.pl) which simulates true and false responses from BOA.
- I added a csv database method of generating the catalog pages,thumbnails,
and individual item pages with full photos and description. It is called csv2catalog and is in the cgi-bin/store/csv directory.
Eventually I will have a system where you just put photos and descriptions in a directory, and a script will generate everything automatically.
- The admin cgi is all mine, and I'm still working on it.
- The verifier script boacc.pl, works, but needs security improved. But it's adequate for a test store.
Have fun,
zentara
Edited ~Mon Apr 15 04:31:06 2002, by footpad: Fixed HREF and revised formatting.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.