商品组合

2016-07-07 15:02 来源:www.chinab4c.com 作者:ecshop专家

刚利用ECSHOP属性,修改了大量代码,终于做出跟红孩子网站里的商品组合一样的功能了,但是ECSHOP的反馈提示还有问题,太多了,谁有那几行代码的详细说明

if ($_CFG['cart_confirm'] > 2)
{
$result['message'] = '';
}
else
{
$result['message'] = $_CFG['cart_confirm'] == 1 ? $_LANG['addto_cart_success_1'] : $_LANG['addto_cart_success_2'];
}

$result['content'] = insert_cart_info();
$result['one_step_buy'] = $_CFG['one_step_buy'];
}
else
{
$result['message']= $err->last_message();
$result['error'] = $err->error_no;
$result['goods_id'] = stripslashes($goods->goods_id);
if (is_array($goods->spec))
{
$result['product_spec'] = implode(',', $goods->spec);
}
else
{
$result['product_spec'] = $goods->spec;
}
}

回答:
这个就是返回属性...选择.