Jump to content

Help with simple order/shopping cart script


sovereign110

Recommended Posts

I'm just starting to learn PHP and I'm working on something that involves two files, one HTML and another PHP.  The HTML file basically accesses the PHP file anyway though, to avoid repetition in the HTML code...the actual HTML form is hardcoded within the PHP file itself.  The user will be able to enter the quantity of items they want, and either add them to their shopping cart (display their order back to them on the same page as the order form) or submit the order (display their order back to them without the order form visible).

 

I already have the shopping cart portion done, so I'm really only having problems with two things:  1)  If they place their order, how do I redisplay the information without the HTML order form visible and 2)  If they already have an order in their shopping cart and they place their order, how do I carry over all the information in the cart to redisplay it (my variables all seem to reset after they add to their cart and display so I can't use the same function I used to retrieve it all in the first place)?

 

Thanks in advance...I've been trying to figure this out for over an hour now and I just need a push in the right direction :P  If you need anything else clarified let me know, I'll be lurking...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.