提交 ebd0ec87 编写于 作者: T Terry

购物车勾选产品功能(appserver)

上级 80312b72
......@@ -25,8 +25,9 @@ use fecshop\app\apphtml5\helper\Format;
</div>
<div class="cart_info">
<div class="cart_select_div">
<input type="checkbox" name="cart_select_all" class="cart_select cart_select_all">
&nbsp;Select All Product
<input id="cart_select_all" type="checkbox" name="cart_select_all" class="cart_select cart_select_all">
&nbsp;
<label for="cart_select_all">Select All Product</label>
</div>
<?php if(is_array($cart_info['products']) && (!empty($cart_info['products']))): ?>
<?php foreach($cart_info['products'] as $product_one): ?>
......
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册