...
|
...
|
@@ -174,6 +174,11 @@ class ItemModel |
|
|
$virtualGoods = $baseInfo['attribute'] == 3;//虚拟商品
|
|
|
//是否展览票
|
|
|
$goodsInfo['isTicket'] = $goodsInfo['skn'] * 1 === EXHIBITION_TICKET;
|
|
|
$goodsInfo['virtualGoods'] = $virtualGoods;//是否是虚拟商品
|
|
|
if ($goodsInfo['virtualGoods']) {
|
|
|
//是否显示虚拟商品,立即购买按钮
|
|
|
$goodsInfo['isVirtualBtn'] = $soldOut ? false : true;
|
|
|
}
|
|
|
|
|
|
if (!$soldOut && !$notForSale && !$virtualGoods) {
|
|
|
$goodsInfo['addToCart'] = true;
|
...
|
...
|
@@ -196,7 +201,6 @@ class ItemModel |
|
|
else if ($virtualGoods) {
|
|
|
$goodsInfo['buyNow'] = true;//是否立即购买
|
|
|
$goodsInfo['buyNowBase'] = Helpers::url('/ticket', array(), 'shopping');
|
|
|
$goodsInfo['virtualGoods'] = $virtualGoods;
|
|
|
if (isset($goodsInfo['salePrice'])) {
|
|
|
$goodsInfo['advancePrice'] = $goodsInfo['salePrice'];//先行价格
|
|
|
unset($goodsInfo['salePrice']);
|
...
|
...
|
|