14. E – Commerce Website Tutorial – Remove Items From PHP Shopping Cart

www.developphp.com In this 14th video we will learn a simple method for allowing the user to remove cart items from your cart’s multidimensional array using unset() and sort(). The E – Commerce Web Site we will be assembling is one in which all of the inventory is in a MySQL database and we offer a custom PHP cart for a unique shopping experience.

22 Comments

  • I like this! But in my mobile it says 5 stars :S

    A question: The “sort” function would work re-ordering the id’s in a database???

    Regards!

  • You have my “Like” 😀 I have connected from PC and give you it (I’m XMAnuca)… See you in the next lesson 🙂

  • i think you should put the cart total on the top of the cart table that way no matter how many items they have in the cart they don’t have to scroll to the bottom to get it ratter they just go to the top

  • Great Tut Adam, I just have a question, how come for the item amounts u arent using the way alot of site do where the item amount is a text box and where u have the delete button its an update button and if u put 0 in the text box it removes the item..im just wondering why u didnt go this route seem as it seems better and alot of sites do it so it must be good right? 😛

  • thanks adam that tut was great my site is starting to come together now
    🙂
    i have posted on the developphp site the code for a custom image as a button rather than the standard one if anyone wants it i am afraid it has all the \ in it still but i am sure if you want to change it you can

  • Adam,

    5 Star rating again for this tutorial. After I watch it several times I am sure it will sink in. This is all totally new information for me to understand.

    Thank you,

    Eric

  • it might just be cosmetic but can’t you put the total in the more conspicuous place?

    and calculate if taxes are needed in the “state” the customer is in.

    and calculate the “shipping” cost?

  • this part is not working on me remove isnt working if there is only one item with quantity only one n i click on delete it does not work if i click again u cay say twice then it delete the item then generate the warning above that undefined index cart_array in line 119…. if i have more than one items in a cart this button does not work i exactly copy the same as mention in the tutorial can any one help me adam you can help me better than others

Leave a Reply

Your email address will not be published. Required fields are marked *