Django Ecommerce Website | Stripe Checkout | Htmx and Tailwind | Part 17

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

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

  • @human-error
    @human-error ปีที่แล้ว +1

    Amazing @CodeWithStein THANKS for your Vids. I like to learn from you because you are very neat in the code, even in the includes :) .
    For those who have errors like Uncaught ReferenceError: buy is not defined, or Stripe is not defined, try to move the javascript code at the begining of the code.

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

      Thanks for the feedback 😁😁

    • @michaelcarnevale5620
      @michaelcarnevale5620 11 หลายเดือนก่อน

      this worked for me when i moved the stripe source script to the of base.html

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

    You're amazing Stein. Thank you very much!

  • @jonnyy123
    @jonnyy123 11 หลายเดือนก่อน +1

    Failed to load resource: the server responded with a status of 404 (Not Found)
    checkout/:227 Errors SyntaxError: Unexpected token '

    • @CodeWithStein
      @CodeWithStein  11 หลายเดือนก่อน

      Hey, then you probably have a typo in your code somewhwre 👍🏻

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

    Why there is no message or alert or any notification when add to cart button is clicked and how we can add it?

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

      Just something i didn’t prioritize. Would love to explain, but it requires more than i can write here 😛

  • @șoimromân7
    @șoimromân7 ปีที่แล้ว +1

    Hi! I have this error 'Uncaught ReferenceError: Stripe is not defined' do you have any idea how can i solve this? Thank You!

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

      Hey, were you able to fix this? It sounds like stripe hasn't been installed on your computer..

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

    Hey Stan! Thank you so much for this Course. It really helpful. I am getting this error checkout page "ReferenceError: Stripe is not defined at buy" kindly assist me. Thanks 🙏

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

    still how many parts can we expect to complete this website??
    And when can we expect the continuous video of this part?

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

      Hey! I have currently planned 20 parts.
      Part 18 will be an extention of part 17 yes. With success page, clearing the cart and similar.
      Part 19 will be a bunch of minor fixes around the page.
      Part 20 will be deployment ;-)

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

      @@CodeWithStein are you planning to add ratings field for the products in the website...??

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

      Yes and no :P I have not planned that for the 20 parts, but maybe as a follow up part...

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

    Thank you for this content, I can't import stripe, "(module) stripe
    Import "stripe" could not be resolved from sourcePylancereportMissingModuleSource" . I installed pip install stripe but also have this problem

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

      Hmm, haven’t seen that error :/ do you use win or Mac?

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

      @@CodeWithStein windows. Now everything is ok :)

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

      @@kote8715 how did you solve this, can you tell me I am facing the same issue.

  • @Lastexpres
    @Lastexpres 2 ปีที่แล้ว +3

    JSONDecodeError at /create/
    Expecting value: line 1 column 1 (char 0)
    data = json.loads(request.body)

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

      Then you probably have a typo somewhere (I don't know where though :P). Try to go back a little bit and make sure that your code is identical to mine :-)

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

      I also get same problem

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

      Airin:
      Then you probably have a typo somewhere (I don't know where though :P). Try to go back a little bit and make sure that your code is identical to mine :-)

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

      For anyone that comes across this in the future, commenting out this line 'console.log(response.json())' resolved this issue for me. Probably not the best solution, but it worked for me.

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

    Uncaught ReferenceError: buy is not defined
    at HTMLButtonElement.onclick . it is define like your code but I do not know how to fix it. could you help me?

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

      Hmm, weird. Are there any more errors? I haven’t seen that before :s

    • @michaelcarnevale5620
      @michaelcarnevale5620 11 หลายเดือนก่อน

      I just ran into this same error
      did you figure out what the problem is?

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

    Hi Stein, great tutorials , i got and error when submit , stripe stripe.error.InvalidRequestError: Request req_nCumCT4ApGP6Ai: Not a valid URL

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

      Hmm, weird. Were you able to solve it?