Posted on Oct 29, 2018 at 04:42:14 PM
A New Shopping Cart
This has been an interesting month to say the least.
Now for the hard part! As with PHP we can store all items in sessions on the server to track how many items are in the cart. Since cookies allows only one value in the text file I needed a way to track each cookie item/name for the cart. So in order to accomplish this I had to create a separate cookie just to store each product id name and separated them with a single "|" to split up later into an array. This way when I call this cookie, my code can then break down the list and call the correct cookie names created and load the data into the cart, or update it. This worked perfectly as expected. The result is a brand new cart fast and small.
So we will be making a commercial version of this cart very soon for everyone to download and include in their websites. We will offer a demo version and the full version will require a serial number just like our Advanced Cart (PHP) software. But this version will be fast and store the orders on the users machine using simple cookies. So incase they shut down their web browsers, they can come back later and the items are still in their cart.
The functionality of this cart will be very intuitive and simple to use...
We will also include form examples for many drop down selections and so on...