Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old August 15th, 2000, 02:04 AM
Daari Daari is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 4 Daari User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can anyone out there get me started on a good layout scheme for a good shoppping cart? I have seen them from 100% JavaScript to 100% CGI. I have a couple features requested like persistant display of the shopping cart contents or a mouseover popup to display contents which leads me to think that the data should be maintained client side (?)

Should (or can) the chosen items be set in a cookie or maintained on the server side? Bear with me a little here I havent done much web programming URL.

Thanks!
Daari


Reply With Quote
  #2  
Old August 15th, 2000, 01:36 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
cookies can only hold so much data, if you have access to a DB of any description - use it!, you can display the contents of the cart by a query from the DB or by passing ifo from page to page in the query string or better still via hidden form fields. But the database certainly gives you more options.

But first things first, what languages do you have available? - I am assuming you have PERL, what about PHP (my vote) or ASP (even cold-fusion if you are desperate) & what DB do you have access to , you can even use text files to store cart info although this rules out javascript.

But anyway - IMHO serverside/CGI is a must.

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #3  
Old August 15th, 2000, 09:49 PM
Daari Daari is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 4 Daari User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am sure it will require both Javascript and CGI. What I am trying to avoid is reloading the page every time a user clicks add to cart as this particular website has lots and lots of small really cheap items and purchases usually have 10s of items in them. I am considering the followin scheme:

Server side flat file has "database" of product informatin (price descrip part_no thumbnail_filename fullsize_filename etc). Pages are generated via CGI with the items on it and the complete db is loaded into some Javascript array (size limits?). Cookies store only the part_no and quantity of that which has been placed in cart.

Mouseover functions can popup a window with the current cart contents and mouseoff destroys the popup.

I am considering Tripod as the web owner does not wish to spend any money on this venture (more fun than anything I think). Therefore I have no DB and only "Tripod" Perl for CGI. Also no sendmail but "Tripod" mail (easy to use but no canned cart script anywhere works with it).

Also, I am using this to learn the art URL. I have so far spent a week researching Javascript and have a bit of CGI exp. Does this scheme present any problems anyone can think of? The product database is relatively small (I think maybe 200-300 unique items).

Thanks for the help so far
Daari

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Building a shopping cart.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway