homepage Welcome to WebmasterWorld Guest from 54.166.148.189
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Ecommerce
Forum Library, Charter, Moderators: buckworks

Ecommerce Forum

    
How to create my own shopping cart
What's the best way to track visitors?
gsx




msg:645160
 9:21 pm on Aug 27, 2002 (gmt 0)

I am currently using a JavaScript shopping cart, using frames. The parent frame holds the basket variables.

I want rid of the JavaScript. I want rid of the frames.

What is the best way to track a visitor for a cart written in Perl? Is it cookies to store a basket number? Or is it better to store the basket details in a cookie?

 

Crazy_Fool




msg:645161
 12:58 am on Aug 28, 2002 (gmt 0)

>>I want rid of the JavaScript. I want rid of the frames.

good moves

>>What is the best way to track a visitor for a cart written in Perl?
>>Is it cookies to store a basket number? Or is it better to store
>>the basket details in a cookie?

so you wanna reinvent the wheel huh? and you wanna do it in perl??

whatever language you choose, use sessions (on the server) to store cart contents, and use one cookie to store the session (cart) ID in the browser. you may find it easier to build the cart in php or asp rather than perl as these provide much easier control of sessions (maintaining state). try downloading a few free carts to see how they do it.

if you need more information about maintaining state in perl, search for "maintining state perl" (the WDVL tutorial is quite good - follow it to the end to understand about maintaining state). for php or asp, search for "sessions php" or "sessions asp".

gsx




msg:645162
 9:23 am on Aug 28, 2002 (gmt 0)

Thanks, but I don't have access or any knowledge about php or asp.

Which I why I chose Perl, portable, easy and I can program complex programs in Perl easily. It's only for basket add and basket display, the rest is done via standard html, not very dynamic, I know, but which search engine cannot index html files?

I'll go for the cookie cart ID idea then...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Ecommerce
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved