Django Ecom Part 14 | How to make Wish list using jQuery Ajax | Add to wish list | Delete item

preview_player
Показать описание
In this video, you will learn how to add wish list in your django project. We will be creating the model for wishlist, add products to our wishlist using jQuery Ajax and we will also see how to delete items from wish list and reload the wish list div without page reload.

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

Рекомендации по теме
Комментарии
Автор

Line no-38, at 30:30, add "user=request.user" when selecting the wishlist item to be deleted.
wishlistitem = Wishlist.objects.get(prod_id=product_id, user=request.user)

SharmaCoder
Автор

hello @SharmaCoder, Sir, I am facing a problem after completing this video i.e, when I click on the delete button the item at the top is removed from the wishlist as well as from cart, and when I try to increase the of any product, the qty of product increases. when I increment the qty before adding it to the cart it works properly. same problem with decreasing. plz help ASAP

FelisLeo
Автор

thank you so much for the series!

been learning a lot about django, but not only, jquery and ajax too. Apreciate it!

brunoreis
Автор

am write code correct and nth happen when aclick on add to wish list where is the problem

hind
Автор

Tutorial video 23:
I am getting a 'CSRF token mismatch' trying to remove an item from the shopping cart. I have added the following code to my external custom.js and checked the front layout file. The issue is still there.. help please....?

my custom.js
// $.ajaxSetup({
// headers: {
// 'X-CSRF-TOKEN':
// }
// });


front layout
<meta name="csrf-token" content="{{ csrf_token() }}">

donaldmjbart-williams