由于很多用户需要加上商品自定义吃寻大小等 如图 
首先在\admin\templates\goods_info.htm里面找到 属性与规格 的位置 发现他调用了{$goods_attr_html}这个页面,
这个函数的定义在\admin\goods.php 的第444行
$smarty->assign('goods_attr_html', build_attr_html($goods['goods_type'], $goods['goods_id']));
然后找build_attr_html这个函数,在\admin\includes\lib_goods.php的675行
在if语句中加上 || $val['attr_type'] == 3
这样就可以在\admin\templates\attribute_info.htm 里面的55行
加入 input type="radio" name="attr_type" value="3" {if $attr.attr_type eq 3} checked="true" {/if} // 自定义属性 然后在添加属性的时候选中这项。
下来在前台即\themes\default\goods.dwt搜”判断属性是复选还是单选“,在循环里加入 |