Hi everybody!
I'm working on building a website to sell my screen printed t-shirts. The homepage will contain a wall of the products in html only, and when a product is selected you go to a deeper description page dedicated to the individual product. That page is going to have options for shirt size/color options, as well as a price. From there I want the user to click an "Add to Cart" button which redirects them to a Cart page that displays the shirt name/size/color/price based on the variables they picked on the previous page. Right now I have this done with php cookies that have successfully saved the variables but they are just each a scattered individual cookie and I don't know how to get them grouped into a single product so it can be previewed by the customer. How do I get those scattered variables to preview like a cart would, displaying the products they have selected with all the options and price that it contains?
Keep in mind that after they pick one item they need to have the option of returning back to the shirts and selecting another shirt, with its own individual options, and then that needs to be somehow added to the cart as well. Once I get that to display I'm also unsure about how I'm going to get the prices for all of the shirts they have in their cart to be added into a total, and how that total will be changed once they select their country for shipping and if they click "remove" on any of the items in the cart.
Once all of this is done the cart total is going to go straight to PayPal (also not sure about how to do that but I assume that will be easily figured out?). And also those cookies for their cart needs to be made into an email receipt that will be sent to me(I know how to send basic php emails, but unsure about how to do so with cookies inside of the email).
I'd also like to mention that I'm not worried about any security risks, I don't plan to sell many shirts, and I won't have many products to sell. So I will be able to make sure payment has been received through paypal before I send out each shirt. And the customers sensitive information will only be obtained by paypal so thats not a problem. There aren't account registering or anything complicated, I'm trying to keep this as simple as possible!!
Sorry I'm kind of scattered right now, here's my basic questions:
1.How can I group all of the cookies I've created for the name/size/color options from the html form and have the Cart page obtain that and display it as a product in their cart? (Thinking possibly an array file but I don't know how to do that.)
2.Once the cart displays all the items they have chosen, how are their products calculated into a total, and how do you calculate their shipping information into that?
3.How do I create a "Remove" option for items they don't want in the cart?
I'm ready to rip out my hair and run through a wall so any help is appreciated! I don't expect you to code the whole thing for me, but if you could type up a quick example for me to understand the basic concepts I should be able to roll with that!
Thanks! 😃