18 - E-Commerce Project with Laravel 10, Livewire 3, Filament 3 & Tailwind CSS

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Hello friends!
    In this video, I'm demonstrating how to display cart items on the cart page, as well as how to show the subtotal and grand total. Additionally, I'll be showing you how to change the quantity of items directly from the cart page and how to remove items from the cart.
    #Laravel #ECommerce #WebDevelopment #ModelsAndMigrations #Livewire #Filament #TailwindCSS
    🔗 Full Playlist: • E-Commerce Project | L...
    **********************************************************
    If you like my works and my video tutorials then you can donate me some amount.
    **********************************************************
    Paypal: www.paypal.me/...
    UPI: sahil4rock@ybl
    **********************************************************
    Thanks for watching this video. If you like this video then hit the like button, share this video, And Subscribe to my Channel. Also, like my Facebook page for the latest updates.
    **********************************************************
    ♥ Website - dcodemania.com
    ♥ Facebook Page - / dcodemania
    ♥ Myself On FB - / sahil4rock
    ♥ Instagram - / sahil4rock
    ♥ Twitter - / dcodemania
    **********************************************************

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

  • @arshalanrawshan4035
    @arshalanrawshan4035 10 месяцев назад +2

    excellent tutorial. waiting for next

  • @inspireofbd
    @inspireofbd 10 месяцев назад +3

    I waiting your next video? please uploade your next video. thank you.💐

    • @DCodeMania
      @DCodeMania  10 месяцев назад

      Next video uploaded

  • @beticohernandez9536
    @beticohernandez9536 10 месяцев назад +3

    Hello.
    I don't understand your language but I'm going with the project.
    Please finish it.

  • @inspireofbd
    @inspireofbd 10 месяцев назад +1

    Nice tutorial 💐💐💐

  • @rajendraparmar1501
    @rajendraparmar1501 10 месяцев назад

    Sirji, Great work!!! Hats off to you, my humble request to you please cover the product variations like(Color, Size), etc if it's possible. waiting for next.

  • @leocincint2149
    @leocincint2149 8 месяцев назад +8

    bug on qty - fix:
    $cart_items[$existing_item]['quantity'] = $qty + $item['quantity'];
    and
    'total_amount' => $product->price * $qty,

    • @wraulcontreras
      @wraulcontreras 3 месяца назад +1

      If I had that mistake, thank you very much, it served me, here it works completely:
      // add item to cart with quantity
      static public function addItemToCartWithQuantity($product_id, $qty = 1)
      {
      $cart_items = self::getCartItemsFromCookie();
      $existing_item = null;
      foreach ($cart_items as $key => $item) {
      if ($item['product_id'] == $product_id) {
      $existing_item = $key;
      break;
      }
      }
      if ($existing_item !== null) {
      $cart_items[$existing_item]['quantity'] = $qty + $item['quantity'];
      $cart_items[$existing_item]['total_amount'] = $cart_items[$existing_item]['quantity'] * $cart_items[$existing_item]['unit_amount'];
      } else {
      $product = Product::where('id', $product_id)->first(['id', 'name', 'price', 'images']);
      if ($product) {
      $cart_items[] = [
      'product_id' => $product_id,
      'name' => $product->name,
      'image' => $product->images[0],
      'quantity' => $qty ,
      'unit_amount' => $product->price,
      'total_amount' => $product->price * $qty
      ];
      }
      }
      self::addCartItemsToCookie($cart_items);
      return count($cart_items);
      }

    • @jungleimpact
      @jungleimpact 3 месяца назад +1

      $cart_items[$existing_item]['quantity'] += $qty;

  • @jesikagurung4465
    @jesikagurung4465 10 месяцев назад +1

    Hello, how are you? Been more than 7 days since you last posted. Hope you are well.

    • @DCodeMania
      @DCodeMania  10 месяцев назад

      Actually I'm sick, that's why I'm not able to record video. But I'll try to upload soon.

    • @jesikagurung4465
      @jesikagurung4465 10 месяцев назад

      @@DCodeMania ohh ok. Hoping for a speedy recovery 🤗

  • @kingpese
    @kingpese 7 месяцев назад

    Hello, i love your tutorial from day one, but i think there's an issue when you add product to cart from the product-detail-page, instead of the total amount to be increased when you add more than one quantity, it remains the same. Kindly check it out. Thanks

  • @amrittimsina3762
    @amrittimsina3762 10 месяцев назад +1

    Having problem installing filament in laravel 11

    • @DCodeMania
      @DCodeMania  10 месяцев назад

      I still not tried Filamentphp 3 with Laravel 11. What exact issue you are facing while installing???