diff --git a/app/apphtml5/theme/base/html5/checkout/cart/index.php b/app/apphtml5/theme/base/html5/checkout/cart/index.php index e3141b4e811bd44e5a2173a1810a9b0b7803f241..17a018d9151f55cd050fe94d66f6bc662233705e 100644 --- a/app/apphtml5/theme/base/html5/checkout/cart/index.php +++ b/app/apphtml5/theme/base/html5/checkout/cart/index.php @@ -25,8 +25,9 @@ use fecshop\app\apphtml5\helper\Format;
- -  Select All Product + +   +
diff --git a/app/appserver/modules/Checkout/controllers/CartController.php b/app/appserver/modules/Checkout/controllers/CartController.php index 24c0665863781aac3f14f2ce92dce44dc75307bd..bd6cc8a270cdafd6e185c568384025a9e40dcd08 100644 --- a/app/appserver/modules/Checkout/controllers/CartController.php +++ b/app/appserver/modules/Checkout/controllers/CartController.php @@ -24,8 +24,10 @@ class CartController extends AppserverController } $currency_info = Yii::$service->page->currency->getCurrencyInfo(); $code = Yii::$service->helper->appserver->status_success; + $cart_info = $this->getCartInfo(false); + $data = [ - 'cart_info' => $this->getCartInfo(false), + 'cart_info' => $cart_info, 'currency' => $currency_info, ]; $reponseData = Yii::$service->helper->appserver->getReponseData($code, $data); @@ -85,6 +87,8 @@ class CartController extends AppserverController if ($custom_option_image) { $cart_info['products'][$k]['img_url'] = Yii::$service->product->image->getResize($custom_option_image,[150,150],false); } + $activeStatus = Yii::$service->cart->quoteItem->activeStatus; + $cart_info['products'][$k]['active'] = ($product_one['active'] == $activeStatus) ? 1 : 0; } }