Django Ecom Part-13 | Update product quantity in cart and Remove cart item using jQuery AJAX
HTML-код
- Опубликовано: 5 окт 2024
- In this video, you will learn how to update the quantity of an item in the cart using jquery ajax. We will also be doing the remove item from cart using jquery and reload only the cart div.
Source Code : www.fundacodes...
Django Ecom Playlist : • Django Ecommerce Website
If the video helps you, hit the like button and subscribe to the channel. If you have any doubts or suggestions, drop them in the comments below and i will answer them.
Thanks for watching
Buy me a coffee : www.buymeacoff...
Follow me on instagram : / sharma_coder
Thank you sir!
Sir can you help me about Sales Income for weekly, monthly and yearly for this project.
when i can delete item is success.. but when i try again to delete another data is not success..because the location can't load.. i try to change to location.reload() then the item is delete..
Watch out the next video about wishlist. We have solved this problem in the end of the video.
@@SharmaCoder tks sir..👍
Hi Sir, I'm facing a issue on the update and remove in cart. I cross checked the code nothing wrong with that. I was facing an issue with add to cart functionality that uses ajax request, but that's automatically solved idk. Same issue on this update and remove in cart is happening. Please help me out of this....
Will have to see the code. Without seeing the code, its hard to find out what's the problem
Hello, i am having some issues when i add to cart, lets say i want to add 3 items to cart, i press the button however when i go the cart section, it only appears as one, i dont where i could have gone wrong, may you please help me, thank you
In your cart.html file change the tag with 'value' as below
@@pradeepraja7424 showing empty quantity when write this
@@pradeepraja7424 thank you! if it's according to sharma's code, value is : value="{{ item.product_qty }}"
prod_id = int(request.POST.get('product_id'))
ValueError: invalid literal for int() with base 10: ' '
please do help
just look on the cart html and make sure you are passing the right value in
value="{{ item.product.id }}">
Thanks a lot..@@felixomundi1495