icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » A little help...

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 29th, 2004, 6:11 PM   #1 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
A little help...

Some of you may have already seen this site:
http://mcdonoughfineart.com

Right now, each time a person selects BUY it just generates a form, and that form is emailed.

I want to figure out how to let a person add multiple items to a cart, then do the form, and then email it.

so I want to build a basic cart. Nothing too complicated because orders are all hand processed - we just want the customer to be able to add 10 prints or something if he so desires.

So, I need session cookies, I guess... and whatelse??

John
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 11:33 AM   #2 (permalink)
Surpass Fan
Super #1
 
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
if you feel like 'cheating' you could use AgoraCart (in cPanel). Not using session cookies, you could simply create a text file with the filename of, say, their IP and the microtime() timestamp, that logs to it everytime they add something to their cart. Then when they reach to final checkout, they see a list of everything they've added...
__________________
- Evan Charlton | [site] | Server - SH58
Kickersny.com is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 11:44 AM   #3 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
to use agora cart would involve a complete redesign of the site... not up for that, and he can't afford to pay me to do it anyway.

I'm figureing that I just need to add cookies and figure out how to store 'cart' information.
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 12:13 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2004
5 posts
Gave thanks: 0
Thanked 0 times
Have you considered PayPal? they accept all types of payments and have a simple shoping cart and generates the html to insert on the web page.
just a thought
graphicart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 12:40 PM   #5 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
Quote:
Originally Posted by graphicart
Have you considered PayPal? they accept all types of payments and have a simple shoping cart and generates the html to insert on the web page.
just a thought
Yeah - don't need the payment processing, or the extra fees.
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 2:27 PM   #6 (permalink)
Registered User
Seasoned Poster
 
NirTivAal's Avatar
 
Joined in Nov 2003
80 posts
Gave thanks: 0
Thanked 0 times
If you only want to have 10 items max you could make a different cookie for each item, or have one cookie store each item and separate them with commas or something. You can make the code process the extra imformation with (probably) minimal effort.

Just make sure that the user verifies their cart before ordering, since there may be users that have altered the way session cookies are stored (ie: they may not be deleted). You could also add a link that wipes the information from that cookie.
NirTivAal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 3:17 PM   #7 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
Quote:
Originally Posted by NirTivAal
If you only want to have 10 items max you could make a different cookie for each item, or have one cookie store each item and separate them with commas or something. You can make the code process the extra imformation with (probably) minimal effort.

Just make sure that the user verifies their cart before ordering, since there may be users that have altered the way session cookies are stored (ie: they may not be deleted). You could also add a link that wipes the information from that cookie.
so what you're saying is that I create a cookie with item info everytime a guy adds an item to the cart. Then when he wants to process the order, I grab those cookies?
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 4:55 PM   #8 (permalink)
Registered User
Seasoned Poster
 
NirTivAal's Avatar
 
Joined in Nov 2003
80 posts
Gave thanks: 0
Thanked 0 times
Yep. Though depending on how much information you store you may be able to get away with one cookie, by separating info with a character then explode()ing it once you're viewing the cart or processing the form.

They're not really secure, but since you're not tracking Credit Card number or anything I'd say it's OK.
NirTivAal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 5:18 PM   #9 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
any chance you'd post an example?
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On