mirror of
https://github.com/10h30/woo-viet.git
synced 2026-06-05 15:09:49 +09:00
Add the option in the Woo Viet setting page
This commit is contained in:
@@ -88,6 +88,24 @@ class WooViet_Admin_Page {
|
||||
value="<?php echo wp_create_nonce( 'wooviet_save_settings' ) ?>">
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'Add the OnePay Domestic Gateway', 'woo-viet' ) ?></th>
|
||||
<td>
|
||||
<input name="settings[add_onepay_domestic][enabled]" type="hidden" value="no">
|
||||
<input name="settings[add_onepay_domestic][enabled]" type="checkbox" id="add_onepay_domestic" value="yes"
|
||||
<?php if ( 'yes' == $settings['add_onepay_domestic']['enabled'] )
|
||||
echo 'checked="checked"' ?>>
|
||||
<label for="add_onepay_domestic"><?php _e( 'Enabled', 'woo-viet' ) ?></label>
|
||||
<br/>
|
||||
<br/>
|
||||
<label for="">
|
||||
<?php
|
||||
echo sprintf( __('Please configure this gateway under <a href="%s">WooCommerce -> Settings -> Checkout</a>', 'woo-viet'), admin_url( 'admin.php?page=wc-settings&tab=checkout') );
|
||||
?>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'Add provinces for Vietnam', 'woo-viet' ) ?></th>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user