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
**********************************************************
excellent tutorial. waiting for next
I waiting your next video? please uploade your next video. thank you.💐
Next video uploaded
Hello.
I don't understand your language but I'm going with the project.
Please finish it.
Nice tutorial 💐💐💐
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.
bug on qty - fix:
$cart_items[$existing_item]['quantity'] = $qty + $item['quantity'];
and
'total_amount' => $product->price * $qty,
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);
}
$cart_items[$existing_item]['quantity'] += $qty;
Hello, how are you? Been more than 7 days since you last posted. Hope you are well.
Actually I'm sick, that's why I'm not able to record video. But I'll try to upload soon.
@@DCodeMania ohh ok. Hoping for a speedy recovery 🤗
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
Having problem installing filament in laravel 11
I still not tried Filamentphp 3 with Laravel 11. What exact issue you are facing while installing???