Laravel 8 E-Commerce - Cart Settings for Checkout

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • In this video I will talk about Cart Settings for Checkout.
    TOPIC DISCUSSED:
    Cart Settings for Checkout
    Send Cart Price to Checkout
    Your Queries -
    1.How to do cart settings for checkout in laravel 8 ecommerce?
    2.How to send cart price on checkout page in laravel 8 ecommerce?
    3.What are the steps for doing cart settings for checkout in laravel 8 ecommerce?
    4.What are the steps for sending cart price to checkout in laravel 8 ecommerce?
    Template Url:
    github.com/sur...
    FOLLOW SURFSIDE MEDIA:
    / surfsidem
    / mediasurfside
    github.com/sur...
    / surfsidemedia
    #laravel #laravel8 #laravel8x

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

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

    Symfony\Component\Routing\Exception\RouteNotFoundException
    Route [checkout] not defined. are me the only one have this problem

    • @ariescage3940
      @ariescage3940 3 года назад +9

      Route::get('/checkout', CheckoutComponent::class)->name('checkout');

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

      @@ariescage3940 i do it and not solve with me

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

      Thanks a lot i fix it with this code

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

    Thanks you, can you please show how to integrate Payfast payment gateway on this project?

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

    Thank you!

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

    anyone here had this kind of issue, where in the cart page is displaying "your cart is empty" which means my cart is empty and when i click "shop now" to add product to cart, eventually it will display the product i added but here comes the issue it will still show me "your cart is empty".
    which means it's not tracking the product to cart am i right ?
    someone please help. thank you
    @surfsideMedia

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

      @if(Cart::instance('cart')->count() > 0)

      @if(Session::has('success_message'))

      Success {{Session::get('success_message')}}

      @endif
      @if(Cart::instance('cart')->count() > 0)
      Products Name

      @foreach (Cart::instance('cart')->content() as $item)





      {{ $item->model->name }}


      {{ $item->model->regular_price }}









      {{ $item->subtotal }}



      Delete from your cart




      @endforeach

      @else
      No item in Cart
      @endif



      Order Summary
      Subtotal$ {{ Cart::instance('cart')->subtotal() }}
      Tax$ {{ Cart::instance('cart')->tax() }}
      ShippingFree Shipping
      Total{{ Cart::instance('cart')->total() }}



      I have
      promo code

      Check out
      Continue Shopping


      Clear Shopping Cart
      Update Shopping Cart


      @else

      Your Cart is Empty!
      Add item to it now
      Shop Now

      @endif

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

      same problem ..did you manage to solve it?

  • @afitahabdi6418
    @afitahabdi6418 2 года назад +14

    if you have this problem Route [checkout] not defined.
    then add ->name('checkout'); in the web.php file
    line ----------------------------------
    Route::get('/checkout', CheckoutComponent::class)->name('checkout');

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

    Symfony\Component\Routing\Exception\RouteNotFoundException
    Route [checkout] not defined. are me the only one have this problem
    @Surfside Media Please

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

      i make this
      public function checkout() {
      if (Auth::check())
      {
      return redirect()->to('/checkout');
      }
      else {
      return redirect()->route('login');
      }
      }
      redirect()->to(url)

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

      @@AhmedIbrahim-qd9xc thanks and God bless

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

      @@fredfrank9408 and you

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

    to acompanhando desde o primeiro vídeo, top demais as explicações, os ensinamentos, a palavra aqui é GRATIDÃO!!!!

  • @md.nomanparvej6604
    @md.nomanparvej6604 3 года назад +1

    How to add delivery charge order summary

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

    thanks you..waiting for next videos

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

    you are amazing keeppppp it up brother

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

    Excellent it worked for me from Colombia a big greeting.
    When you finish your project how to upload it to the web?

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

    Sir can you update your github please? There are few errors we are facing.

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

    thanks bro.. waiting for next tutorial.

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

    How to remove tax

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

    Thank you!

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

    Hello sir, can you make a tutorial for product subcategories and brands? That will be very helpful

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

      The brands would be similar to the categories, create the components, copy the category code and change some things and that's it.

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

    public function checkout()
    {
    if (Auth::check()) {
    return redirect()->route('checkout');
    } else {
    return redirect()->route('login');
    }
    }
    I have that problem when pressing the checkout button it sends me to the login normally but being logged in it must send me to the checkout, I get this error:
    Route [checkout] not defined.
    Any file name I put and it is always the same error, if someone can help me.

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

      in web.php change this :
      Route::get('/checkout',CheckoutComponent::class);
      To this :
      Route::get('/checkout',CheckoutComponent::class)->name('checkout');

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

      @@Besk1326 thank you

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

    Hi master, How to add the cart and wishlist on database?

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

      like as cart item order, order_item

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

    A user might log out from the website. So, when the user has logged in to the website again the user will not get the cart items because it saves the value in the session. can you fix it?

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

    Sir am in this video now but I have not Seen where you created the checkout form, where can I find it Sir, please.

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

      I have created Checkout Form in 2nd video of Laravel 8 E-Commerce Playlist which title is "Laravel 8 E-Commerce - Create Shop, Cart And Checkout Page".

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

      @@SurfsideMedia thank you very much for the response Sir

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

      @@SurfsideMedia am trying to apply coupon and all the coupons are showing"coupon is invalid"

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

    I created checkout page and route. but while I click on checkout button it says Rout[checkout] not defined. Please help me anyone

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

      i have same problem

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

      I have same problem too how to fix please help teacher

    • @silienfleuriot1228
      @silienfleuriot1228 2 года назад +5

      Route::get('/checkout', CheckoutComponent::class)->name('checkout');

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

      @@adenbagja4211 I solved this issue but I forget how I solved it months ago. let me know if you still have this problem.

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

    plzz help me..livewire counter for each product....quantity add to cart.....i made but the isssue is ..when inceament all product of counter increase...any solution plzz