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 June 20th, 2003, 05:34 AM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
tutorial about shopping cart

Hello.
I di the tutorial on this website to got a shopping cart script working.
I'm very happy with this, but I want to add a form with, the name, the adress, the phone, the e-mail... of the buyer (without payment on line).
Can you help me?
Thank you very much
PS: Excuse my english, I'm french...

Reply With Quote
  #2  
Old June 20th, 2003, 05:55 AM
kelvinhoo kelvinhoo is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 kelvinhoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I did done the checkout script, and also try to add a form (like you wnat) on it , once i complete i will post it......
also english is not my first languge...hehe...


Kelvin

Reply With Quote
  #3  
Old June 20th, 2003, 06:21 AM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
>I did done the checkout script, and also try to add a form (like you wnat) on it , once i complete i will post it......

I'm very interesting. Thank you very much


>also english is not my first languge...hehe...

What is you language?

Thanks

Reply With Quote
  #4  
Old June 20th, 2003, 05:26 PM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
I've made the formular with the adress, name... of the buyer.
If you want it, mail me.
bye

Reply With Quote
  #5  
Old June 20th, 2003, 05:32 PM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
but now, when i want to ad a item into my shop, i have this message:


Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/www/lemotocross.com/www/shop/include/header.php:8) in /usr/www/lemotocross.com/www/shop/db.php on line 41

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/www/lemotocross.com/www/shop/include/header.php:8) in /usr/www/lemotocross.com/www/shop/db.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/lemotocross.com/www/shop/include/header.php:8) in /usr/www/lemotocross.com/www/shop/db.php on line 42

Why? in localhist, it's good, but on my server there is this.
how to rectify this?
Thank you very much

Reply With Quote
  #6  
Old June 22nd, 2003, 04:32 AM
kelvinhoo kelvinhoo is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 kelvinhoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

Dunno what acture problem on you script....sorry can't help..

anyway, i post the checkout script here for you, and hope this will help..

PHP Code:
<?php
include("db.php");

        global 
$dbServer$dbUser$dbPass$dbName;

        
$cxn = @ConnectToDb($dbServer$dbUser$dbPass$dbName);


$result mysql_query("select * from cart inner join items on cart.itemId 
  = items.itemId where cart.cookieId = '"
GetCartId() . "' order by 
  items.itemName asc"
);
  
?>
  <html><body>
        <?php
        $row 
mysql_fetch_assoc($result);
        
$numRows mysql_num_rows($result);
        
        if(
$numRows == 0)
  {
echo 
"Your shopping cart is currently empty.";

  else
     echo  
"Here's is your order status...<br>";
  {
  do
  {
  
?>
  <table width="600" border="1"><tr><td>Item Name</td><td>Qty</td><td>Price</td></tr>
  
     <tr> <td><?php echo $row["itemName"]; ?></td>
      <td><?php echo $row["qty"]; ?></td>
     <td><?php echo number_format($row["itemPrice"], 2"."","); ?></td></tr></table>
     
<?php
  
} while($row mysql_fetch_assoc($result));
  }
mysql_query("delete from cart where cart.cookieId = '"GetCartId() . "'");
?>
<form name="form1" method="post" action="">

<table width="500">
  <tr> 
    <td width="25%">Name</td>
    <td width="75%">&nbsp;</td>
  </tr>
  <tr> 
    <td>Email</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>Address</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>City</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>Zip</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>State</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>Country</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Telphone</td>
    <td>&nbsp;</td>
  </tr>
  
</table>
</form>
<p><a href="products.php">Back</a></p>
</body></html>


And so sorry i hav'nt complete the buyer form to write to the database...........and one important thing is i'm not a expert. is great if you could modify and let the script run better...

Thank you,
Kelvin.

Reply With Quote
  #7  
Old June 22nd, 2003, 01:12 PM
mitchum mitchum is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: france
Posts: 13 mitchum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mitchum Send a message via AIM to mitchum
thank you very much kevin, the script is ok.
bye

Reply With Quote
  #8  
Old July 5th, 2003, 06:29 AM
kelvinhoo kelvinhoo is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 kelvinhoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, Mitchum

How is the script thing stand? is the process go on....

it's great if you could share your achievement...

thank you...

kelvin

Reply With Quote
  #9  
Old January 27th, 2004, 11:26 AM
davidekins davidekins is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 9 davidekins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 31 sec
Reputation Power: 0
Thumbs up Help Please!!!!!!!!!!!!!!

Does anyone have a complete set of 'basic' scripts for this - i.e. with a working checkout page. Basicaly what I need is to get all data collated to a point where it can be submitted to a payment system (such as PayPal or Worldpay) I have got the basic scripts working now but struggling with the checkout.

Anyone got any ideas?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > tutorial about 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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT