In Part-210 of the Laravel E-commerce series, we will continue working on Return Order functionality like Amazon.
In this video, we will update the user order detail page to show the return link and will create the return modal to show the return form almost similar to Amazon.
1) Update return_requests table :-
First of all, we will make one change in the return_requests table. We will replace product_id with the product_size column as we will pass product_code and product_size when the user makes the return request.
2) Update order_details.blade.php file:-
We will create a "Return Order" link button that will be visible only when the order gets delivered.
We will open the Return modal in which we will create the Return form including the option to select a product, the reason for a return like Amazon and comment.
3) Update front_script.js file:-
Add jQuery script to confirm to return the order at front_script.js file.
4) Create Route:-
Create GET/POST route for order return in web.php file like below:-
// User Order Return
Route::match(['get','post'],'/orders/{id}/return','OrdersController@orderReturn');
5) Create orderReturn function :-
Create orderReturn function in which we will add a return request for the ordered product placed by the user.
To be continued...
Join this channel to get complete code/support :
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
In this video, we will update the user order detail page to show the return link and will create the return modal to show the return form almost similar to Amazon.
1) Update return_requests table :-
First of all, we will make one change in the return_requests table. We will replace product_id with the product_size column as we will pass product_code and product_size when the user makes the return request.
2) Update order_details.blade.php file:-
We will create a "Return Order" link button that will be visible only when the order gets delivered.
We will open the Return modal in which we will create the Return form including the option to select a product, the reason for a return like Amazon and comment.
3) Update front_script.js file:-
Add jQuery script to confirm to return the order at front_script.js file.
4) Create Route:-
Create GET/POST route for order return in web.php file like below:-
// User Order Return
Route::match(['get','post'],'/orders/{id}/return','OrdersController@orderReturn');
5) Create orderReturn function :-
Create orderReturn function in which we will add a return request for the ordered product placed by the user.
To be continued...
Join this channel to get complete code/support :
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
- Catégories
- E commerce Amazon
Commentaires