JulietSA Posted July 14, 2009 Share Posted July 14, 2009 I've set up an order page modifying a basic php script I found. It works fine, but when someone places an order they see all the items available as well as the one/s they ordered (both on the webpage and the email they receive). It's a long list of items that can be ordered, so it's messy and a bit confusing. Is there a way to show only the item/s ordered? You can see the order page here: www.fivesensesbeauty.com.au You can even place a mock order if you want to test it (pls put "mock order" where your name should go) as the order email will come to me. This is my first php script.... took me ages to get it to work properly.... , so please treat me as an absolute novice Any help is greatly appreciated. Thanks, Julie Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/ Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 I'm there but I see no 'Add To Cart' or anything anywhere lol Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874981 Share on other sites More sharing options...
JulietSA Posted July 14, 2009 Author Share Posted July 14, 2009 there is no shopping cart, just the "submit" button at the bottom of the order form Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874984 Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 lol I'm sorry I still don't see an order form >.> Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874985 Share on other sites More sharing options...
JulietSA Posted July 14, 2009 Author Share Posted July 14, 2009 Doh... my fault.... try www.fivesensesbeauty.com.au/order.htm Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874986 Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 ok I see it.. and NOW you want only ordered items to be displayed? edit --- (b4 you post again ) I don't see how you'll pull that off without an 'add to cart' feature >.> edit #2 --- On your gardening website in fees and structure.. "existing structures, tress and garden" is that meant to be 'trees' because spelling bad on websites tend to affect you pretty bad (even tho that's your client not YOU, just looking out) Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874987 Share on other sites More sharing options...
JulietSA Posted July 14, 2009 Author Share Posted July 14, 2009 wow! you're good! I had to go and search for the "tress" - thanks for picking it up. I thought I was pretty good at editing. now how do I edit my 1st post to show the correct url? Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874991 Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 You can't Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874993 Share on other sites More sharing options...
JulietSA Posted July 14, 2009 Author Share Posted July 14, 2009 The person I built the website for doesn't have merchant facilities, so they just wanted a basic order form so they can contact customers directly and let them know how they can pay. So is there a way to only show the items ordered? Or am I just making it all too complicated? Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874997 Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 is there a way to KNOW what they ordered? or do you mean to just show what they ordered in the email? Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-874998 Share on other sites More sharing options...
JulietSA Posted July 14, 2009 Author Share Posted July 14, 2009 yes, when the customer hits the submit button, the form generates a webpage with ALL the items on the order page, including the things they order and how much it comes to. It also generates an email that is sent both to the customer and the website owner. What we want is for the emails (and webpage) to only have the items that the customer has ordered listed, rather than everything that's available. If you want to submit a mock order you'll see what I mean. Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-875007 Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 loop the POST vars like.. foreach ($_POST as $k => $v) { if ($v > 0) { // display for this element in $_POST } } Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-875011 Share on other sites More sharing options...
JulietSA Posted July 14, 2009 Author Share Posted July 14, 2009 sorry, I don't know what that means .... still a very basic beginner. Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-875014 Share on other sites More sharing options...
RussellReal Posted July 14, 2009 Share Posted July 14, 2009 add my MSN this posting back n forth is crazy lol Quote Link to comment https://forums.phpfreaks.com/topic/165886-how-to-only-show-items-ordered-from-order-page/#findComment-875015 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.