问题描述
我具有以下选择列表,我需要根据可编辑字段更改分期付款次数,我想在shop admin页面中更改分期付款次数,我在数据库中创建了一个字段,可以在其中写入分期付款次数,但可以根据分期付款次数的变量更改数组,请帮忙。
'Installment_no' => array(
'title' => __( 'Nmuber of installment','wc_AA' ),'type' => 'text','description' => __( 'This value is the max installments at checkout.','wc_AA' ) . '<br>'
. __( 'Please enter the maximum installments allowed for the above minimum morder amount.','default' => __( '','wc_AA' )
),
bleo代码是一个下拉列表,我不知道如何更改分期付款次数将基于数据库上的数据
$Installments_field = array(
'Installments-field ' => '<p class="form-row form-row-wide">
<label for="' . esc_attr( $this->id ) . '-Installments">' . __( 'Installments','wc_AA' ) . ' <span class="required">*</span></label>
<select id="offline_cc_Installments" class="input-select wc-credit-card-form-Installments" name="offline_cc_Installments" style="font-size:1.5em; height:2em; line-height:2em;" >
<option value="'. __('One Installment','wc_AA') .'">' . __('One Installment','wc_AA') . '</option>
<option value="' . __('Two Installments','wc_AA') . '">' . __('Two Installments','wc_AA') . '</option>
<option value="' . __('Three Installments','wc_AA') . '">' . __('Three Installments','wc_AA') . '</option>
</select>
</p>',);
enter code here
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)