General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
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:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #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: 6
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: 6
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: 6
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: 6
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!
 
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 &quot;checkpoints&quot; 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 | 
  
 

Iron Speed




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