ecshop设置商品促销功能精确到分钟

ecshop在设置商品促销功能时,精确到小时分钟2014-07-2106:12目前我们在设置商品促销的时间,,只能设置从某一天,其实完全可以精确到小时分钟。具体设置参考如下ECSHOP开发中心()教程:找到admin/tempate/goods_info.htm文件:1.<inputname=”selbtn1″type=”button”id=”selbtn1″onclick=”returnshowCalendar(promote_start_date,„%Y-%m-%d,false,false,selbtn1′);”value=”{$lang.btn_select}”class=”button”/>改为:<inputname=”selbtn1″type=”button”id=”selbtn1″onclick=”returnshowCalendar(promote_start_date,„%Y-%m-%d%H:%M,’24′,false,selbtn1′);”value=”{$lang.btn_select}”class=”button”/>

2.<inputname=”selbtn2″type=”button”id=”selbtn2″onclick=”returnshowCalendar(promote_end_date,„%Y-%m-%d,false,false,selbtn2′);”value=”{$lang.btn_select}”class=”button”/>改为:<inputname=”selbtn2″type=”button”id=”selbtn2″onclick=”returnshowCalendar(promote_end_date,„%Y-%m-%d%H:%M,’24′,false,selbtn2′);”value=”{$lang.btn_select}”class=”button”/>3.再修改一个文件admin/goods.php将里面的:$goods[‘promote_start_date’]=local_date(Y-m-d,$goods[‘promote_start_date’]);$goods[‘promote_end_date’]=local_date(Y-m-d,$goods[‘promote_end_date’]);替换成:$goods[‘promote_start_date’]=local_date(Y-m-dH:i,$goods[‘promote_start_date’]);$goods[‘promote_end_date’]=local_date(Y-m-dH:i,$goods[‘promote_end_date’]);

只有不快的斧,没有劈不开的柴。

ecshop设置商品促销功能精确到分钟

相关文章:

你感兴趣的文章:

标签云: