cart cpn code

This commit is contained in:
merdan 2023-02-14 11:37:44 +05:00
parent 14c3a1ff11
commit 5cd2b174fd
2 changed files with 3 additions and 1 deletions

View File

@ -243,6 +243,7 @@ class Carts extends CartController
return response([ return response([
'message' => __('rest-api::app.checkout.cart.coupon.remove'), 'message' => __('rest-api::app.checkout.cart.coupon.remove'),
'success' => true,
'cart' => new CartResource(Cart::getCart()) 'cart' => new CartResource(Cart::getCart())
]); ]);

View File

@ -112,7 +112,8 @@ class ProductRepository extends WProductRepository
} }
if(isset($params['discount']) && $params['discount']){ if(isset($params['discount']) && $params['discount']){
$qb->whereNotNull('product_flat.special_price'); $qb->whereNotNull('product_flat.special_price')
->where('product_flat.special_price','>',0);
} }
if (! core()->getConfigData('catalog.products.homepage.out_of_stock_items')) { if (! core()->getConfigData('catalog.products.homepage.out_of_stock_items')) {