'select', 'options' => array( 'CUSTOM' => '普通实物', 'VIRTUAL' => '普通虚拟', 'ADP' => '广告位', 'LINK' => '友情链接' ), 'attrs' => array('class' => 'ws_alipay_select_protype') ), array('price', '商品价格'), array( 'pricePerDay', '每日单价', 'type' => 'hidden', 'attrs' => array('class' => 'ws_alipay_multiPrice') ), array( 'pricePerWeek', '每周单价', 'type' => 'hidden', 'attrs' => array('class' => 'ws_alipay_multiPrice') ), array( 'pricePerMonth', '每月单价', 'type' => 'hidden', 'attrs' => array('class' => 'ws_alipay_multiPrice') ), array( 'pricePerQuarter', '每季单价', 'type' => 'hidden', 'attrs' => array('class' => 'ws_alipay_multiPrice') ), array( 'pricePerYear', '每年单价', 'type' => 'hidden', 'attrs' => array('class' => 'ws_alipay_multiPrice') ), array('description', '商品描述'), array('weight', '商品净重(kg)'), array('snum', '已售数量'), array('num', '剩余数量'), array('images', '商品图片地址'), array('download', '下载链接'), array('zipcode', '解压密码'), array('tags', '商品标签(,)'), array( 'spfre', '买家承担运费', 'type' => 'select', 'options' => array(0 => '否', 1 => '是'), 'attrs' => array('class' => 'ws_alipay_select_spfre') ), array('freight', '运费价格', 'attrs' => array('class' => 'ws_alipay_select_spfre_rel')), array('location', '商品所在地'), array('atime', '商品添加日期', 'attrs' => array('readonly' => 'readonly')), array('btime', '商品上架时间'), array('etime', '商品下架时间'), array( 'promote', '开启促销', 'type' => 'select', 'options' => array(0 => '关闭', 1 => '开启'), 'attrs' => array('class' => 'ws_alipay_select_promote') ), array( 'protime', '开启每日促销', 'type' => 'select', 'options' => array(0 => '关闭', 1 => '开启'), 'attrs' => array('class' => 'ws_alipay_select_protime ws_alipay_select_promote_rel') ), array( 'probdate', '促销开始日期', 'attrs' => array('class' => 'ws_alipay_select_promote_rel ws_alipay_select_promote_rel') ), array( 'probtime', '促销开始时间', 'attrs' => array('class' => 'ws_alipay_select_protime_rel ws_alipay_select_promote_rel') ), array( 'proedate', '促销结束日期', 'attrs' => array('class' => 'ws_alipay_select_promote_rel ws_alipay_select_promote_rel') ), array( 'proetime', '促销结束时间', 'attrs' => array('class' => 'ws_alipay_select_protime_rel ws_alipay_select_promote_rel') ), array( 'discountb', '促销折扣', 'type' => 'select', 'options' => array(0 => '关闭', 1 => '开启'), 'attrs' => array('class' => 'ws_alipay_select_discountb ws_alipay_select_promote_rel') ), array( 'discount', '折扣比率', 'attrs' => array('class' => 'ws_alipay_select_discountb_rel ws_alipay_select_promote_rel') ), array('tplid', '模版选择'), array( 'autosend', '启用自动货源列表', 'type' => 'select', 'options' => array(0 => '关闭', 1 => '开启'), 'attrs' => array('class' => 'ws_alipay_select_autosend') ), array('autosep', '货源分隔符', 'attrs' => array('class' => 'ws_alipay_select_autosend_rel')), array( 'autosrc', 'html' => '
' ), array('', '商品快捷链接', 'attrs' => array('class' => 'ws_alipay_prolink', 'title' => '双击打开')), ); //add_filter( 'ws_alipay_products_0', 'ws_alipay_products_0_fn',10,1); function ws_alipay_products_0_fn($item) { return array( $item, array( 'protype', '商品类型', 'type' => 'select', 'options' => array( 'CUSTOM' => '普通实物', 'VIRTUAL' => '普通虚拟', 'ADP' => '广告位', 'LINK' => '友情链接' ), 'attrs' => array('class' => 'ws_alipay_select_protype') ) ); } $htmls = apply_filters('ws_alipay_products_htmls', $htmls); //SO MANY FILTERS IN FUNCTION ws_alipay_label_input_html() //SUCH AS:ws_alipay_products_price, ws_alipay_products_3 echo ws_alipay_label_input_html($htmls, 'ws_alipay_products_'); ?>