update, shop is at http://www.ginbrookesfoundation.org/shop
I would like to be able at some time in the future to be able to implement a shopping cart system since for an NGO that i’m involved with (web in construction using f3 http://www.ginbrookesfoundation.org) , one way of raising funds is buy selling items maybe some some cultural physical items or maybe just digital downloads.
So I have started to read up and take in the basic concepts which seems to involve sessions and items stored in a MySQl database with say a table of products of Id Primary key, auto increment , a varchar field containing src path to image to display and product details etc. Then another table containing temporary items that have been selected for the cart .
Now I see there is the basket class and i understand beneath it high quality code but basically they are snipets of code which you IT guys can put together as required; whereas I as a none IT guy really need to be able to cross reference the code with actual examples.
I can understand that if a product is displayed and clicking on the product image shows a button “add to cart” there is hidden input details; its just that even though I have written my own PHP classes I can not at the moment make the mental leap to see how I can actually use and manipulate data from MySQL tables using the basket class. Does anyone have example code they can share or can elucidate a little on how to use the code?
Hi Ikkez
In the end i decided to give it a go my way; at least i ,might learn more PHP (mostly by trial & error) along the way.