Menu
About LCS
Projects - Mini Ecommerce
Tips and posts related to ecommerce
Deleting and searching order data - crud of orders
Step 01: In OrderController, adding destroy() method public function destroy( Order $order ) { $order->order_items->each->delete(); $order->delete(); $redirectTo = session()->get('submit_redirect'); if(...
Category:
Projects
3 years ago
Adding total price calculation of an order item for an order - cruds of order
In this previous post where order addition tutorial was posted we have not implemented one step where we created a...
Category:
Projects
3 years ago
Listing rows of order items - crud
Step 01: Setting up web.php in routes for order_item resource and also moving out calculateOrderPrice ( which we implemented in...
Category:
Projects
3 years ago
Adding order item for an order - cruds of order item
Step 01: Adding create() method inside OrderItemController.php fetching query string orderId with request->query object public function create( Request $request )...
Category:
Projects
3 years ago
Editing and deleting order item data with some code optimization - crud of order items
Step 01: In OrderItemController, adding edit() method public function edit( OrderItem $order_item ) { $order_item->load(['order','product','fwidth','profile']); $meta_title = 'Edit Order '...
Category:
Projects
3 years ago
Adding additional requests with ajax in modal in item preivew list of order items - cruds of order items
Step 01: In preview.blade.php changing inside element of td where link is added with class 'additional-request-link' so that it can...
Category:
Projects
3 years ago
Adding pdf download for an order with all its items
Step 01: Adding routes for exporting pdf inside auth middleware // so whole auth routes will be like below Route::group(['middleware'=>...
Category:
Projects
3 years ago
Sending an email to admin about a order with all its item
Step 01: Adding routes for emailing order inside auth middleware in web.php inside routes folder Route::group(['middleware'=> [ 'auth']], function() { ...
Category:
Projects
3 years ago
‹
1
2
3
4
›