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, 04: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, 02: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, 12: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, 01: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, 01: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, 11:58 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
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!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




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