Adding Items to Cart without Registering a Account | eCommerce Website

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 111

  • @DennisIvy
    @DennisIvy  5 หลายเดือนก่อน

    Don't forget to check out my Complete Django course! dub.sh/NvGboTI

  • @unperrier5998
    @unperrier5998 4 ปีที่แล้ว +2

    The concept makes sense for a large company that does a lot of guests and user tracking.
    This device id allows to reconcile everything the user did as guest once he logged-in.
    Said differently, before the user logs-in (he's a guest) a device ID is created for his browser and all the actions he does are recorded (visit this and that)... then when he logs-in the device ID is associated with the user so the company knows how he behaved before logging-in and they can use that for marketing purposes and segmentation. If he uses another computer or mobile they also know it.

  • @bakhitmahamat7359
    @bakhitmahamat7359 4 ปีที่แล้ว +5

    Thank u so much Dennis for this great tutorial. It’s much simpler than the one for your e-commerce website(guest user). This way doesn’t require too much coding and easy to understand as well. Keep it us Dennis. You’re awesome.

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว +4

      I know I was so mad at myself for not using this method in the original course! Oh well, I'll just use it in the next one and this way you get to see different methods ;)

  • @AlexanderAndradeDj
    @AlexanderAndradeDj 4 ปีที่แล้ว +3

    Always improving, that's the way to success. Thanks Dennis!

  • @os1122
    @os1122 4 ปีที่แล้ว +1

    Good to see you in action. Thanks for the update.

  • @rakibhossain1331
    @rakibhossain1331 4 ปีที่แล้ว

    Seriously bro......., that's a very good content you have provided to the youtube. Thanks a lot.

  • @TonToni
    @TonToni 4 ปีที่แล้ว +1

    Hey Dennis, I'm following you on your Python project and I'm waiting for u to continue with other features for the ecommerce website. You are doing a great work for the community! thank you and keep pushing!

  • @daybefore7306
    @daybefore7306 3 ปีที่แล้ว

    Bro you helped me unbelievably great, shake your hand with immense gratefulness !!!

  • @pro4techspk990
    @pro4techspk990 4 ปีที่แล้ว +7

    Dennis plz make the add to cart functionality that add items without reloading may be with the "ajax call".

    • @zolika154
      @zolika154 4 ปีที่แล้ว +1

      Here's how i did it. --> stored my cart in the request.session variable and mapped out an url to /update_cart/.
      When you POST that url with the correct information (via JS fetchAPI) the session variables are updated. Also, I only create the order when is placed.

    • @naheliegend5222
      @naheliegend5222 3 ปีที่แล้ว

      I did it with an ajax request and updated the DOM just like the way ajax is made for. :D

  • @vachaganmuradyan124
    @vachaganmuradyan124 4 ปีที่แล้ว +2

    Dennis We are very grateful for your hardwork. Could you make a tutorial on how to use Git?

  • @Munchen888
    @Munchen888 4 หลายเดือนก่อน

    God bless you Dennis. Thank you for good playlist tutorial 🌝🔥

  • @marcinajman6256
    @marcinajman6256 2 ปีที่แล้ว +1

    can we store all the cart details in the cookies instead of storing it on a server's database?

  • @Final_M
    @Final_M 4 ปีที่แล้ว +3

    Great video man thank you! one question though, once a device ID gets stored in the database, does it just stay there forever? How do we manage this? because obviously someone can delete their cookies and when they came back, they would be assigned a new device ID

  • @zhh174
    @zhh174 4 ปีที่แล้ว

    I want to request you a video series. Plz make videos on making blog app with django. It would be very helpful to me. And thank you for helping us. I really appreciate your work. Love your videos. Keep going

    • @raymondsutton6348
      @raymondsutton6348 4 ปีที่แล้ว +1

      Unless I’m mistaken, the Django documentation has a blog tutorial on their website 🤙🏻

    • @zhh174
      @zhh174 4 ปีที่แล้ว

      @@raymondsutton6348 ok.can you give me the link?

  • @deebx8214
    @deebx8214 6 หลายเดือนก่อน

    this actually helped me out so much

  • @kenedykombo362
    @kenedykombo362 4 ปีที่แล้ว

    Good work my Teacher

  • @memeline7015
    @memeline7015 ปีที่แล้ว

    I think there are a lot of options to do this. you can use django sessions to store the data of the unauth cart and when the user signs up shift his cookie items in the auth cart.
    you can use js as well to do this. and use ajax to do it without the page reload. because when you do this without ajax, whenever you change the cartitrm quantity there are a lot of cached pages django stores due to which one need to go back the same times he ran that change quantity view.

  • @Learner0123
    @Learner0123 4 ปีที่แล้ว

    Please continue ....do more videos on django

  • @Hard_Tackle
    @Hard_Tackle 4 ปีที่แล้ว

    If you were to send details of the order to the seller in a PDF or excel spreadsheet, how can that be done? Any ideas please?

  • @arthurshadrack5017
    @arthurshadrack5017 3 ปีที่แล้ว

    Hello Sir, i will be happy if you can defined how to add color and size to the cookies.

  • @Jacob-ne7ro
    @Jacob-ne7ro 2 ปีที่แล้ว

    Hi Dennis. After closing the browser, cookies assign a new ID instead of assigning the old one . I have set SESSION_EXPIRE_AT_BROWSER_CLOSE = False and SESSION_COOKIE_AGE = 1440 * 60 . Do you have an idea how to fix it?

  • @blumedia_marketing
    @blumedia_marketing 4 ปีที่แล้ว

    Nice! Just want to show your page some love and support! 😀

  • @naheliegend5222
    @naheliegend5222 3 ปีที่แล้ว

    why did you make a 1-to-1 between customer and users instead of using the user model?

  • @nishantpacharne1569
    @nishantpacharne1569 4 ปีที่แล้ว +1

    The video was very helpfull !! But Dennis Iam eagerly waiting for a unboxing video of silver play button !!😊😊

    • @sahilkhanna9782
      @sahilkhanna9782 4 ปีที่แล้ว +1

      Me too

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว +1

      Haha thats gonna be crazy! I appreciate your constant support Nishant :)

    • @nishantpacharne1569
      @nishantpacharne1569 4 ปีที่แล้ว +1

      @@DennisIvy And we all appreciate your constant tutorials, guides, tips and many more :)

  • @danieldias6175
    @danieldias6175 4 ปีที่แล้ว

    Great video, thank you very much!
    It's possible to implement this using Django sessions?

  • @mateodoherty3884
    @mateodoherty3884 2 ปีที่แล้ว

    Can someone pls tell me why my items are not showing up on my card, it simply says no items in cart. I did all the steps the same way Dennis did. The orders and everything are showing up on my admin page.

  • @MrGro0Ve
    @MrGro0Ve 4 ปีที่แล้ว

    im using same logic but my problem is that when i log in / logout the device cookie is still the same , any ideas?

  • @jansonha2688
    @jansonha2688 3 ปีที่แล้ว

    Hey! Does anyone have the same problem? My website doesn't work on Apple products. Cookies aren't initialized, although I have enabled them in my settings.

  • @jnscollier
    @jnscollier 2 ปีที่แล้ว

    Curiosity question: how to handle multiple cart sessions from one device? If my device id is abc123, and I have multiple accounts with a website, if a user logs in or out, which cart do you show on logout? Last, one or the other, or none? I realize a user shouldn't have multiple accounts in most cases. Bit of an edge case I guess.

  • @ЭрикАракельян
    @ЭрикАракельян 2 ปีที่แล้ว

    Can i use sessions in a backend without doing js stuff?

  • @ammaamma8824
    @ammaamma8824 4 ปีที่แล้ว

    Bro ur's javascript dyanamic table sorting logic doesn't working fine with more than 10 object values plz gimme a suggestion how to sort array of objects

  • @mickykumar5892
    @mickykumar5892 4 ปีที่แล้ว

    how do you use the login button from your video for customer view?

  • @venkatashivaji
    @venkatashivaji 2 ปีที่แล้ว

    What is the reason for doing the customer, created =??

  • @mohammedqadir3851
    @mohammedqadir3851 4 ปีที่แล้ว

    Most Amazing Nice Feature.
    Thank you so much...... Sir.

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว +1

      I was really exited to show this new method :)

  • @freekeys
    @freekeys 4 ปีที่แล้ว

    Can we notify the users when new product come with web push notifications? If yes pls make video on that

  • @3ed344
    @3ed344 3 ปีที่แล้ว

    How about if we use localstorage with javascript ?

  • @picirigo90
    @picirigo90 4 ปีที่แล้ว

    So If the guest adding some products to the cart and then after he decides to register, after registration gonna have an empty cart?

  • @mariosdaskalas1030
    @mariosdaskalas1030 4 ปีที่แล้ว

    Hello, what plugin do you use for localhost in sublime text? @Dennis Ivy

  • @sleepystudios9597
    @sleepystudios9597 4 ปีที่แล้ว

    hey man, how would i make it so that it only shows the users orders in cart

  • @sasha751
    @sasha751 4 ปีที่แล้ว

    Hi dennis do you think its possible to have a field in models.py that is concatenate of previous two fields like
    Firstname = models.charfield
    Lastname = models.charfield
    Fullname = firstname + lastname
    I want a column of full name in my table that is filled when both names are fill null value can also be used if any field is not present

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว +1

      If you just want to return a full name you can concatenate using a model method. If you actually want to store the full name in the database as one field you can use signals to check for this and it will generate a full name if one is present :)

    • @sasha751
      @sasha751 4 ปีที่แล้ว

      @@DennisIvy thankyou so much

  • @watumatuze8312
    @watumatuze8312 4 ปีที่แล้ว

    you are amazing Dennis

  • @mysterio7385
    @mysterio7385 4 ปีที่แล้ว

    I was thinking about storing anonymous cart data in session. It's more secure then cookies but also automates deleting unneeded anonymous data. What do you think?

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      That could work. The reason I don't use that method is because it standard practice to store this data even when a user closes the website. You don't want to force the user to re-add items on their next visit.

    • @mysterio7385
      @mysterio7385 4 ปีที่แล้ว

      @@DennisIvy Using your method an attacker could trash the database by constantly clearing device ID. Is there a method to prevent that?

  • @fadye3050
    @fadye3050 4 ปีที่แล้ว

    thanks very good tutorial. can i do with vue.js?

  • @salmanfaris1441
    @salmanfaris1441 2 ปีที่แล้ว

    Does't it viaolate the unique contraint of username as none field

  • @gakubar
    @gakubar 3 ปีที่แล้ว

    please can you also add a readME on your project, on how to install the project locally.
    for those that can't run it locally
    here is a sample:
    - git clone 'link'
    - cd into folder
    - install virtualenv
    - start virtualenv
    - pip install requirements.txt
    - pip install pillow (it may fail to be installed as it did for my case)
    - makemigrations
    - migrate
    - runserver

  • @bringinglife2
    @bringinglife2 4 ปีที่แล้ว

    Can you show, how we can implement slider function for images in homepage?

    • @Arbadjie
      @Arbadjie 4 ปีที่แล้ว +1

      He have it here: th-cam.com/video/Y36QpYcnbQY/w-d-xo.html
      See if you can implement it in this project

    • @bringinglife2
      @bringinglife2 4 ปีที่แล้ว

      @@Arbadjie I tried that, but it isn't looping through all products in homepage but works well in detail page.

  • @otherstarboard
    @otherstarboard 3 ปีที่แล้ว

    One thing that might be an issue here: if a user visits in Incognito mode. There is no device cookie then as far as I understand. The whole flow just breaks for me.

  • @unperrier5998
    @unperrier5998 4 ปีที่แล้ว

    Factoring into a method that returns the user makes sense to me, not to duplicate the same code in 2 "product" and "cart" views.

  • @salmanfaris1441
    @salmanfaris1441 2 ปีที่แล้ว

    how we are going to delete this cookie when sign up ?

  • @alinandrei9006
    @alinandrei9006 4 ปีที่แล้ว

    you the man, Dennis. Thank you!

  • @SaeedAlFalasi
    @SaeedAlFalasi 4 ปีที่แล้ว

    Very cool, love your videos motivational and clear

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      I appreciate that!

    • @sureshk66
      @sureshk66 4 ปีที่แล้ว

      @@DennisIvy can you implement our of stock products.. in cart

  • @hassanmiqdad6908
    @hassanmiqdad6908 4 ปีที่แล้ว

    Hi Dennis, thank you too much for the great effort you made.
    Is it possible to provide the source code of the full e-commerce project after module 5, but instead of using the original module 4 method for the guest user, use the new way you explained in this video using the concept of the device ID.
    Many thanks to you Dennis.

  • @karlbrian9972
    @karlbrian9972 4 ปีที่แล้ว

    Hey Ivy,, I was requesting if you could make a vedio on logging in in the Ecommerce website,, I tried to used your video on Django crash course but whenever I tried to log in a new user, he is added in the users list but an error comes that there is no customer,, please help

    • @Geepee11
      @Geepee11 4 ปีที่แล้ว

      I had this error at some point, it will only occur for a superuser, you will have to go to admin to customer class and add the user as a customer manually

  • @tangybanda
    @tangybanda 4 ปีที่แล้ว

    Bhai can you plz tell me how to save shanti website globally .So that all one use it.

  • @mickykumar5892
    @mickykumar5892 4 ปีที่แล้ว

    Can you show to make store credit and discount code?

  • @shababshahjahan7079
    @shababshahjahan7079 4 ปีที่แล้ว

    As Usual you did the best💞

  • @retricaofficial7816
    @retricaofficial7816 4 ปีที่แล้ว

    This concept is really awesome!But,Brother I get NOT NULL constraint failed: store_customer.user_id when i add to cart,I request you to show how to incorporate this code to the previous when you get time.

  • @BO-nn9up
    @BO-nn9up 4 ปีที่แล้ว

    Thank you so much! So useful

  • @anselsolomon6270
    @anselsolomon6270 4 ปีที่แล้ว

    Please how can i keep history in Django after each update, let's say i have items already in my database but each time i update those items, i want to see the history of the old one...please someone should help me...thanks......Nice video Dennis ..thanks man

  • @zhh174
    @zhh174 4 ปีที่แล้ว

    Can you plz make a series on chat app plz?

  • @rameshvadapalliramesh5506
    @rameshvadapalliramesh5506 4 ปีที่แล้ว

    dennis ..make a videos on maps in django

  • @ytdavide
    @ytdavide 4 ปีที่แล้ว

    thanks for what you do 💪👍

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      My pleasure!

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว

    Awesome as always

  • @naheliegend5222
    @naheliegend5222 3 ปีที่แล้ว

    use a context processor for that customer device thing. ;)

  • @tyra8613
    @tyra8613 3 ปีที่แล้ว

    TYSM FOR THIS!!

  • @abdulwadood9484
    @abdulwadood9484 4 ปีที่แล้ว

    bro please make video django practices and website tutorial and practice task

  • @nouchance
    @nouchance 4 ปีที่แล้ว

    Niceeeeeeeeeee bro 🔥👍💪✊ Catch my royal like !

  • @technoinfoworldwide2329
    @technoinfoworldwide2329 4 ปีที่แล้ว

    how to trace users ip,location, by using cookies

  • @devrahul7435
    @devrahul7435 4 ปีที่แล้ว

    Great, thanks for it.

  • @baqirhussein1109
    @baqirhussein1109 3 ปีที่แล้ว

    5:16
    Just a reminder for me.

  • @abdulalinawrozie8070
    @abdulalinawrozie8070 3 ปีที่แล้ว

    Thank You so much

  • @ozislife8527
    @ozislife8527 4 ปีที่แล้ว

    yes, this is really interesting..

  • @alinandrei9006
    @alinandrei9006 4 ปีที่แล้ว

    it would really help a brother up if out of 1,3k viewers at least half would click that like button,

  • @kvnagendra5354
    @kvnagendra5354 4 ปีที่แล้ว +1

    Hey Dennis I've watched ur javascript array of objects sorting table,it works fine for 5-7 rows but not work for more than 7 rows.
    plz explain how does javascript comparator,comapres each value with another.
    That'll give us an idea to implement ours logic.
    Yours video: th-cam.com/video/Q9aYU1Ufkpk/w-d-xo.html

  • @SkyTraderBull
    @SkyTraderBull 4 ปีที่แล้ว

    Hi.. I am aakash from india. I am junior python developer and I lerned from your TH-cam channel. And I want to make you to create video on "how to customise django Admin theme and dashboard view." which is by default in the system package. please help me if possible to do that for you .🙏🙏🙏👍👌👌👌👌👌👌👌

  • @whonayem01
    @whonayem01 3 ปีที่แล้ว

    thanks

  • @teny398
    @teny398 4 ปีที่แล้ว

    💖 U Dennis

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      Much appreciated Teny :)

  • @-engineerbmgroup2726
    @-engineerbmgroup2726 4 ปีที่แล้ว

    good

  • @ammonjerro396
    @ammonjerro396 4 ปีที่แล้ว

    Денис Иванов смотрится хуже, чем Денис Плющ?)

    • @DennisIvy
      @DennisIvy  4 ปีที่แล้ว

      Проще запомнить :)

  • @aleksandr2245
    @aleksandr2245 4 ปีที่แล้ว

    still using var in 2020 +

  • @minimajktobandyta5056
    @minimajktobandyta5056 3 ปีที่แล้ว +1

    ok

  • @sahilkhanna9782
    @sahilkhanna9782 4 ปีที่แล้ว

    Sir waiting for zoom effect on slider

  • @ericbroun4657
    @ericbroun4657 4 ปีที่แล้ว

    Please put subtitles for your words