21:34 in the order view page it only shows single product not two. I did the relationship and it is working fine. any solutions??
@nandopookey9195 Жыл бұрын
Thank you so much sir
@hasanabdiali89153 жыл бұрын
Thanks sir
@minhangquang11442 жыл бұрын
I have searched the whole series but haven't found anything. Can you clarify the placeorder functions sir? In short, is this series complete?
@m_artistry76962 жыл бұрын
Sir my belongsTo relationship is not working its saying App\Models\belongsTo\Product not found
@blendonfantonidasilva22282 жыл бұрын
I have an error 404 not found problem when I press to see my orders view. Would you help me ?
@SharmaCoder2 жыл бұрын
You must have made a spelling mistake while calling the url.. just copy the url from the web.php and paste it in the a tag.
@blendonfantonidasilva22282 жыл бұрын
@@SharmaCoder the view-order that is not working sir. I've reviewed the code more than 5 times and I didn't find anything wrong sir 😭😭😭
@SharmaCoder2 жыл бұрын
Did you solve it?? I just noticed one small part is missing from the video. I have written the corrections in the description.
@DaudiNungwana2 жыл бұрын
@@SharmaCoder thanks... am following you on these tutorials
@najsw Жыл бұрын
Hi, sir! Can this project register and login for multiple user ?
@SharmaCoder Жыл бұрын
Yes
@RomuloDavidValerio9 ай бұрын
hello can you help the total_price to store and display the price
@geomelpatrickgako5992 жыл бұрын
Hello sir I've got this error (Attempt to read property "orderitems" on null) in view-order yet my order_table has a record init.
@SharmaCoder2 жыл бұрын
Just check if you have given the right column names and conditions in the query builder. You can also try dd() to check what data you have in your variable.
@joshdevofficial2 жыл бұрын
sir, where am I gonna import this class? Class "Illuminate\Database\Eloquent\Factories\Product" not found (View: C:\xampp\htdocs\ecom-2 esources\views\frontend\orders\view.blade.php)
@Jannat-ul-Mawa2 жыл бұрын
In the product view page only a single ordered product is shown rather than all the ordered products of the same user ... I have also used the hasMany relationship in the model and use foreach loop in the view page...kindly guide me now what to do to show all the products of the same user
@shubhamborate63742 жыл бұрын
Same problem
@bhupendrabalapure94802 жыл бұрын
Hello sir, {{ $item->products->name }} some time this code works sometime not .please give the solution sir.
@umranjabbar38532 жыл бұрын
how i directly redirct to the order view page after placing order
@joshdevofficial2 жыл бұрын
help me sir please, how can i fix this? Class "Illuminate\Database\Eloquent\Factories\Product" not found (View: C:\xampp\htdocs\ecom-2 esources\views\frontend\orders\view.blade.php)
@deeputiwari53522 жыл бұрын
public function products(){ return $this->belongsTo(product::Class,'prod_id','id'); } Try this code on orderItem.php in Model Instaed on this public function products():BelongsTo{ return $this->belongsTo(product::Class,'prod_id','id'); }
@blendonsilva93452 жыл бұрын
I have a 404 error problem | NOT FOUND. when trying to load the view-orders page. Can someone help me ?
@SharmaCoder2 жыл бұрын
Show me your code.. the tag and the Route..
@SharmaCoder2 жыл бұрын
Check the video description.
@nament2839 Жыл бұрын
@csrf
@najsw Жыл бұрын
@@nament2839 thank you ahahhaha
@kerynwong60792 жыл бұрын
Hi, How do you declare total_price in CheckoutController? I believe that’s not declare like this $order->total_price = $request->input(‘total_price’)
@SharmaCoder2 жыл бұрын
Are you sure you've commented on the right video?
@kerynwong60792 жыл бұрын
@@SharmaCoder because last video sir you have missed to add the total price into db. I was thought this video have guide to insert for the total price :) so proceed to checkout must display the total price of all the items and how the total price can be insert into db? I need help sir please 🙏
@SharmaCoder2 жыл бұрын
Oh i remember. Just check out this video and also the video description kzbin.info/www/bejne/i6ivdIWVfserj5o
@SharmaCoder2 жыл бұрын
And to answer your previous question of taking the total price by $request->input(total_price). If you do it this way, you are taking the value from the frontend. User can inspect and change the value to a lesser amount or even 0. So when you take the total_price by $request->input(total_price), then you will get the value from the frontend (which might be changed anytime by the user). So everything has to be processed in the backend code. Frontend is only to display data to users. I hope your doubt is cleared.
@kerynwong60792 жыл бұрын
@@SharmaCoder oh thank you sir for your explanation🙏🙏 You are so kind😭
@umranjabbar38532 жыл бұрын
why you dont make any kind of foreign relation in database
@jayanaeverything1242 жыл бұрын
Hi dear please help me, failed to load the resources of view-order, 404 | Not Found, how to solve it problem
@SharmaCoder2 жыл бұрын
Check the description for corrections.. i had missed to show few things in the video.
@jayanaeverything1242 жыл бұрын
@@SharmaCoder alright then thank you
@djarolaravel83413 жыл бұрын
Please need a help how did you declare total_price in database migrations $table-> string ('total_price');
@SharmaCoder3 жыл бұрын
Yes $table->string('total_price'); ..and just add that field in your database table manually incase you have already migrated the table.
@djarolaravel83413 жыл бұрын
@@SharmaCoder default value is it null or not because I can't recover the total price Always display 0
@SharmaCoder3 жыл бұрын
It will not be nullable.. bcz when ever the order is placed there will obviously be some amount. So we are not keeping it as nullable
@djarolaravel83413 жыл бұрын
@@SharmaCoder thank you so much sir it works
@easytechbangla15102 жыл бұрын
How add grand total amount in word? Indian ruppe INR
@rafaeldebarrossilva5842 Жыл бұрын
Hello guys. How are you? Someone who took this course, could you make it available through git-hub, in another way you prefer or send it to me? I'm completing this course and I'm having difficulties in some parts. Through this course I'm finishing my course conclusion work, if all goes well I'll graduate now in December. So I desperately need help. Could anyone help me on this one?
@almahmudalif71023 жыл бұрын
Sir could you plz tell me how many videos are left to finish this project???
@aymanabuharbid17083 жыл бұрын
where is the relationship between orderItem and product
@mohammadkiani72972 жыл бұрын
hi orderItem.php public function products() { return $this->belongsTo(Prouduct::class,'prod_id','id'); }