cart cpn code
This commit is contained in:
parent
14c3a1ff11
commit
5cd2b174fd
|
|
@ -243,6 +243,7 @@ class Carts extends CartController
|
|||
|
||||
return response([
|
||||
'message' => __('rest-api::app.checkout.cart.coupon.remove'),
|
||||
'success' => true,
|
||||
'cart' => new CartResource(Cart::getCart())
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,8 @@ class ProductRepository extends WProductRepository
|
|||
}
|
||||
|
||||
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')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue