| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin - Basic Setting Page. |
| 4 |
* |
| 5 |
* @package Welcart |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<div class="wrap"> |
| 10 |
<div class="usces_admin"> |
| 11 |
<h1>Welcart Shop <?php esc_html_e( 'General Setting', 'usces' ); ?></h1> |
| 12 |
<?php usces_admin_action_status(); ?> |
| 13 |
<form action="" method="post" name="option_form" id="option_form"> |
| 14 |
<input name="usces_option_update" type="submit" class="button button-primary" value="<?php esc_attr_e( 'change decision', 'usces' ); ?>" /> |
| 15 |
<div id="poststuff" class="metabox-holder"> |
| 16 |
|
| 17 |
<div class="postbox"> |
| 18 |
<h3><span><?php esc_html_e( 'Business settings', 'usces' ); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('business_setting');"> (<?php esc_html_e( 'explanation', 'usces' ); ?>) </a></h3> |
| 19 |
<div class="inside"> |
| 20 |
<table class="form_table"> |
| 21 |
<?php |
| 22 |
$display_mode = array(); |
| 23 |
if ( 'Promotionsale' === $this->options['display_mode'] ) { |
| 24 |
$display_mode[0]['key'] = 'Promotionsale'; |
| 25 |
$display_mode[0]['label'] = $this->display_mode['Promotionsale']; |
| 26 |
$display_mode[0]['checked'] = ' checked="checked"'; |
| 27 |
$display_mode[0]['disabled'] = ''; |
| 28 |
$display_mode[1]['key'] = 'Maintenancemode'; |
| 29 |
$display_mode[1]['label'] = $this->display_mode['Maintenancemode']; |
| 30 |
$display_mode[1]['checked'] = ''; |
| 31 |
$display_mode[1]['disabled'] = ' disabled="disabled"'; |
| 32 |
} else { |
| 33 |
$display_mode[0]['key'] = 'Usualsale'; |
| 34 |
$display_mode[0]['label'] = $this->display_mode['Usualsale']; |
| 35 |
$display_mode[0]['checked'] = ( 'Usualsale' === $this->options['display_mode'] ) ? ' checked="checked"' : ''; |
| 36 |
$display_mode[0]['disabled'] = ''; |
| 37 |
$display_mode[1]['key'] = 'Maintenancemode'; |
| 38 |
$display_mode[1]['label'] = $this->display_mode['Maintenancemode']; |
| 39 |
$display_mode[1]['checked'] = ( 'Maintenancemode' === $this->options['display_mode'] ) ? ' checked="checked"' : ''; |
| 40 |
$display_mode[1]['disabled'] = ''; |
| 41 |
} |
| 42 |
?> |
| 43 |
<tr height="50"> |
| 44 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_display_mode');"><?php esc_html_e( 'Display Modes', 'usces' ); ?></a></th> |
| 45 |
<?php |
| 46 |
foreach ( (array) $display_mode as $dmode ) : |
| 47 |
?> |
| 48 |
<td width="10"><input name="display_mode" type="radio" id="<?php echo esc_attr( $dmode['key'] ); ?>" value="<?php echo esc_attr( $dmode['key'] ); ?>"<?php echo esc_html( $dmode['checked'] ); ?><?php echo esc_html( $dmode['disabled'] ); ?> /></td> |
| 49 |
<td width="100"><label for="<?php echo esc_attr( $dmode['key'] ); ?>"><?php echo esc_html( $dmode['label'] ); ?></label></td> |
| 50 |
<?php |
| 51 |
endforeach; |
| 52 |
?> |
| 53 |
<td><div id="ex_display_mode" class="explanation"> |
| 54 |
<?php echo wp_kses_post( __( '<strong>Normal operating</strong> -Normal display', 'usces' ) ); ?><br /> |
| 55 |
<?php echo wp_kses_post( __( '<strong>Maintenance</strong> ---Showing maintenance page. Administrater is able to see the page with normal display.', 'usces' ) ); ?></div> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
</table> |
| 59 |
<table class="form_table"> |
| 60 |
<tr> |
| 61 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_cat');"><?php esc_html_e( 'Campaign target items', 'usces' ); ?></a></th> |
| 62 |
<td> |
| 63 |
<?php |
| 64 |
$dropdown_selected = ( USCES_ITEM_CAT_PARENT_ID == $this->options['campaign_category'] ) ? 0 : $this->options['campaign_category']; |
| 65 |
$dropdown_options = array( |
| 66 |
'show_option_all' => __( 'all the items', 'usces' ), |
| 67 |
'hide_empty' => 0, |
| 68 |
'hierarchical' => 1, |
| 69 |
'orderby' => 'name', |
| 70 |
'child_of' => USCES_ITEM_CAT_PARENT_ID, |
| 71 |
'selected' => $dropdown_selected, |
| 72 |
); |
| 73 |
wp_dropdown_categories( $dropdown_options ); |
| 74 |
?> |
| 75 |
</td> |
| 76 |
<td><div id="ex_cat" class="explanation"><?php esc_html_e( "This is a category of the objects to add a privilege to in the case of a campaign mode. You can choose a campaign object article freely by installing a 'campaign' category for an article.", 'usces' ); ?></div></td> |
| 77 |
</tr> |
| 78 |
</table> |
| 79 |
<table class="form_table"> |
| 80 |
<tr> |
| 81 |
<th rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_cat_privilege');"><?php esc_html_e( 'Campaign Award', 'usces' ); ?></a></th> |
| 82 |
<td><input name="cat_privilege" type="radio" id="privilege_point" value="point"<?php checked( $this->options['campaign_privilege'], 'point' ); ?> /></td><td><label for="privilege_point"><?php esc_html_e( 'Points', 'usces' ); ?></label></td> |
| 83 |
<td><input name="point_num" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['privilege_point'] ); ?>" /><?php esc_html_e( 'times', 'usces' ); ?></td> |
| 84 |
<td rowspan="2"><div id="ex_cat_privilege" class="explanation"><?php echo wp_kses_post( __( "'Points' award applies only for monmbers. You specify the ratio of rate points. <br />'Discount'is specified in the discount rate applies to all buyers.", 'usces' ) ); ?></div></td> |
| 85 |
</tr> |
| 86 |
<tr> |
| 87 |
<td><input name="cat_privilege" type="radio" id="privilege_discount" value="discount"<?php checked( $this->options['campaign_privilege'], 'discount' ); ?> /></td><td><label for="privilege_discount"><?php esc_html_e( 'Discount', 'usces' ); ?></label></td> |
| 88 |
<td><input name="discount_num" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['privilege_discount'] ); ?>" />%</td> |
| 89 |
</tr> |
| 90 |
</table> |
| 91 |
|
| 92 |
<?php do_action( 'usces_action_amdin_setup_first_box' ); ?> |
| 93 |
|
| 94 |
<hr /> |
| 95 |
<div id="business_setting" class="explanation"><?php esc_html_e( 'Configuration of management and display mode of shop.', 'usces' ); ?></div> |
| 96 |
</div> |
| 97 |
</div><!--postbox--> |
| 98 |
|
| 99 |
<div class="postbox"> |
| 100 |
<h3><span><?php esc_html_e( 'Shop setting', 'usces' ); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('shop_setting');"> (<?php esc_html_e( 'explanation', 'usces' ); ?>) </a></h3> |
| 101 |
<div class="inside"> |
| 102 |
<table class="form_table"> |
| 103 |
<tr> |
| 104 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_company_name');"><?php esc_html_e( 'The company name', 'usces' ); ?></a></th> |
| 105 |
<td><input name="company_name" type="text" class="long_str" value="<?php echo esc_attr( $this->options['company_name'] ); ?>" /></td> |
| 106 |
<td><div id="ex_company_name" class="explanation"><?php esc_html_e( 'Fill out this if you are a corporation.', 'usces' ); ?></div></td> |
| 107 |
</tr> |
| 108 |
<tr> |
| 109 |
<th><?php esc_html_e( 'Zip/Postal Code', 'usces' ); ?></th> |
| 110 |
<td><input name="zip_code" type="text" class="short_str" value="<?php echo esc_attr( $this->options['zip_code'] ); ?>" /></td> |
| 111 |
<td></td> |
| 112 |
</tr> |
| 113 |
<tr> |
| 114 |
<th><?php esc_html_e( 'Address', 'usces' ); ?>1</th> |
| 115 |
<td><input name="address1" type="text" class="long_str" value="<?php echo esc_attr( $this->options['address1'] ); ?>" /></td> |
| 116 |
<td></td> |
| 117 |
</tr> |
| 118 |
<tr> |
| 119 |
<th><?php esc_html_e( 'Address', 'usces' ); ?>2</th> |
| 120 |
<td><input name="address2" type="text" class="long_str" value="<?php echo esc_attr( $this->options['address2'] ); ?>" /></td> |
| 121 |
<td></td> |
| 122 |
</tr> |
| 123 |
<tr> |
| 124 |
<th><?php esc_html_e( 'Phone number', 'usces' ); ?></th> |
| 125 |
<td><input name="tel_number" type="text" class="long_str" value="<?php echo esc_attr( $this->options['tel_number'] ); ?>" /></td> |
| 126 |
<td></td> |
| 127 |
</tr> |
| 128 |
<tr> |
| 129 |
<th><?php esc_html_e( 'FAX number', 'usces' ); ?></th> |
| 130 |
<td><input name="fax_number" type="text" class="long_str" value="<?php echo esc_attr( $this->options['fax_number'] ); ?>" /></td> |
| 131 |
<td></td> |
| 132 |
</tr> |
| 133 |
<tr> |
| 134 |
<th><em><?php esc_html_e( '*', 'usces' ); ?> </em><a style="cursor:pointer;" onclick="toggleVisibility('ex_order_mail');"><?php esc_html_e( 'E-mail address for ordering', 'usces' ); ?></a></th> |
| 135 |
<td><input name="order_mail" type="text" class="long_str" value="<?php echo esc_attr( $this->options['order_mail'] ); ?>" /></td> |
| 136 |
<td><div id="ex_order_mail" class="explanation"><?php echo wp_kses_post( __( "<em>[Required]</em> the administrator's e-mail address to receive the order", 'usces' ) ); ?></div></td> |
| 137 |
</tr> |
| 138 |
<tr> |
| 139 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_inquiry_mail');"><?php esc_html_e( 'Contact e-mail address', 'usces' ); ?></a></th> |
| 140 |
<td><input name="inquiry_mail" type="text" class="long_str" value="<?php echo esc_attr( $this->options['inquiry_mail'] ); ?>" /></td> |
| 141 |
<td><div id="ex_inquiry_mail" class="explanation"><?php echo wp_kses_post( __( "<em>[Optional]</em> the administrator's e-mail address to receive the contact meils.", 'usces' ) ); ?></div></td> |
| 142 |
</tr> |
| 143 |
<tr> |
| 144 |
<th><em><?php esc_html_e( '*', 'usces' ); ?> </em><a style="cursor:pointer;" onclick="toggleVisibility('ex_sender_mail');"><?php esc_html_e( "Sender's e-mail address", 'usces' ); ?></a></th> |
| 145 |
<td><input name="sender_mail" type="text" class="long_str" value="<?php echo esc_attr( $this->options['sender_mail'] ); ?>" /></td> |
| 146 |
<td><div id="ex_sender_mail" class="explanation"><?php echo wp_kses_post( __( "<em>[Required]</em> the sender's e-mail address to send 'thank you e-mail' to cuscomers.", 'usces' ) ); ?></div></td> |
| 147 |
</tr> |
| 148 |
<tr> |
| 149 |
<th><em><?php esc_html_e( '*', 'usces' ); ?> </em><a style="cursor:pointer;" onclick="toggleVisibility('ex_error_mail');"><?php esc_html_e( 'Address for Error mail', 'usces' ); ?></a></th> |
| 150 |
<td><input name="error_mail" type="text" class="long_str" value="<?php echo esc_attr( $this->options['error_mail'] ); ?>" /></td> |
| 151 |
<td><div id="ex_error_mail" class="explanation"><?php echo wp_kses_post( __( '<em>[Required]</em>The transmission of a message ahead of the error email.', 'usces' ) ); ?></div></td> |
| 152 |
</tr> |
| 153 |
<tr> |
| 154 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_copyright');"><?php esc_html_e( 'copy rights', 'usces' ); ?></a></th> |
| 155 |
<td><input name="copyright" type="text" class="long_str" value="<?php echo esc_attr( $this->options['copyright'] ); ?>" /></td> |
| 156 |
<td><div id="ex_copyright" class="explanation"><?php esc_html_e( 'Example)', 'usces' ); ?>Copyright(c) <?php echo esc_html( wp_date( 'Y' ) ); ?> Welcart.inc</div></td> |
| 157 |
</tr> |
| 158 |
<tr> |
| 159 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_business_registration_number');"><?php esc_html_e( 'Business registration number', 'usces' ); ?></a></th> |
| 160 |
<td><input name="business_registration_number" type="text" class="long_str" value="<?php echo esc_attr( $this->options['business_registration_number'] ); ?>" /></td> |
| 161 |
<td><div id="ex_business_registration_number" class="explanation"><?php esc_html_e( 'Eligible invoice issuer registration number', 'usces' ); ?></div></td> |
| 162 |
</tr> |
| 163 |
</table> |
| 164 |
<hr /> |
| 165 |
<table class="form_table"> |
| 166 |
<tr> |
| 167 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_postage_privilege');"><?php esc_html_e( 'Conditions for free shipping', 'usces' ); ?></a></th> |
| 168 |
<td><input name="postage_privilege" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['postage_privilege'] ); ?>" /><?php esc_html_e( 'Above', 'usces' ); ?></td> |
| 169 |
<td><div id="ex_postage_privilege" class="explanation"><?php esc_html_e( 'Total amount of items that will receive free shipping. Leave blank if not required.', 'usces' ); ?></div></td> |
| 170 |
</tr> |
| 171 |
</table> |
| 172 |
<table class="form_table"> |
| 173 |
<tr> |
| 174 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_purchase_limit');"><?php esc_html_e( 'default limitation number of purchase', 'usces' ); ?></a></th> |
| 175 |
<td><input name="purchase_limit" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['purchase_limit'] ); ?>" /><?php esc_html_e( 'maximum amount', 'usces' ); ?></td> |
| 176 |
<td><div id="ex_purchase_limit" class="explanation"><?php esc_html_e( 'initial value at registration of items. Leave it blank if it is not necessary.', 'usces' ); ?></div></td> |
| 177 |
</tr> |
| 178 |
<tr> |
| 179 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_shipping_rule');"><?php esc_html_e( 'initial value of date of sending out.', 'usces' ); ?></a></th> |
| 180 |
<td><select name="shipping_rule" class="short_select"> |
| 181 |
<?php foreach ( (array) $this->shipping_rule as $key => $label ) : ?> |
| 182 |
<option value="<?php echo esc_attr( $key ); ?>"<?php selected( $this->options['shipping_rule'], $key ); ?>><?php echo esc_html( $label ); ?></option> |
| 183 |
<?php endforeach; ?> |
| 184 |
</select></td> |
| 185 |
<td><div id="ex_shipping_rule" class="explanation"><?php esc_html_e( 'initial value at registration of items. Do not chose this if it does not apply to you.', 'usces' ); ?></div></td> |
| 186 |
</tr> |
| 187 |
</table> |
| 188 |
<hr /> |
| 189 |
<table class="form_table"> |
| 190 |
<tr> |
| 191 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_tax_display');"><?php esc_html_e( 'Tax display', 'usces' ); ?></a></th> |
| 192 |
<td width="10"><input name="tax_display" id="tax_display_activate" type="radio" value="activate"<?php checked( $this->options['tax_display'], 'activate' ); ?> /></td><td width="100"><label for="tax_display_activate"><?php esc_html_e( 'Indication', 'usces' ); ?></label></td> |
| 193 |
<td width="10"><input name="tax_display" id="tax_display_deactivate" type="radio" value="deactivate"<?php checked( $this->options['tax_display'], 'deactivate' ); ?> /></td><td width="100"><label for="tax_display_deactivate"><?php esc_html_e( 'Non-indication', 'usces' ); ?></label></td> |
| 194 |
<td><div id="ex_tax_display" class="explanation"><?php esc_html_e( "When you select the 'Non-indication', does not Calculation and display the amount of tax.", 'usces' ); ?></div></td> |
| 195 |
</tr> |
| 196 |
<tr> |
| 197 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_tax_mode');"><?php esc_html_e( 'Tax treatment', 'usces' ); ?></a></th> |
| 198 |
<td width="10"><input name="tax_mode" id="tax_mode_include" type="radio" value="include"<?php checked( $this->options['tax_mode'], 'include' ); ?> /></td><td width="100"><label for="tax_mode_include"><?php esc_html_e( 'Included', 'usces' ); ?></label></td> |
| 199 |
<td width="10"><input name="tax_mode" id="tax_mode_exclude" type="radio" value="exclude"<?php checked( $this->options['tax_mode'], 'exclude' ); ?> /></td><td width="100"><label for="tax_mode_exclude"><?php esc_html_e( 'Excluded', 'usces' ); ?></label></td> |
| 200 |
<td><div id="ex_tax_mode" class="explanation"><?php esc_html_e( 'You can choose consumption tax is whether it is included in the product price.', 'usces' ); ?></div></td> |
| 201 |
</tr> |
| 202 |
<tr> |
| 203 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_tax_target');"><?php esc_html_e( 'Tax target', 'usces' ); ?></a></th> |
| 204 |
<td width="10"><input name="tax_target" id="tax_mode_products" type="radio" value="products"<?php checked( $this->options['tax_target'], 'products' ); ?> /></td><td width="60"><label for="tax_mode_products"><?php esc_html_e( 'Only Products', 'usces' ); ?></label></td> |
| 205 |
<td width="10"><input name="tax_target" id="tax_mode_all" type="radio" value="all"<?php checked( $this->options['tax_target'], 'all' ); ?> /></td><td width="60"><label for="tax_mode_all"><?php esc_html_e( 'All Amount', 'usces' ); ?></label></td> |
| 206 |
<td><div id="ex_tax_target" class="explanation"><?php esc_html_e( 'You can select the subject of the consumption tax. One is only the product price, and the other contains all the commission.', 'usces' ); ?></div></td> |
| 207 |
</tr> |
| 208 |
<tr> |
| 209 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_applicable_taxrate');"><?php esc_html_e( 'Applicable tax rate', 'usces' ); ?></a></th> |
| 210 |
<td width="10"><input name="applicable_taxrate" id="applicable_taxrate_standard" type="radio" value="standard"<?php checked( $this->options['applicable_taxrate'], 'standard' ); ?> /></td><td width="60"><label for="applicable_taxrate_standard"><?php esc_html_e( 'Standard tax rate', 'usces' ); ?></label></td> |
| 211 |
<td width="10"><input name="applicable_taxrate" id="applicable_taxrate_reduced" type="radio" value="reduced"<?php checked( $this->options['applicable_taxrate'], 'reduced' ); ?> /></td><td width="60"><label for="applicable_taxrate_reduced"><?php esc_html_e( 'Reduced tax rate', 'usces' ); ?></label></td> |
| 212 |
<td><div id="ex_applicable_taxrate" class="explanation"><?php esc_html_e( 'Select whether to applying reduced tax rate.', 'usces' ); ?></div></td> |
| 213 |
</tr> |
| 214 |
</table> |
| 215 |
<table class="form_table"> |
| 216 |
<tr> |
| 217 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_tax_rate');"><?php esc_html_e( 'Percentage of Consumption tax', 'usces' ); ?></a></th> |
| 218 |
<td><input name="tax_rate" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['tax_rate'] ); ?>" />%</td> |
| 219 |
<td><div id="ex_tax_rate" class="explanation"><?php esc_html_e( 'Entry required.', 'usces' ); ?></div></td> |
| 220 |
</tr> |
| 221 |
<tr id="tax_rate_reduced"> |
| 222 |
<th><a style="cursor:pointer;" onclick="toggleVisibility( 'ex_tax_rate_reduced' );"><?php esc_html_e( 'Reduced tax rate', 'usces' ); ?></a></th> |
| 223 |
<td><input name="tax_rate_reduced" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['tax_rate_reduced'] ); ?>" />%</td> |
| 224 |
<td><div id="ex_tax_rate_reduced" class="explanation"><?php esc_html_e( 'Entry required when applying reduced tax rate.', 'usces' ); ?></div></td> |
| 225 |
</tr> |
| 226 |
</table> |
| 227 |
<table class="form_table"> |
| 228 |
<tr> |
| 229 |
<th><?php esc_html_e( 'method of Calculation of the tax', 'usces' ); ?></th> |
| 230 |
<td width="10"><input name="tax_method" id="tax_method_cutting" type="radio" value="cutting"<?php checked( $this->options['tax_method'], 'cutting' ); ?> /></td><td width="60"><label for="tax_method_cutting"><?php esc_html_e( 'drop fractions', 'usces' ); ?></label></td> |
| 231 |
<td width="10"><input name="tax_method" id="tax_method_bring" type="radio" value="bring"<?php checked( $this->options['tax_method'], 'bring' ); ?> /></td><td width="60"><label for="tax_method_bring"><?php esc_html_e( 'raise to a unit', 'usces' ); ?></label></td> |
| 232 |
<td width="10"><input name="tax_method" id="tax_method_rounding" type="radio" value="rounding"<?php checked( $this->options['tax_method'], 'rounding' ); ?> /></td><td width="60"><label for="tax_method_rounding"><?php esc_html_e( 'round up numbers of five and above and round down anything under', 'usces' ); ?></label></td> |
| 233 |
</tr> |
| 234 |
</table> |
| 235 |
<hr /> |
| 236 |
<table class="form_table"> |
| 237 |
<tr> |
| 238 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_cod_fee');"><?php esc_html_e( 'C.O.D', 'usces' ); ?></a></th> |
| 239 |
<td id="cod_type_field" colspan="2"></td><td colspan="2"><input type="button" class="button" name="button_cod_detail" value="<?php esc_attr_e( 'Detailed setting', 'usces' ); ?>" id="detailed_setting" /></td> |
| 240 |
<td><div id="ex_cod_fee" class="explanation"><?php esc_html_e( 'Cost for C.O.D. leave it blank if it in not necessary.', 'usces' ); ?></div></td> |
| 241 |
</tr> |
| 242 |
<tr> |
| 243 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_fee_subject');"><?php esc_html_e( 'Subject to fees', 'usces' ); ?></a></th> |
| 244 |
<td width="10"><input name="fee_subject" id="fee_subject_products" type="radio" value="products"<?php checked( $this->options['fee_subject'], 'products' ); ?> /></td><td width="100"><label for="fee_subject_products"><?php esc_html_e( 'Only Products', 'usces' ); ?></label></td> |
| 245 |
<td width="10"><input name="fee_subject" id="fee_subject_all" type="radio" value="all"<?php checked( $this->options['fee_subject'], 'all' ); ?> /></td><td width="100"><label for="fee_subject_all"><?php esc_html_e( 'All Amount', 'usces' ); ?></label></td> |
| 246 |
<td><div id="ex_fee_subject" class="explanation"><?php esc_html_e( 'Select whether you want the fee to be applied to the product price only or to the total amount including shipping charges.', 'usces' ); ?></div></td> |
| 247 |
</tr> |
| 248 |
</table> |
| 249 |
<hr /> |
| 250 |
<table class="form_table"> |
| 251 |
<tr> |
| 252 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_transferee');"><?php esc_html_e( 'Account information for transfer', 'usces' ); ?></a></th> |
| 253 |
<td><textarea name="transferee" class="long_txt"><?php echo esc_html( $this->options['transferee'] ); ?></textarea></td> |
| 254 |
<td><div id="ex_transferee" class="explanation"><?php esc_html_e( 'The acount number for bank transfer. You can enter the information as you wish. The contents will apear in the mail.', 'usces' ); ?></div></td> |
| 255 |
</tr> |
| 256 |
</table> |
| 257 |
<table class="form_table"> |
| 258 |
<tr> |
| 259 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_tatransfer_limit');"><?php esc_html_e( 'Days to deposit deadline', 'usces' ); ?></a></th> |
| 260 |
<td><input name="tatransfer_limit" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['tatransfer_limit'] ); ?>" /><?php esc_html_e( 'days', 'usces' ); ?></td> |
| 261 |
<td><div id="ex_tatransfer_limit" class="explanation"><?php esc_html_e( 'When the number of days is set, the content confirmation page will display the payment period for "Transfer (prepayment)" or "Transfer (postpay)".', 'usces' ); ?></div></td> |
| 262 |
</tr> |
| 263 |
</table> |
| 264 |
<hr /> |
| 265 |
<table class="form_table"> |
| 266 |
<tr> |
| 267 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_membersystem_state');"><?php esc_html_e( 'membership syetem', 'usces' ); ?></a></th> |
| 268 |
<td width="10"><input name="membersystem_state" id="membersystem_state_activate" type="radio" value="activate"<?php checked( $this->options['membersystem_state'], 'activate' ); ?> /></td><td width="100"><label for="membersystem_state_activate"><?php esc_html_e( 'to use', 'usces' ); ?></label></td> |
| 269 |
<td width="10"><input name="membersystem_state" id="membersystem_state_deactivate" type="radio" value="deactivate"<?php checked( $this->options['membersystem_state'], 'deactivate' ); ?> /></td><td width="100"><label for="membersystem_state_deactivate"><?php esc_html_e( 'not to use', 'usces' ); ?></label></td> |
| 270 |
<td><div id="ex_membersystem_state" class="explanation"><?php esc_html_e( 'Would you like to use membership system or not?', 'usces' ); ?></div></td> |
| 271 |
</tr> |
| 272 |
<tr> |
| 273 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_membersystem_point');"><?php esc_html_e( 'membership points', 'usces' ); ?></a></th> |
| 274 |
<td width="10"><input name="membersystem_point" id="membersystem_point_activate" type="radio" value="activate"<?php checked( $this->options['membersystem_point'], 'activate' ); ?> /></td><td width="100"><label for="membersystem_point_activate"><?php esc_html_e( 'to use', 'usces' ); ?></label></td> |
| 275 |
<td width="10"><input name="membersystem_point" id="membersystem_point_deactivate" type="radio" value="deactivate"<?php checked( $this->options['membersystem_point'], 'deactivate' ); ?> /></td><td width="100"><label for="membersystem_point_deactivate"><?php esc_html_e( 'not to use', 'usces' ); ?></label></td> |
| 276 |
<td><div id="ex_membersystem_point" class="explanation"><?php esc_html_e( "Would you like to use 'points granting syetem' when you choose to use membership system?", 'usces' ); ?></div></td> |
| 277 |
</tr> |
| 278 |
</table> |
| 279 |
<table class="form_table"> |
| 280 |
<tr> |
| 281 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_point_rate');"><?php esc_html_e( 'The initial value of point rate', 'usces' ); ?></a></th> |
| 282 |
<td colspan="2"><input name="point_rate" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['point_rate'] ); ?>" />%</td> |
| 283 |
<td><div id="ex_point_rate" class="explanation"><?php esc_html_e( 'initial value at registration of items. Leave it blank if it is not necessary.', 'usces' ); ?></div></td> |
| 284 |
</tr> |
| 285 |
<tr> |
| 286 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_start_point');"><?php esc_html_e( 'Point at the registration of membership', 'usces' ); ?></a></th> |
| 287 |
<td colspan="2"><input name="start_point" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['start_point'] ); ?>" /><?php esc_html_e( 'points', 'usces' ); ?></td> |
| 288 |
<td><div id="ex_start_point" class="explanation"><?php esc_html_e( 'Points granted at the first membersip registration.', 'usces' ); ?></div></td> |
| 289 |
</tr> |
| 290 |
<tr> |
| 291 |
<th rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_point_coverage');"><?php esc_html_e( 'Areas of Point Redemption', 'usces' ); ?></a></th> |
| 292 |
<td><input name="point_coverage" type="radio" id="point_coverage0" value="0"<?php checked( WCUtils::is_zero( $this->options['point_coverage'] ), true ); ?> /></td><td width="220"><label for="point_coverage0"><?php esc_html_e( 'Limited Only to Total Merchandise Price', 'usces' ); ?></label></td> |
| 293 |
<td rowspan="2"><div id="ex_point_coverage" class="explanation"><?php echo wp_kses_post( __( "Select the scope of the point that customers can use.<br />Default is 'Limited Only to Total Merchandise Price'. 'Applicable to Total Merchandise Price and Handling Fee' If you choose, you can pay shipping and COD fee in points.", 'usces' ) ); ?></div></td> |
| 294 |
</tr> |
| 295 |
<tr> |
| 296 |
<td><input name="point_coverage" type="radio" id="point_coverage1" value="1"<?php checked( $this->options['point_coverage'], 1 ); ?> /></td><td width="220"><label for="point_coverage1"><?php esc_html_e( 'Applicable to Total Merchandise Price and Handling Fee', 'usces' ); ?></label></td> |
| 297 |
</tr> |
| 298 |
</table> |
| 299 |
<table class="form_table"> |
| 300 |
<tr> |
| 301 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_point_assign');"><?php esc_html_e( 'Timing point of grant', 'usces' ); ?></a></th> |
| 302 |
<td width="10"><input name="point_assign" id="point_assign_receipt" type="radio" value="1"<?php checked( $this->options['point_assign'], 1 ); ?> /></td><td width="60"><label for="point_assign_receipt"><?php esc_html_e( 'Payment at the time', 'usces' ); ?></label></td> |
| 303 |
<td width="10"><input name="point_assign" id="point_assign_immediately" type="radio" value="0"<?php checked( WCUtils::is_zero( $this->options['point_assign'] ), true ); ?> /></td><td width="60"><label for="point_assign_immediately"><?php esc_html_e( 'Immediately', 'usces' ); ?></label></td> |
| 304 |
<td><div id="ex_point_assign" class="explanation"><?php echo wp_kses_post( __( "The 'immediate', points are given to the shopping upon completion. In the 'payment at the time', bank transfer, or convenience store settlement, points will not be given to the shopping upon completion, grant the point when it becomes a pre-payment.", 'usces' ) ); ?></div></td> |
| 305 |
</tr> |
| 306 |
</table> |
| 307 |
<hr /> |
| 308 |
<table class="form_table"> |
| 309 |
<tr> |
| 310 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_address_search');"><?php esc_html_e( 'Postal code address search', 'usces' ); ?></a></th> |
| 311 |
<td width="10"><input name="address_search" id="address_search_activate" type="radio" value="activate"<?php checked( $this->options['address_search'], 'activate' ); ?> /></td><td width="100"><label for="address_search_activate"><?php esc_html_e( 'to use', 'usces' ); ?></label></td> |
| 312 |
<td width="10"><input name="address_search" id="address_search_deactivate" type="radio" value="deactivate"<?php checked( $this->options['address_search'], 'deactivate' ); ?> /></td><td width="100"><label for="address_search_deactivate"><?php esc_html_e( 'not to use', 'usces' ); ?></label></td> |
| 313 |
<td><div id="ex_address_search" class="explanation"><?php echo wp_kses_post( __( "'Address search button' is added to 'new member registration form' 'member information edit form' 'customer information form' 'delivery information form'.<br />When the 'postal code' is input, and 'address search' is clicked, 'province' 'city' are indicated automatically.", 'usces' ) ); ?></div></td> |
| 314 |
</tr> |
| 315 |
</table> |
| 316 |
<hr /> |
| 317 |
<?php |
| 318 |
$stock_status_label = array(); |
| 319 |
for ( $i = 0; $i <= 4; $i++ ) { |
| 320 |
$stock_status_label[ $i ] = ( ! empty( $this->options['stock_status_label'][ $i ] ) ) ? $this->options['stock_status_label'][ $i ] : ''; |
| 321 |
} |
| 322 |
$order_acceptable_label = ( ! empty( $this->options['order_acceptable_label'] ) ) ? $this->options['order_acceptable_label'] : ''; |
| 323 |
?> |
| 324 |
<table class="form_table"> |
| 325 |
<tr><th rowspan="5"><a style="cursor:pointer;" onclick="toggleVisibility('ex_stock_status_label');"><?php esc_html_e( 'Label of stock status', 'usces' ); ?></a></th> |
| 326 |
<td><input name="stock_status_label[0]" type="text" class="long_str" value="<?php echo esc_attr( $stock_status_label[0] ); ?>" placeholder="<?php esc_attr_e( 'In Stock', 'usces' ); ?>" /><?php esc_html_e( 'In Stock', 'usces' ); ?></td> |
| 327 |
<td rowspan="5"><div id="ex_stock_status_label" class="explanation"><?php esc_html_e( 'You can change the label of stock status. Changing the order or adding the status are not allowed.', 'usces' ); ?></div></td> |
| 328 |
</tr> |
| 329 |
<tr><td><input name="stock_status_label[1]" type="text" class="long_str" value="<?php echo esc_attr( $stock_status_label[1] ); ?>" placeholder="<?php esc_attr_e( 'A Few Stock', 'usces' ); ?>" /><?php esc_html_e( 'A Few Stock', 'usces' ); ?></td></tr> |
| 330 |
<tr><td><input name="stock_status_label[2]" type="text" class="long_str" value="<?php echo esc_attr( $stock_status_label[2] ); ?>" placeholder="<?php esc_attr_e( 'Sold Out', 'usces' ); ?>" /><?php esc_html_e( 'Sold Out', 'usces' ); ?></td></tr> |
| 331 |
<tr><td><input name="stock_status_label[3]" type="text" class="long_str" value="<?php echo esc_attr( $stock_status_label[3] ); ?>" placeholder="<?php esc_attr_e( 'Out Of Stock', 'usces' ); ?>" /><?php esc_html_e( 'Out Of Stock', 'usces' ); ?></td></tr> |
| 332 |
<tr><td><input name="stock_status_label[4]" type="text" class="long_str" value="<?php echo esc_attr( $stock_status_label[4] ); ?>" placeholder="<?php esc_attr_e( 'Out of print', 'usces' ); ?>" /><?php esc_html_e( 'Out of print', 'usces' ); ?></td></tr> |
| 333 |
<tr> |
| 334 |
<th><a style="cursor:pointer;" onclick="toggleVisibility('ex_order_acceptable_label');"><?php esc_html_e( 'Label of Order acceptable when sold out', 'usces' ); ?></a></th> |
| 335 |
<td><input name="order_acceptable_label" type="text" class="long_str" value="<?php echo esc_attr( $order_acceptable_label ); ?>" placeholder="<?php esc_attr_e( 'Order acceptable', 'usces' ); ?>" /><?php esc_html_e( 'Order acceptable', 'usces' ); ?></td> |
| 336 |
<td><div id="ex_order_acceptable_label" class="explanation"><?php esc_html_e( "You can change the label of stock status when the status is 'Order acceptable'.", 'usces' ); ?></div></td> |
| 337 |
</tr> |
| 338 |
</table> |
| 339 |
<?php do_action( 'usces_action_amdin_setup' ); ?> |
| 340 |
<hr /> |
| 341 |
<div id="shop_setting" class="explanation"><?php esc_html_e( 'the initial rate of the shop', 'usces' ); ?></div> |
| 342 |
</div> |
| 343 |
</div><!--postbox--> |
| 344 |
|
| 345 |
<div class="postbox"> |
| 346 |
<h3 id="payment_method_setting"><span><?php esc_html_e( 'payment method', 'usces' ); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('payment_setting');"> (<?php esc_html_e( 'explanation', 'usces' ); ?>) </a></h3> |
| 347 |
<div class="inside"> |
| 348 |
<div id="postpayment"><div id="payment-response"></div> |
| 349 |
<?php |
| 350 |
$option_value = usces_get_system_option( 'usces_payment_method', 'sort' ); |
| 351 |
payment_list( $option_value ); |
| 352 |
payment_form(); |
| 353 |
?> |
| 354 |
<hr /> |
| 355 |
<div id="Commonoption" class="explanation"><?php echo wp_kses_post( __( '<em>[Required]</em>possible payment method', 'usces' ) ); ?></div> |
| 356 |
<div id="payment_setting" class="explanation"><?php esc_html_e( "If you 'Deactivate', it does not appear in the payment method of site.", 'usces' ); ?></div> |
| 357 |
</div> |
| 358 |
</div> |
| 359 |
</div><!--postbox--> |
| 360 |
|
| 361 |
<div class="postbox"> |
| 362 |
<h3><span><?php esc_html_e( 'Common Options', 'usces' ); ?></span></h3> |
| 363 |
<div class="inside"> |
| 364 |
<div id="postoptcustomstuff"><div id="ajax-response"></div> |
| 365 |
<?php |
| 366 |
$opts = usces_get_opts( USCES_CART_NUMBER ); |
| 367 |
list_item_option_meta( $opts ); |
| 368 |
common_option_meta_form(); |
| 369 |
?> |
| 370 |
<hr /> |
| 371 |
<div id="Commonoption" class="explanation"><?php esc_html_e( 'Conditions which will be selected at the purchase. You can use the options which you hve registered here, as an option in the master items.', 'usces' ); ?></div> |
| 372 |
</div> |
| 373 |
</div> |
| 374 |
</div><!--postbox--> |
| 375 |
</div><!--poststuff--> |
| 376 |
<input name="usces_option_update" type="submit" class="button button-primary" value="<?php esc_attr_e( 'change decision', 'usces' ); ?>" /> |
| 377 |
<input type="hidden" id="post_ID" name="post_ID" value="<?php echo esc_attr( USCES_CART_NUMBER ); ?>" /> |
| 378 |
<?php |
| 379 |
$cod_fee = ( isset( $this->options['cod_fee'] ) ) ? $this->options['cod_fee'] : ''; |
| 380 |
$cod_limit_amount = ( isset( $this->options['cod_limit_amount'] ) && 0 < (int) $this->options['cod_limit_amount'] ) ? $this->options['cod_limit_amount'] : ''; |
| 381 |
$cod_first_amount = ( isset( $this->options['cod_first_amount'] ) ) ? $this->options['cod_first_amount'] : ''; |
| 382 |
$cod_first_fee = ( isset( $this->options['cod_first_fee'] ) ) ? $this->options['cod_first_fee'] : ''; |
| 383 |
$cod_end_fee = ( isset( $this->options['cod_end_fee'] ) ) ? $this->options['cod_end_fee'] : ''; |
| 384 |
?> |
| 385 |
<div id="cod_dialog" class="cod_dialog" title="<?php esc_attr_e( 'C.O.D. Detailed setting', 'usces' ); ?>"> |
| 386 |
<p id="cod-response"><?php esc_html_e( 'Please be settled for a fee in spite of Update.', 'usces' ); ?></p> |
| 387 |
<fieldset> |
| 388 |
<table id="cod_type_table" class="cod_type_table"> |
| 389 |
<tr><th><?php esc_html_e( 'Type of the fee', 'usces' ); ?></th><td class="radio"><input name="cod_type" id="cod_type_fix" type="radio" value="fix"<?php checked( $this->options['cod_type'], 'fix' ); ?> /></td> |
| 390 |
<td><label for="cod_type_fix"><?php esc_html_e( 'Fixation C.O.D.', 'usces' ); ?></label></td> |
| 391 |
<td class="radio"><input name="cod_type" id="cod_type_change" type="radio" value="change"<?php checked( $this->options['cod_type'], 'change' ); ?> /></td> |
| 392 |
<td><label for="cod_type_change"><?php esc_html_e( 'Variable C.O.D.', 'usces' ); ?></label></td> |
| 393 |
</tr> |
| 394 |
</table> |
| 395 |
<table id="cod_fix_table" class="cod_fix_table"> |
| 396 |
<tr><th><?php esc_html_e( 'Fee', 'usces' ); ?></th><td><input name="cod_fee" type="text" class="short_str num" value="<?php echo esc_attr( $cod_fee ); ?>" /><?php usces_crcode(); ?></td></tr> |
| 397 |
<tr><th><?php esc_html_e( 'The upper limit of the C.O.D.', 'usces' ); ?></th><td><input name="cod_limit_amount" id="cod_limit_amount_fix" type="text" class="short_str num" value="<?php echo esc_attr( $cod_limit_amount ); ?>" /><?php usces_crcode(); ?></td></tr> |
| 398 |
</table> |
| 399 |
<div id="cod_change_table" class="cod_change_table"> |
| 400 |
<input name="addrow" id="add_row" class="button" type="button" value="<?php esc_attr_e( 'Add row', 'usces' ); ?>" /> <input name="delrow" class="button" type="button" id="del_row" value="<?php esc_attr_e( 'Delete row', 'usces' ); ?>" /> |
| 401 |
<table> |
| 402 |
<thead> |
| 403 |
<tr> |
| 404 |
<th colspan="3"><?php esc_html_e( 'A purchase amount', 'usces' ); ?>(<?php usces_crcode(); ?>)</th> |
| 405 |
<th><?php esc_html_e( 'Fee', 'usces' ); ?>(<?php usces_crcode(); ?>)</th> |
| 406 |
</tr> |
| 407 |
<tr><td class="cod_f">0</td><td class="cod_m"><?php esc_html_e( ' - ', 'usces' ); ?></td><td class="cod_e"><input name="cod_first_amount" type="text" class="short_str num" value="<?php echo esc_attr( $cod_first_amount ); ?>" /></td> |
| 408 |
<td class="cod_cod"><input name="cod_first_fee" type="text" class="short_str num" value="<?php echo esc_attr( $cod_first_fee ); ?>" /></td> |
| 409 |
</tr> |
| 410 |
</thead> |
| 411 |
<tbody id="cod_change_field"> |
| 412 |
<?php |
| 413 |
if ( isset( $this->options['cod_amounts'] ) && isset( $this->options['cod_fees'] ) ) { |
| 414 |
foreach ( (array) $this->options['cod_amounts'] as $key => $value ) { |
| 415 |
if ( 0 === $key ) { |
| 416 |
$amount = ( isset( $this->options['cod_first_amount'] ) ? $this->options['cod_first_amount'] : 0 ) + 1; |
| 417 |
} else { |
| 418 |
$amount = $this->options['cod_amounts'][ ( $key - 1 ) ] + 1; |
| 419 |
} |
| 420 |
?> |
| 421 |
<tr id="tr_<?php echo esc_attr( $key ); ?>"> |
| 422 |
<td class="cod_f"><span id="amount_<?php echo esc_attr( $key ); ?>"><?php echo esc_attr( $amount ); ?></span></td> |
| 423 |
<td class="cod_m"><?php esc_html_e( ' - ', 'usces' ); ?></td> |
| 424 |
<td class="cod_e"><input name="cod_amounts[<?php echo esc_attr( $key ); ?>]" type="text" class="short_str num" value="<?php echo esc_attr( $value ); ?>" /></td> |
| 425 |
<td class="cod_cod"><input name="cod_fees[<?php echo esc_attr( $key ); ?>]" type="text" class="short_str num" value="<?php echo esc_attr( $this->options['cod_fees'][ $key ] ); ?>" /></td> |
| 426 |
</tr> |
| 427 |
<?php |
| 428 |
} |
| 429 |
} |
| 430 |
if ( ! isset( $this->options['cod_amounts'] ) || empty( $this->options['cod_amounts'] ) ) { |
| 431 |
$end_amount = ( isset( $this->options['cod_first_amount'] ) ? $this->options['cod_first_amount'] : 0 ) + 1; |
| 432 |
} else { |
| 433 |
$cod_last = count( $this->options['cod_amounts'] ) - 1; |
| 434 |
$end_amount = $this->options['cod_amounts'][ $cod_last ] + 1; |
| 435 |
} |
| 436 |
?> |
| 437 |
</tbody> |
| 438 |
<tfoot> |
| 439 |
<tr> |
| 440 |
<td class="cod_f"><span id="end_amount"><?php echo esc_attr( $end_amount ); ?></span></td> |
| 441 |
<td class="cod_m"><?php esc_html_e( ' - ', 'usces' ); ?></td><td class="cod_e"><input name="cod_limit_amount" id="cod_limit_amount_change" type="text" class="short_str num" value="<?php echo esc_attr( $cod_limit_amount ); ?>" /></td> |
| 442 |
<td class="cod_cod"><input name="cod_end_fee" type="text" class="short_str num" value="<?php echo esc_attr( $cod_end_fee ); ?>" /></td> |
| 443 |
</tr> |
| 444 |
</tfoot> |
| 445 |
</table> |
| 446 |
</div> |
| 447 |
</fieldset> |
| 448 |
</div> |
| 449 |
<?php wp_nonce_field( 'admin_setup', 'wc_nonce' ); ?> |
| 450 |
</form> |
| 451 |
</div><!--usces_admin--> |
| 452 |
</div><!--wrap--> |
| 453 |
|