you prolly dont care but does anyone know of a method to get back into an instagram account? I was stupid lost the password. I appreciate any tips you can offer me
This is a very good video for the general idea of shopping cart, but at this examples code, working with array with index as key is a really mess when it comes to the "unset/remove" part of the logic, simply won't work in real life. You better prefer associative keys for best results. Weblesson always provide good and practical ideas to do stuff, many Thanks
after array unset add this code $_SESSION["shopping_cart"] = array_merge($_SESSION["shopping_cart"]); Otherwise you cannot add more items. when you add a new item it will be added in the place of the last item.
Hello.I watch tutorials from this channel from long time.I also subscribed it and watch and learn many this things from here. This video is also great.I want complete add to cart system with placing order in database please help me. Thnkz in advance
Good day can you make a option for the quantity to be changed in the Order Details section. Meaning the customer will add to cart and the Order Details will reflect the total price as if one item was selected (the quantity form is not there) but if a user wants to select more than 1 product they can do that from the order details (the quantity form will be here or if possible a plus and minus option like bootstrap ) instead of removing it from order details and selecting the amount and then adding back to cart?
There is an error. If you remove 2nd product, and then add another product. This will replace the third product. Because you used count for indexing. Your index is not unique.
Hello, I have a problem. When I have 2 products in the cart and the first one is removed, the next product you add will overwrite the first one (which was the second one). My code is same as yours. Is there a solution?
after checking in_array condition in your video in else part i want to add quantity only.. for i clicking one product again and again i want to do quantity increase like1,2,3,4,5...... how can i do????
Thanks for the tutorial. Everything works well but, it does not update an item in the cart with a different quantity number. How to implement that line of code?
at 11:04 instead of using echo 'alert("Item Already Added")>/script>; use if(in_array($_GET["id"], $item_array_id)) { foreach($_SESSION["shopping_cart"] as $keys => $values) { $_SESSION["shopping_cart"][$keys]["item_quantity"] = $_SESSION["shopping_cart"][$keys]["item_quantity"]+$_POST["quantity"]; } }
This is good but i want to learn add to cart whole functionality means adding items to cart plus checkout and order placement such that the order of customer is store in database.
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\FYP\product.php on line 62 and theres no button and images shown in the webpage :(
Hi Bong, This is actually kind of easy to handle. You can set your own limiter function with PHP or JS, but honestly good ol' HTML can handle this one by setting a min attribute for the input value. Here's more information: stackoverflow.com/questions/7372067/is-there-any-way-to-prevent-input-type-number-getting-negative-values
how to show value in the same td or input if you click on the database product. (In other words, only show a value in the same input if you click on add cart)
I like the PHP hints that pop up in the code editor. How do you get it to do that? Is it standard with Netbeans or something or did you install a plugin for common PHP-SQL methods?
Hi Jimminy, I believe the hints in this video are unique to netbeans but I know there are other PHP hints that you download as packages for other editors, like Atom. What editor do you use?
Thank you its a useful code..I have problem only with array_column( )...It show the same error Fatal Error:Call to undefined function array_column( )..I hope you can help me.
sir how about you have a login then add to cart and this is the situation " one user log in then he add to cart then he log out then someone log in " how that the second user dont see the previews record pls help
I want to add the product that has already been in the cart. But this time, I want it should update its quantity rather than display alert message . Please help.
Nice video but plz let me know what to do if My database contains quantity of items: Item-1=1 item-2=3 User saves quantity: Item-1 =5 Item-2=4 where to place condition to check and compare user's entered quantity with the available quantity??? is there a way to check and compare the both quantities and restrict user to enter the quantity more than the available quantity????