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 January 27th, 2003, 05:50 AM
inash inash is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 6 inash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
checkout page for cart script

Hello. I am new to PHP and I love it! I just got a shopping cart script working (from the php/mysql cart tutorial on this site).

My problem now is that I need a checkout page that displays the final cost, asks for customer details (name, email, phone, address, cc number etc) and then emails all that info to me.

I know I can do it but I just need someone to jump start me. I'm good at adapting existing scripts to suit my needs.

I'd really appreciate any help on this as this is my first php/mysql project and I would love to see it in action soon!

Thanks for all your help.

Inas

Reply With Quote
  #2  
Old January 27th, 2003, 11:24 AM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Info

Hi!
Give me the table name and the table columns of the shopping cart and if you have an users table, give me the name and the columns that I'll help you build the checkout.
__________________
Regards,
Ramiro Varandas Jr.

Reply With Quote
  #3  
Old January 27th, 2003, 12:08 PM
inash inash is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 6 inash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Ramz,

I don't have a users table...but here are the tables for the cart:

cartId
cookieId
itemId
qty

Thanks again. Also, do you know how I can add a set shipping charge to the total cost of any order?

I know this is all probably very easy but I'm very new to all this

Take care

Inas

Reply With Quote
  #4  
Old January 27th, 2003, 03:33 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Need more information

Hi!
I need a little bit information.

1.) Are you using a database class or connecting it in every .php file?
2.) I need the name of the columns of the item table.
3.) You'll need to create a users table (I'm sending here an attached file with a SQL for this - I suppose that you're using MySQL)
4.) You'll need a checkout table too (it's with the SQL file either)
5.) If a person is going to buy something from you through the internet, this person might be from your city, other city/state or even other country. So I need to know the shipping prices for these kind of situations. For example: If I live in your city, how much does it cost for the shipping. If I live in another state, what's the price for the shipping and if there's more than one shipping method (Like Fedex, UPS...). I live in Brazil, so for Brazil I know how things works, but for where you living in I don't =)
6.) Does your server offers you SSL?! It's called Secure Socket Layer, this makes sure that the information about the credit card is typed in a secure mode.

I guess that is all by now... If I need anything else I post another message.

Reply With Quote
  #5  
Old January 27th, 2003, 03:44 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
I forgot the SQL...

Here's the SQL:

Type it at the MySQL prompt...

create table user (
user_id int(11) not null auto_increment,
user_name varchar(50) not null,
user_email varchar(100) not null,
user_address varchar(120) not null,
user_city varchar(60) not null,
user_nhood varchar(60) not null,
user_zip varchar(5) not null,
user_country varchar(60) not null,
user_pass varchar(30) not null,
user_phone varchar(14) not null,
primary key(user_id));

create table order (
order_id int(11) not null auto_increment,
order_date date not null,
order_qty tinyint(3) not null,
order_price decimal(4,2) not null,
user_id int(11) not null,
itemId int(11) not null,
primary key(order_id));

Reply With Quote
  #6  
Old January 28th, 2003, 04:16 AM
inash inash is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 6 inash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The info you need and thanks!

Hello Ramiro,

Thanks again for all your help. I once knew the daughter of the Brazilian ambassador to

Cairo so I already know that Brazilians are very kind people!

Here's the info you want:

1. I am using a database class (db.php)

2. The items table has the following columns:

itemId
itemName
itemDesc
itemPrice
itemPic

3. Orders coming from within Egypt should be payable cash on delivery with an added

delivery charge of LE5.00. All items on the site are sold in US dollars so users who want

to order in Egypt have to convert the total cost to Egyptian pounds before adding the

LE5.00 delivery charge.

Orders outside Cairo, Egypt should be payed for in US dollars by credit card with an added

shipping charge of $10.00.

4. My remote server does not offer ssl for now.


I hope all this helps, and thanks again for your support and time.

Take care

Inas

Reply With Quote
  #7  
Old January 28th, 2003, 02:57 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Ok...

Ok Inash...
I'll do something here today and post tomorrow for you to do or change... but, I don't know if you're new to this stuff (php, servers, programming)... but passing credit card numbers without ssl is too dangerous. Malicious persons (hackers/crackers) can discover this information by a lot of techniques. I can still help you with this process, but I can't guarantee a security against it, ok?!

Reply With Quote
  #8  
Old January 29th, 2003, 05:17 AM
inash inash is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 6 inash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks

Thanks Ramz,

In the meantime I'll talk to my provider about upgrading to a hosting package with ssl.

Take care


Inas

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > checkout page for cart script


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 6 hosted by Hostway