General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 24th, 2002, 05:19 AM
Frank Frank is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 8 Frank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post Shopping cart - tutrials

Hello!

I've tested the shopping cart tutrials from devArticles, and it works just fine..

But I wonder if someone had an idea of how to make a "send-order" out of this script?!

Please contact me on heggernes@tindelandet.no

Love
Frank

Reply With Quote
  #2  
Old May 25th, 2002, 03:43 PM
johnn johnn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Southern California, USA
Posts: 48 johnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I haven't read this tutorial, but I wonder what do you need in the send order script?

Reply With Quote
  #3  
Old May 26th, 2002, 01:49 PM
johnn johnn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Southern California, USA
Posts: 48 johnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Ok. So the send order script is similar to checkout script. If so you can ask customer for their email and address to create an account. Be sure to have an option that customer can still order if they don't want to establish an account. Then you can ask for check or money order or credit card before you confirm order.

Reply With Quote
  #4  
Old May 27th, 2002, 02:08 AM
Frank Frank is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 8 Frank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Good answer..

Hello John.

Your answer to my post sure gave an idea for many other users, but the thing is not that I didn't know what to do, but how to do it!!

To make a send-order-form is easy, but to get the information form the shopping cart is the thing I want help for..

Frank

Reply With Quote
  #5  
Old May 27th, 2002, 02:49 AM
johnn johnn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Southern California, USA
Posts: 48 johnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hello Frank,

So you say you need to know how to get the information from the shopping cart. I need to read the tutorial first to see what to do

Reply With Quote
  #6  
Old June 5th, 2002, 12:58 PM
johnn johnn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Southern California, USA
Posts: 48 johnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi Frank,

According to email message you sent me:
Quote:
The thing I want to do about the script is that when the user press check-out, the check-out page will display the products from the cart.php, shipping-cost and the total cost. Under that I would have a form, so the user fill out his information. No credit-cart or something like that. Just a simple form that send me an email
with the products that the user will buy.

Very simple!


In other pages, you create a checkout button link to, say checkout.php. Then,

To display all products in a cart, their shipping costs and totals and grand total cost

PHP Code:
 $totalcost       0;
$grandtotal     0;
$totalshipcost 0;

echo 
"Here's is the order info...";

$result mysql_query("select * from cart inner join items on cart.itemId = items.itemId where cart.cookieId = '" GetCartId() . "' order by items.itemName asc"); 

if (
db_num_rows($result) == 0)    
{
     
//echo "Your cart is currently empty. Click here to....

}  
else
{
    while(
$row mysql_fetch_array($result)) 
   {
       
//display item name here
       //display total qty of each item
       //display each item sub total cost
       
$subtotal  =  $row["qty"] * $row["itemPrice"]; 
       
//display total shipping cost for this particular line of product. It depends on your business on how to come up with shipping cost formula
       
$shippingcost   = ....???
       
$totalcost        += $subtotal;
       
$totalshipcost += $shippingcost
   }  
}
// display $totalcost  and  $totalshipcost 
// display $grandtotal = display $totalcost +  $totalshipcost; 

and then you can display a form for customers to enter their info.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Shopping cart - tutrials


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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek