discounted configurables

This commit is contained in:
merdan 2022-04-23 17:55:18 +05:00
parent 15ac098e38
commit 0ba3240447
6 changed files with 64 additions and 7 deletions

View File

@ -61,7 +61,7 @@ class Carts extends CartController
return response([
'data' => $cart ? new CartResource($cart) : null,
'message' => __('rest-api::app.checkout.cart.item.success'),
'message' => __('sarga-api::app.cart.item.success'),
]);
} catch (Exception $e) {
return response([
@ -87,7 +87,7 @@ class Carts extends CartController
foreach ($request->qty as $qty) {
if ($qty <= 0) {
return response([
'message' => __('rest-api::app.checkout.cart.quantity.illegal'),
'message' => __('sarga-api::app.cart.quantity.illegal'),
], 400);
}
}
@ -108,7 +108,7 @@ class Carts extends CartController
return response([
'data' => $cart ? new CartResource($cart) : null,
'message' => __('rest-api::app.checkout.cart.quantity.success'),
'message' => __('sarga-api::app.cart.quantity.success'),
]);
}
@ -132,7 +132,7 @@ class Carts extends CartController
return response([
'data' => $cart ? new CartResource($cart) : null,
'message' => __('rest-api::app.checkout.cart.item.success'),
'message' => __('sarga-api::app.cart.item.success-remove'),
]);
}
@ -153,7 +153,7 @@ class Carts extends CartController
return response([
'data' => $cart ? new CartResource($cart) : null,
'message' => __('rest-api::app.checkout.cart.item.success-remove'),
'message' => __('sarga-api::app.cart.item.success-remove-all'),
]);
}

View File

@ -48,7 +48,7 @@ class Wishlists extends WishlistController
return response([
'data' => null,
'message' => 'Item removed from wishlist successfully.',
'message' => __('sarga-api::app.wishlist.success-remove'),
]);
}
@ -60,7 +60,7 @@ class Wishlists extends WishlistController
return response([
'data' => new WishListResource($wishlistItem),
'message' => __('rest-api::app.common-response.success.add', ['name' => 'Wishlist']),
'message' => __('sarga-api::app.wishlist.success-add'),
]);
}

View File

@ -69,4 +69,20 @@ return [
'customer-not-notified' => ':date | Customer <b>Not Notified</b>',
'transactions' => 'Transactions',
],
'cart'=>[
'item'=>[
'success' => 'Successfully added to cart',
'success-remove' => 'Successfully removed from cart',
'success-remove-all' => 'Successfully removed all items from cart',
],
'quantity' =>[
'illegal'=>'Quantity not available',
'success' => 'Successfully updated quantity'
]
],
'wishlist'=>[
'success-remove' => 'Successfully removed from wishlist',
'success-add' => 'Successfully added to wishlist',
]
];

View File

@ -22,4 +22,20 @@ return [
'order-status-success' => 'Завершено',
],
'cart'=>[
'item'=>[
'success' => 'Успешно добавлено в корзину',
'success-remove' => 'Успешно удалено из корзины',
'success-remove-all' => 'Успешно удалены все товары из корзины'
],
'quantity' =>[
'illegal'=>'Количество недоступно',
'success' => 'Количество обновлено'
]
],
'wishlist'=>[
'success-remove' => 'Успешно удалено из списка желаний',
'success-add' => 'Успешно добавлено в список желаний',
]
];

View File

@ -22,4 +22,19 @@ return [
'order-status-success' => 'Tamamlandy',
],
'cart'=>[
'item'=>[
'success' => 'Sebede goşuldy',
'success-remove' => 'Sebetden aýryldy',
'success-remove-all' => 'Ählisi sebetden aýryldy'
],
'quantity' =>[
'illegal'=>'Mukdar elýeterli däl',
'success' => 'Mukdar üýtgedildi'
]
],
'wishlist'=>[
'success-remove' => 'Halanlarymdan aýryldy',
'success-add' => 'Halanlaryma goşuldy',
]
];

View File

@ -22,4 +22,14 @@ return[
'order-status-success' => 'Tamamlandy',
],
'cart'=>[
'item'=>[
'success' => 'Successfully added to cart',
'success-remove' => 'Successfully removed from cart',
],
'quantity' =>[
'illegal'=>'Quantity not available',
'success' => 'Successfully updated quantity'
]
]
];