<{input type="hidden" name="id" value=$rule.id }>

促销规则

*<{t}>规则名称:<{/t}> <{$rule.title}>
*<{t}>规则类型:<{/t}> <{assign var="rule_type_arr" value=array('shopLevel'=>'店铺级','goodLevel'=>'商品级')}>  此项必选  <{help}><{t}>店铺级:以前端店铺为单位实施此赠品规则。商品级:以订单中的商品为单位实施此赠品规则。<{/t}><{/help}>
*<{t}>是否排他:<{/t}>       <{help}><{t}> 说明:1.规则是以优先级由高到低、创建时间由新到旧的顺序来逐一匹配。2.会先匹配店铺级规则,再匹配商品级规则。3.选择“是”就是排他,匹配此规则的话,就不再匹配其他的规则。选择“否”就是不排他,匹配此规则的话,就看是否有匹配的其他规则,如有并且此规则本身也是不排他的做叠加处理。 <{/t}><{/help}>
*<{t}>起止时间:<{/t}> <{input id="start_time" size="30" type='date' name='start_time' value=$rule.start_time vtype="required" }> <{input type='select' name='start_time_hour' value=$rule.start_time_hour vtype="required" options=$conf_hours }> :00:00 到 <{input id="end_time" size="30" type='date' name='end_time' value=$rule.end_time vtype="required" }> <{input type='select' name='end_time_hour' value=$rule.end_time_hour vtype="required" options=$conf_hours }> :00:00
*<{t}>时间类型:<{/t}> <{assign var="opt" value=array('sendtime'=>'订单处理时间','createtime'=>'订单创建时间','pay_time'=>'订单付款时间')}> <{input type="select" id="time_type" name="time_type" options=$opt value=$rule.time_type}>
*<{t}>状  态:<{/t}>   

促销条件

<{t}>指定店铺:<{/t}> <{foreach from=$shops item=items}> <{if $items.checked == 'true'}> <{input type="checkbox" name="shop_ids[]" value=$items.shop_id checked='checked'}>  <{$items.name}>
<{/if}> <{/foreach}>
<{t}>订单类型:<{/t}>
<{foreach from=$order_types item=order_type}> <{if $order_type.checked == 'true'}> <{else}> <{/if}> <{/foreach}>    * 不勾选表示不限制订单类型
<{t}>指定收货区域:<{/t}>
<{foreach from=$provinces item=province}> <{if $province.checked == 'true'}> <{else}> <{/if}> <{/foreach}> * 不勾选表示不限制区域
<{t}>订单金额:<{/t}> <{input id="order_amount_min_num" type="text" name="filter_arr[order_amount][min_num]" value=$rule.filter_arr.order_amount.min_num size="4" }>元 ~ <{input id="order_amount_max_num" type="text" name="filter_arr[order_amount][max_num]" value=$rule.filter_arr.order_amount.max_num size="4" }>元
<{t}>购买商品:<{/t}>
购买范围: <{help}><{t}>当设定为购买了全部指定商品时,购买数量以最少的单品数量为准。<{/t}><{/help}>
<{input type='inventorydepth_object' object='products@ome' multiple=true breakpoint='0' name='product_id' textcol='name' value=$product_id callback='product_object_callback' replacehtml=$replacehtml emptytext='从商品库里选商品' style='float:left;width:200px;' filter='product_group=true' findercount='countAnother' findergetlist='getListAnother'}> <{input type='inventorydepth_object' object='pkg_goods@omepkg' multiple=true breakpoint='0' name='pkg_id' textcol='name' value=$pkg_goods_id callback='pkg_object_callback' replacehtml=$replacehtml_pkg emptytext='添加捆绑商品' }>
<{t}>赠送数量:<{/t}>
  • checked<{/if}> /> 购买 <{input type="text" id="buy_goods_min_num" name="filter_arr[buy_goods][min_num]" value=$rule.filter_arr.buy_goods.min_num size="4" }> ~ <{input id="buy_goods_max_num" type="text" name="filter_arr[buy_goods][max_num]" value=$rule.filter_arr.buy_goods.max_num size="4" }> 时送一组赠品,不累加 <{help}><{t}>金额是指订单的实际付款金额。种数是指不重复的基础物料编码数量结合购买商品项选择指定商品填写的基础物料编码。 <{/t}><{/help}>
  • checked<{/if}> /> 每购买 <{input type="text" id="per_num" name="filter_arr[buy_goods][per_num]" value=$rule.filter_arr.buy_goods.per_num size="4" }> , 赠送<{input type="text" id="send_suite" name="filter_arr[buy_goods][send_suite]" value=$rule.filter_arr.buy_goods.send_suite size="4" }>组赠品, 每订单最多送<{input type="text" id="max_send_suite" name="filter_arr[buy_goods][max_send_suite]" value=$rule.filter_arr.buy_goods.max_send_suite size="4" }>组 <{help}><{t}>系统自动累加赠送 如:买2送1,4送2、6送3。1组赠品可以包含多个商品和多个数量。例如买2送1组,最多送5组, 当1组赠品包含2个A商品和1个B商品,将送2个A和1个B。买4时送4个A和2个B,依次累加。最多送10个A和5个B。计算倍数时无条件舍去小数位。<{/t}><{/help}>
<{t}>限量赠送:<{/t}> 符合条件的前 <{input type="text" id="buy_goods_limit_orders" name="filter_arr[buy_goods][limit_orders]" value=$rule.filter_arr.buy_goods.limit_orders size="4" }>笔订单赠送

赠送商品

<{foreach from=$gifts item=data key=k}> <{/foreach}>
序号 商家编码 商品名称 成本价 赠送数量
<{$k+1}> <{$data.gift_bn}> <{$data.gift_name}> <{$data.gift_price}> <{$data.num}>