Laravel 8 E-Commerce - Checkout With Cash On Delivery

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • In this video I will talk about Checkout With Cash On Delivery.
    TOPIC DISCUSSED:
    Checkout With Cash On Delivery
    Insert Order in Orders Table
    Insert CartItems in OrderItems Table
    Insert Shipping Details in Shippings Table
    Insert Transaction Details in Transactions Table
    Your Queries -
    1.How to checkout with cash on delivery option in laravel 8 ecommerce?
    2.How to insert order details in Orders table in laravel 8 ecommerce?
    3.How to insert CartItems in OrderItems table in laravel 8 ecommerce?
    4.How to insert shopping details in shoppings table in laravel 8 ecommerce?
    5.How to insert transaction details in transactions table in laravel 8 ecommerce?
    6.What are the steps for checkout with cash on delivery option in laravel 8 ecommerce?
    Template Url:
    github.com/sur...
    FOLLOW SURFSIDE MEDIA:
    / surfsidem
    / mediasurfside
    github.com/sur...
    / surfsidemedia
    #laravel #laravel8 #laravel8x

Комментарии • 108

  • @ДенисБочаров-п6в
    @ДенисБочаров-п6в 3 года назад +6

    Great video, but I would like a video on the attributes of the product(color, width, height, size, and other options)

    • @mayank3238
      @mayank3238 3 года назад +3

      Yes we need to do, even subcategories system also required

  • @quangnguyen-cv7jk
    @quangnguyen-cv7jk 3 года назад +1

    SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'subtotal' cannot be null . help me! please

  • @edimarius713
    @edimarius713 2 года назад

    integrity constraint violation 1048 column 'order_id' cannot be null please give a hand..

  • @shreyanshmishra623
    @shreyanshmishra623 2 года назад

    thank you very much Sir! for great experience

    • @musicartcafe7497
      @musicartcafe7497 Год назад

      hello dont you get any error of your code from this video ?😢

  • @saifull313
    @saifull313 3 года назад +1

    Thank you sir.

  • @sulemantaj4638
    @sulemantaj4638 3 года назад

    attempt to assign property "product_id" on null please help me

  • @sklbd3409
    @sklbd3409 3 года назад +1

    We want to paypal integration video...

  • @manarhnezel8571
    @manarhnezel8571 3 года назад +1

    profile setting and edit for user

  • @gadgetkh9408
    @gadgetkh9408 3 года назад

    Thank you!

  • @reachchhoeun1861
    @reachchhoeun1861 3 года назад

    my error :Array to string conversion

  • @currentquestion7
    @currentquestion7 Год назад

    please tell a little bit about it sir

  • @justapasserby445
    @justapasserby445 3 года назад

    is this the last chapter?

    • @SurfsideMedia
      @SurfsideMedia  3 года назад

      No, I will create some more videos on it.

  • @bikashkollolhalder9674
    @bikashkollolhalder9674 3 года назад +4

    Hello do you have any plan to generate invoice in pdf file

  • @mysuccessword
    @mysuccessword 2 года назад +2

    Great job sir. Pls I have some errors. When I click on the place order button in check out page, I got this error:
    Undefined index: discount but when I comment the line of code and submit it, it work fine
    Second error, But when I tick on ship to a different address and I fill all the details and submit the form, the page will not redirect me to thank you page, it will remain same position without redirecting.
    If I didn't fill the shipping to different address and I comment the discount line of code, it will working fine.
    Any body can help me to solve pls thanks.
    @Surfside Media
    pls help

  • @Xlrb102
    @Xlrb102 3 года назад +3

    Thank you for the vedio sir.. please can you finish the user dashboard too..

  • @quangnguyen-cv7jk
    @quangnguyen-cv7jk 3 года назад +3

    I can't redirect cart page to checkout page.
    Can anyone help me, please !

    • @mdtoufikahamed6612
      @mdtoufikahamed6612 2 года назад

      I have same issue. How did you solve this ?

    • @pyaesonephyo4599
      @pyaesonephyo4599 2 года назад

      @@mdtoufikahamed6612 can U solve it? sir plz I have the same error

    • @joshuabognet7745
      @joshuabognet7745 2 года назад +1

      @@pyaesonephyo4599 public function verifyForCheckout()
      {
      if (!Auth::check()) {
      return redirect()->route('login');
      } else if ($this->thankyou) {
      return redirect()->route('thankyou');
      }
      else //if(!session()->get('checkout'))
      {
      return redirect()->route('product.cart');
      }//
      }
      comment or remove the part i commented

  • @bungmocuto6701
    @bungmocuto6701 3 года назад +3

    sir, i code like your video step by step, but when i click the place order button, nothing happened, can you help me please

    • @igatacyril4369
      @igatacyril4369 3 года назад

      hello please has this issue been fixed for or by you?... if so please share how you fixed it...

    • @bungmocuto6701
      @bungmocuto6701 3 года назад

      @@igatacyril4369 i haven't fixed it yet

    • @mdtoufikahamed6612
      @mdtoufikahamed6612 2 года назад

      @@bungmocuto6701 let me know if you still have this issue. I can help you.

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      @@mdtoufikahamed6612 hello how did you fix this

    • @vivekp5458
      @vivekp5458 2 года назад

      @@mdtoufikahamed6612 hello how did you fix this

  • @manarhnezel8571
    @manarhnezel8571 3 года назад +2

    sir please integrate payment handling like stripe and paypal and ideal pleas pleas pleas pleas pleas pleas

  • @mackyrivera6080
    @mackyrivera6080 2 года назад +1

    When I successfully checkout, I logout and then Login again but the products that I checked-out is still there. Please notice this problem Sir !

  • @mohammadshahabuddin6944
    @mohammadshahabuddin6944 3 года назад +2

    Sir can please make a tutorial on product sub categories and brand.

  • @pedrovictor8188
    @pedrovictor8188 2 года назад +1

    SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
    help me please!!!!

    • @thipa_icon9220
      @thipa_icon9220 Год назад

      did you solve it

    • @pedrovictor8188
      @pedrovictor8188 Год назад

      @@thipa_icon9220 Yes but was long time ago i dont remenber how, but my store already working.
      Sorry.

  • @mithu_das
    @mithu_das 3 года назад +2

    do you integrate the PayPal payment method?

  • @kangjie1272
    @kangjie1272 Год назад

    when i click the place order button, nothing happened no error message as well, the "place order now" or the webpage is not recording the input that's what i assume. so is anyone here have a solution for this issue please help. thank you

  • @mohammadshahabuddin6944
    @mohammadshahabuddin6944 3 года назад +1

    Sir can please make a tutorial on product sub categories and brand.

  • @thipa_icon9220
    @thipa_icon9220 Год назад

    Call to undefined method App\Models\Order::tax() ... how to solve this

  • @pradeepkushwaha788
    @pradeepkushwaha788 3 года назад +1

    Minimum cart value functionality please add this series ....

  • @yannaing6295
    @yannaing6295 Год назад

    When do you created Orderitems table ? I need code store function for Orderitems

  • @marcenariadigital
    @marcenariadigital Год назад

    obrigado.

  • @currentquestion7
    @currentquestion7 Год назад

    Hello sir, I am watching this video series of yours, there is a problem in my code of this video. ..... whenever a product add to cart and click on checkout button it is redirecting to the cart page itself where could be the problem sir

    • @RahmaQarabash
      @RahmaQarabash Год назад

      Try to put this codes in end of base.blade file "
      $(document).ready(function () {
      window.livewire.start();
      });
      @livewireScripts
      @stack('scripts') " that was helpful in my case .

  • @zahilman1744
    @zahilman1744 Год назад

    What is an instance(cart)?

  • @AlphaSlyer87
    @AlphaSlyer87 3 года назад +4

    Can you tell us how many video remain in this series I have been following your series since November last year everything is good but it’s taking almost half year 😒 & still not complete 😌 i hope you will complete this series soon as possible Thanks for series

    • @mayank3238
      @mayank3238 3 года назад +4

      Hey idot stop to post nonsense, series is really interested, we need to keep follow step by step

    • @opahprincewill4103
      @opahprincewill4103 3 года назад +8

      he is adding so much interesting and real world features. this series is by far the best i have seen. its even better than those paid courses. you should know he is not superman. he has to learn these features, understands it then present it to us. he is really doing a great job here

  • @dishabhalodiya3336
    @dishabhalodiya3336 2 года назад

    ErrorException
    Use of undefined constant order_items - assumed 'order_items' (this will throw an Error in a future version of PHP)
    How to solve This Error

  • @AhmedIbrahim-qd9xc
    @AhmedIbrahim-qd9xc 3 года назад

    thank you for this course
    help pleas Yesterday I was working and the project was working right today when I started to complete with me a problem every time I try to enter the boil of any admin products or category it turns me to the login page every time after enter it and when to go home slider turn me again
    ?????

  • @syaifulfitrawan100
    @syaifulfitrawan100 3 года назад +1

    I have 1 problem sir, " SQLSTATE[01000]: Warning: 1265 Data truncated for column 'subtotal' at row 1 " how can i solve this problem thank you

  • @artemdeveloper7304
    @artemdeveloper7304 3 года назад

    Thanks for the video. In this lesson, you also need to add a check before writing to the database. Otherwise, if a non-core field or a missing order and order_item record is duplicated.

  • @md.tofaelahmed8012
    @md.tofaelahmed8012 2 года назад

    When I click checkout btn this is redirect to the home page. Please help me.

  • @livetv20248
    @livetv20248 3 года назад

    When I place order now I get an error:
    Class 'app\Models\Order' not found
    I checked but still error, please help me

  • @jishavinod
    @jishavinod 2 года назад

    is it possible to host on shared hosting?

  • @jyothibabu8379
    @jyothibabu8379 2 года назад

    the checkout page getting hide while check the ship to different address or clicking the order now button. anybody please help

    • @sondangtesla4332
      @sondangtesla4332 Год назад

      have u solved this problem? i get the same error, can u help me please?

  • @kvkumar9686
    @kvkumar9686 2 года назад

    Undefined constant "message" showing anyone can help

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      Remember to put the dollar sign before message in the blade.php
      Like this {{$message }}

  • @shashithasandunil9464
    @shashithasandunil9464 3 года назад

    Thank you sir

  • @mayank3238
    @mayank3238 3 года назад

    Hi, I used to configure hardvien Goldman shopping cart, but I m not getting cart.php file in config folder , can you guide me how we can get it , I need to tax related settings there

    • @muhammedsalama5760
      @muhammedsalama5760 3 года назад +1

      Run the following command
      php artisan vendor:publish --provider="Gloudemans\Shoppingcart\ShoppingcartServiceProvider" --tag="config"

    • @p.y.thangam7332
      @p.y.thangam7332 3 года назад

      php artisan vendor:publish --provider="Gloudemans\Shoppingcart\ShoppingcartServiceProvider" --tag="config"
      This will give you a cart.php config file in which you can make the changes.

  • @agiistira2739
    @agiistira2739 2 года назад

    trying to access array offset on value of type null, why my checkout component cant read in route, someone please help

    • @phamthanhlong5243
      @phamthanhlong5243 2 года назад

      Write just like this "Get ('checkout') ['subtotal']"

    • @pyaesonephyo4599
      @pyaesonephyo4599 2 года назад

      @@phamthanhlong5243 Trying to access array offset on value of type null
      I have the same error can U help me plz

    • @pyaesonephyo4599
      @pyaesonephyo4599 2 года назад

      can u solve the problem ?help me plz

    • @pyaesonephyo4599
      @pyaesonephyo4599 2 года назад

      help me please if u can solve

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      hello has anyone solved this error

  • @gemgem6534
    @gemgem6534 3 года назад

    hi I'm having trouble, when I click the checkout button, I am redirected to homepage,
    CHECKOUT

    • @gemgem6534
      @gemgem6534 3 года назад

      can somebody help me?

    • @pyaesonephyo4599
      @pyaesonephyo4599 2 года назад +1

      @@gemgem6534 close command on
      public function render()
      {
      // $this->verifyForCheckout();
      return view('livewire.checkout-component')->layout('layouts.base');
      }

  • @vivekp5458
    @vivekp5458 2 года назад

    when clicking on checkbox the shipping adress format is not showing anybody knows the problem

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      check your if statement very carefully. you probablly missed something

    • @MegaMagezi
      @MegaMagezi 2 года назад

      Same problem any solution

    • @vivekp5458
      @vivekp5458 2 года назад

      delete all the commented codes in the page

    • @MegaMagezi
      @MegaMagezi 2 года назад

      Thanks

    • @MegaMagezi
      @MegaMagezi 2 года назад

      How about when I click on the checkbox it shows an error no property found for validation:[0] ?

  • @abdoulayediallo4065
    @abdoulayediallo4065 2 года назад

    thank you sir for this lesson . please i getting this error :(Trying to access array offset on value of type null)

    • @abdoulayediallo4065
      @abdoulayediallo4065 2 года назад

      insde $order = new Order();
      $order->user_id = Auth::user()->id;
      $order->subtotal = session()->get('checkout')['subtotal'];
      $order->discount = session()->get('checkout')['discount'];
      $order->tax = session()->get('checkout')['tax'];
      $order->total = session()->get('checkout')['total'];

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      Hello, where you able to solve this error?

    • @abdoulayediallo4065
      @abdoulayediallo4065 2 года назад

      @@joshuabognet7745 hello sorry i left it

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      This error is really frustrating me.. Worse, after coming this far

    • @musicartcafe7497
      @musicartcafe7497 Год назад

      anyone solved this error?

  • @ferdoushasan5770
    @ferdoushasan5770 3 года назад

    I found a error, even I make all the steps right, plz can you tell me how I can resolve the problem?
    Undefined array key "total"
    @if(Session::has('checkout'))
    Grand Total ${{ Session::get('checkout')['total']}}
    @endif

    • @ItzSamdam
      @ItzSamdam 3 года назад

      Same Error here, I've been trying to solve it myself but its not yielding still. Please @surfsidemedia Kindly help us out

    • @ItzSamdam
      @ItzSamdam 3 года назад

      Go Over the video again and check especially in the cart-component and checkout component . public function render has some ($this->) statements

    • @jeremyyeo3227
      @jeremyyeo3227 3 года назад

      @@ItzSamdam I don't undertand

    • @joshuabognet7745
      @joshuabognet7745 2 года назад

      @@ItzSamdam hello bro you been solve this error?