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
Great video, but I would like a video on the attributes of the product(color, width, height, size, and other options)
Yes we need to do, even subcategories system also required
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'subtotal' cannot be null . help me! please
integrity constraint violation 1048 column 'order_id' cannot be null please give a hand..
thank you very much Sir! for great experience
hello dont you get any error of your code from this video ?😢
Thank you sir.
attempt to assign property "product_id" on null please help me
We want to paypal integration video...
profile setting and edit for user
Thank you!
my error :Array to string conversion
please tell a little bit about it sir
is this the last chapter?
No, I will create some more videos on it.
Hello do you have any plan to generate invoice in pdf file
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
Thank you for the vedio sir.. please can you finish the user dashboard too..
I can't redirect cart page to checkout page.
Can anyone help me, please !
I have same issue. How did you solve this ?
@@mdtoufikahamed6612 can U solve it? sir plz I have the same error
@@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
sir, i code like your video step by step, but when i click the place order button, nothing happened, can you help me please
hello please has this issue been fixed for or by you?... if so please share how you fixed it...
@@igatacyril4369 i haven't fixed it yet
@@bungmocuto6701 let me know if you still have this issue. I can help you.
@@mdtoufikahamed6612 hello how did you fix this
@@mdtoufikahamed6612 hello how did you fix this
sir please integrate payment handling like stripe and paypal and ideal pleas pleas pleas pleas pleas pleas
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 !
Sir can please make a tutorial on product sub categories and brand.
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
help me please!!!!
did you solve it
@@thipa_icon9220 Yes but was long time ago i dont remenber how, but my store already working.
Sorry.
do you integrate the PayPal payment method?
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
Sir can please make a tutorial on product sub categories and brand.
Call to undefined method App\Models\Order::tax() ... how to solve this
Minimum cart value functionality please add this series ....
When do you created Orderitems table ? I need code store function for Orderitems
obrigado.
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
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 .
What is an instance(cart)?
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
Hey idot stop to post nonsense, series is really interested, we need to keep follow step by step
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
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
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
?????
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
Did you solve it??
Please tell me sir?
Same error for me, how to solve that?
Please help me 🙏
If i order 1 item it willa redirect to thankyou
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.
When I click checkout btn this is redirect to the home page. Please help me.
When I place order now I get an error:
Class 'app\Models\Order' not found
I checked but still error, please help me
You need to import the order class above
Yes me too but I import order class
@@gaganinawodya3970 poddk e import karapu code eka ewannko
is it possible to host on shared hosting?
the checkout page getting hide while check the ship to different address or clicking the order now button. anybody please help
have u solved this problem? i get the same error, can u help me please?
Undefined constant "message" showing anyone can help
Remember to put the dollar sign before message in the blade.php
Like this {{$message }}
Thank you sir
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
Run the following command
php artisan vendor:publish --provider="Gloudemans\Shoppingcart\ShoppingcartServiceProvider" --tag="config"
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.
trying to access array offset on value of type null, why my checkout component cant read in route, someone please help
Write just like this "Get ('checkout') ['subtotal']"
@@phamthanhlong5243 Trying to access array offset on value of type null
I have the same error can U help me plz
can u solve the problem ?help me plz
help me please if u can solve
hello has anyone solved this error
hi I'm having trouble, when I click the checkout button, I am redirected to homepage,
CHECKOUT
can somebody help me?
@@gemgem6534 close command on
public function render()
{
// $this->verifyForCheckout();
return view('livewire.checkout-component')->layout('layouts.base');
}
when clicking on checkbox the shipping adress format is not showing anybody knows the problem
check your if statement very carefully. you probablly missed something
Same problem any solution
delete all the commented codes in the page
Thanks
How about when I click on the checkbox it shows an error no property found for validation:[0] ?
thank you sir for this lesson . please i getting this error :(Trying to access array offset on value of type null)
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'];
Hello, where you able to solve this error?
@@joshuabognet7745 hello sorry i left it
This error is really frustrating me.. Worse, after coming this far
anyone solved this error?
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
Same Error here, I've been trying to solve it myself but its not yielding still. Please @surfsidemedia Kindly help us out
Go Over the video again and check especially in the cart-component and checkout component . public function render has some ($this->) statements
@@ItzSamdam I don't undertand
@@ItzSamdam hello bro you been solve this error?