Jump to content

Recommended Posts

Hello,

 

I've made a simple shopping cart system where people can select items and it will appear in a small shopping cart which is in the corner of each page.

Now I want when people go to the "checkout" page, there will be a list of products they have selected (as checkboxes being checked) (thats because it will be sent as a mail to me).

My website is in dutch but it's not hard to understand the system. Here's my page:

 

http://www.colinch.com/11eventswebsite

 

The only pages working are -> (from the menu) diensten.php and when diensten.php is selected -> hapjes.php from the dropdown menu.

Those two pages are currently working and can be added to the little cart.

 

So, as you can see, there's a button on each page saying: "toevoegen aan offerte" which means add to cart.

 

What I want is, when they have selected their things which are now in the cart, they should click on a button to send their choices to a page where they are automatically selected or printed.

It doesnt have to be very complicated, so it doesnt really have to be checkboxes if thats hard (im just a beginner), the only thing I want is that:

-people can see their choices printed on the "checkout" page

-i can see those choices in the mail they send me (I thought checkboxes are easy because they appear in the mail)

the checkout is actually them sending a mail to me with their information + the selected products from the cart.

Hopefully there is a function for it and if any codes are required, I will post them.

 

I hope there is someone that can help me. Sorry for my english by the way.

Link to comment
https://forums.phpfreaks.com/topic/271195-php-selection-in-checkbox/
Share on other sites

You have an error in your menu: You've written "diensten.html" instead of "diensten.php".

 

Also, I'm not seeing any kind of cart on that site, and I'm not quite certain what you're asking for in any case. If you're looking for help on how to design a shopping cart system, then I recommend you read this post. It'll give you the basic outline, and the rest should be pretty much obvious.

 

Lastly: If this is indeed a question on how to make such a solution, then this thread should have been posted in the "Application design" section. "PHP coding help" is for help with actual PHP code you've written, and need some help to debug.

Edited by Christian F.

Ah sorry, you should go to diensten.php and/or http://www.colinch.c...site/hapjes.php

On both pages, when you've clicked on the button, it will be added to the cart.

The system is already there, but I don't know how to post/print/show the results (selected products) on a checkout page.

Best would be to have checkboxes for each product on the checkout page, and when one is selected the box is "checked" on the checkout page

Edited by colinch

Ah sorry, you should go to diensten.php and/or http://www.colinch.c...site/hapjes.php

On both pages, when you've clicked on the button, it will be added to the cart.

The system is already there, but I don't know how to post/print/show the results (selected products) on a checkout page.

Best would be to have checkboxes for each product on the checkout page, and when one is selected the box is "checked" on the checkout page

 

You just save the information about the products they selected in a variable an array, then echo it back on the confirmation page.

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.