提交 7710e7b8 编写于 作者: T Terry

apphtml5 产品属性组属性,在详细信息部分显示

上级 0dba4346
......@@ -128,12 +128,26 @@ class Index
}
$attr = Yii::$service->page->translate->__($attr);
$gArr[$attr] = $attrVal;
} else if (isset($this->_product['attr_group_info']) && is_array($this->_product['attr_group_info'])) {
$attr_group_info = $this->_product['attr_group_info'];
if (isset($attr_group_info[$attr]) && $attr_group_info[$attr]) {
$attrVal = $attr_group_info[$attr];
// get translate
if (isset($info['display']['lang']) && $info['display']['lang'] && is_array($attrVal)) {
$attrVal = Yii::$service->store->getStoreAttrVal($attrVal, $attr);
} else if ($attrVal && !is_array($attrVal)) {
$attrVal = Yii::$service->page->translate->__($attrVal);
}
$attr = Yii::$service->page->translate->__($attr);
$gArr[$attr] = $attrVal;
}
}
}
}
return $gArr;
}
/**
* @param $product_images | Array ,产品的图片属性
* 根据图片数组,得到橱窗图,和描述图
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册