In Part-207 of the Laravel E-commerce series, we will continue working on Cancel Order functionality.
1) Update orderCancel function:-
We will update orderCancel function to cancel the order and the logs table with "Cancelled" status.
2) Update order_details.blade.php:-
Add success and error message divs at order_details.blade.php file
3) Update orderCancel function :-
Now we will make the "Cancel Order" functionality secure by checking if the user is valid. We are going to compare the user id from Auth with the user id of order. And user id's will not match then we will return to the user orders page with an error message.
Follow the below playlist to make a Laravel E-commerce Website like Amazon:-
https://studio.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/playlists
Join this channel to get complete code/support:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
1) Update orderCancel function:-
We will update orderCancel function to cancel the order and the logs table with "Cancelled" status.
2) Update order_details.blade.php:-
Add success and error message divs at order_details.blade.php file
3) Update orderCancel function :-
Now we will make the "Cancel Order" functionality secure by checking if the user is valid. We are going to compare the user id from Auth with the user id of order. And user id's will not match then we will return to the user orders page with an error message.
Follow the below playlist to make a Laravel E-commerce Website like Amazon:-
https://studio.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/playlists
Join this channel to get complete code/support:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
- Catégories
- E commerce Amazon
Commentaires