Shopping cart problem

Reply

Join Date: Jun 2008
Posts: 48
Reputation: Rakesh Nagekar is an unknown quantity at this point 
Solved Threads: 2
Rakesh Nagekar Rakesh Nagekar is offline Offline
Light Poster

Shopping cart problem

 
0
  #1
Jul 2nd, 2008
Hello This is Rakesh Nagekar,

i faced a problem in PHP
when we create a shopping cart and click on Add to cart button
i require the explanation and code for view cart .


Thanks in advance
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,072
Reputation: Shanti Chepuru is on a distinguished road 
Solved Threads: 98
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Veteran Poster

Re: Shopping cart problem

 
0
  #2
Jul 3rd, 2008
Hello..

When ever you click on the addtocart button,the product id will redirect to the addtocart.php page..
And there, we are creating a temp_ses var with random number and ref_id with (our code like BNB and one increment value like 1212) ,then we are going to insert the whole variables like temp_ses,ref_id,prod_id,qty as 1,currdate into temp orders...
then in viewcart page .we will get the selected item info from the temporders table,then we can print into our cart..

If we select same product again ,then we are going to check the qty in temp orders table with same prod_id,ref_id,temp_ses..
if the qty found,then we will go to increment the qty whti same prod_id,temp_ses,ref_id...other wise we will insert into temporders again...

Any more queries,
ask me again...

ShantI.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC