Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings * Fixed case for all _n_noop strings * Fixed case for all _x strings * Fixed case for all __, esc_html__ and esc_attr__ strings * Fixed a few more strings * Fixed strings in unit tests * Fix PayPal Standard case. * Save Order text
This commit is contained in:
parent
77722ecbe3
commit
657c312cae
|
@ -249,7 +249,7 @@
|
|||
* Tweak - Revised email settings screens to show emails in a table and avoid a long sub-nav.
|
||||
* Tweak - Default customer role capabilities.
|
||||
* Tweak - Expire mini-cart cache after 24 hours.
|
||||
* Tweak - Improved refund error messages in PayPal standard.
|
||||
* Tweak - Improved refund error messages in PayPal Standard.
|
||||
* Tweak - Removed language pack downloader in favour of translate.wordpress.org.
|
||||
* Tweak - Added onboarding wizard button to the contextual help so it can be accessed again.
|
||||
* Tweak - When a WordPress user is deleted, turn any orders they have into Guest orders.
|
||||
|
@ -1303,7 +1303,7 @@
|
|||
* Feature - Customer list reports.
|
||||
* Feature - Reports - New design, export csvs, more data.
|
||||
* Feature - Ability to link past orders to a customer (before they registered).
|
||||
* Feature - Authorize option for paypal standard.
|
||||
* Feature - Authorize option for PayPal Standard.
|
||||
* Feature - Separate options for countries you can ship to and sell to.
|
||||
* Feature - BACS supports multiple account details.
|
||||
* Feature - PayPal PDT support (as alternative to IPN).
|
||||
|
@ -1597,7 +1597,7 @@
|
|||
= 2.0.4 - 18/03/2013 =
|
||||
* Tweak - Like my account, added order_count attribute to view order shortcode.
|
||||
* Tweak - Moved WC_Order_Item_Meta into own file.
|
||||
* Tweak - PayPal standard gateway - no longer needs sandbox fix, and notify-validate should be first in the requests.
|
||||
* Tweak - PayPal Standard gateway - no longer needs sandbox fix, and notify-validate should be first in the requests.
|
||||
* Tweak - Flat rate interface tidy up.
|
||||
* Tweak - Add order_id to woocommerce_download_product hook
|
||||
* Tweak - Disabled prettyPhoto deeplinking
|
||||
|
|
|
@ -18143,7 +18143,7 @@ msgstr ""
|
|||
|
||||
#: includes/gateways/paypal/class-wc-gateway-paypal.php:37
|
||||
msgid ""
|
||||
"PayPal standard sends customers to PayPal to enter their payment "
|
||||
"PayPal Standard sends customers to PayPal to enter their payment "
|
||||
"information. PayPal IPN requires fsockopen/cURL support to update order "
|
||||
"statuses after payment. Check the %1$ssystem status%2$s page for more "
|
||||
"details."
|
||||
|
@ -18261,7 +18261,7 @@ msgid "Shipping via %s"
|
|||
msgstr ""
|
||||
|
||||
#: includes/gateways/paypal/includes/settings-paypal.php:14
|
||||
msgid "Enable PayPal standard"
|
||||
msgid "Enable PayPal Standard"
|
||||
msgstr ""
|
||||
|
||||
#: includes/gateways/paypal/includes/settings-paypal.php:28
|
||||
|
|
|
@ -1598,7 +1598,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
|
|||
|
||||
if ( $this->get_total() > 0 && $this->get_payment_method_title() ) {
|
||||
$total_rows['payment_method'] = array(
|
||||
'label' => __( 'Payment Method:', 'woocommerce' ),
|
||||
'label' => __( 'Payment method:', 'woocommerce' ),
|
||||
'value' => $this->get_payment_method_title(),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -453,7 +453,7 @@ abstract class WC_Payment_Gateway extends WC_Settings_API {
|
|||
<label for="wc-%1$s-new-payment-method" style="display:inline;">%2$s</label>
|
||||
</p>',
|
||||
esc_attr( $this->id ),
|
||||
esc_html__( 'Save to Account', 'woocommerce' )
|
||||
esc_html__( 'Save to account', 'woocommerce' )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -415,7 +415,7 @@ abstract class WC_REST_Posts_Controller extends WC_REST_Controller {
|
|||
$post = get_post( $id );
|
||||
|
||||
if ( empty( $id ) || empty( $post->ID ) || ! in_array( $post->post_type, $this->get_post_types() ) ) {
|
||||
return new WP_Error( "woocommerce_rest_{$this->post_type}_invalid_id", __( 'Invalid post id.', 'woocommerce' ), array( 'status' => 404 ) );
|
||||
return new WP_Error( "woocommerce_rest_{$this->post_type}_invalid_id", __( 'ID is invalid.', 'woocommerce' ), array( 'status' => 404 ) );
|
||||
}
|
||||
|
||||
$supports_trash = EMPTY_TRASH_DAYS > 0;
|
||||
|
|
|
@ -732,7 +732,7 @@ abstract class WC_Settings_API {
|
|||
</select>
|
||||
<?php echo $this->get_description_html( $data ); ?>
|
||||
<?php if ( $data['select_buttons'] ) : ?>
|
||||
<br/><a class="select_all button" href="#"><?php _e( 'Select All', 'woocommerce' ); ?></a> <a class="select_none button" href="#"><?php _e( 'Select None', 'woocommerce' ); ?></a>
|
||||
<br/><a class="select_all button" href="#"><?php _e( 'Select all', 'woocommerce' ); ?></a> <a class="select_none button" href="#"><?php _e( 'Select none', 'woocommerce' ); ?></a>
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
</td>
|
||||
|
|
|
@ -38,10 +38,10 @@ class WC_Admin_API_Keys_Table_List extends WP_List_Table {
|
|||
return array(
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'description' => __( 'Description', 'woocommerce' ),
|
||||
'truncated_key' => __( 'Consumer Key Ending In', 'woocommerce' ),
|
||||
'truncated_key' => __( 'Consumer key ending in', 'woocommerce' ),
|
||||
'user' => __( 'User', 'woocommerce' ),
|
||||
'permissions' => __( 'Permissions', 'woocommerce' ),
|
||||
'last_access' => __( 'Last Access', 'woocommerce' ),
|
||||
'last_access' => __( 'Last access', 'woocommerce' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ class WC_Admin_API_Keys_Table_List extends WP_List_Table {
|
|||
$output = '<strong>';
|
||||
$output .= '<a href="' . esc_url( $url ) . '" class="row-title">';
|
||||
if ( empty( $key['description'] ) ) {
|
||||
$output .= esc_html__( 'API Key', 'woocommerce' );
|
||||
$output .= esc_html__( 'API key', 'woocommerce' );
|
||||
} else {
|
||||
$output .= esc_html( $key['description'] );
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ class WC_Admin_API_Keys_Table_List extends WP_List_Table {
|
|||
$actions = array(
|
||||
'id' => sprintf( __( 'ID: %d', 'woocommerce' ), $key['key_id'] ),
|
||||
'edit' => '<a href="' . esc_url( $url ) . '">' . __( 'View/Edit', 'woocommerce' ) . '</a>',
|
||||
'trash' => '<a class="submitdelete" title="' . esc_attr__( 'Revoke API Key', 'woocommerce' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key['key_id'] ), admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke', 'woocommerce' ) . '</a>',
|
||||
'trash' => '<a class="submitdelete" title="' . esc_attr__( 'Revoke API key', 'woocommerce' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key['key_id'] ), admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke', 'woocommerce' ) . '</a>',
|
||||
);
|
||||
|
||||
$row_actions = array();
|
||||
|
|
|
@ -58,7 +58,7 @@ class WC_Admin_API_Keys {
|
|||
* Table list output.
|
||||
*/
|
||||
private static function table_list_output() {
|
||||
echo '<h2>' . __( 'Keys/Apps', 'woocommerce' ) . ' <a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys&create-key=1' ) ) . '" class="add-new-h2">' . __( 'Add Key', 'woocommerce' ) . '</a></h2>';
|
||||
echo '<h2>' . __( 'Keys/Apps', 'woocommerce' ) . ' <a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys&create-key=1' ) ) . '" class="add-new-h2">' . __( 'Add key', 'woocommerce' ) . '</a></h2>';
|
||||
|
||||
$keys_table_list = new WC_Admin_API_Keys_Table_List();
|
||||
$keys_table_list->prepare_items();
|
||||
|
@ -68,7 +68,7 @@ class WC_Admin_API_Keys {
|
|||
echo '<input type="hidden" name="section" value="keys" />';
|
||||
|
||||
$keys_table_list->views();
|
||||
$keys_table_list->search_box( __( 'Search Key', 'woocommerce' ), 'key' );
|
||||
$keys_table_list->search_box( __( 'Search key', 'woocommerce' ), 'key' );
|
||||
$keys_table_list->display();
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ class WC_Admin_API_Keys {
|
|||
*/
|
||||
public static function notices() {
|
||||
if ( isset( $_GET['revoked'] ) && 1 == $_GET['revoked'] ) {
|
||||
WC_Admin_Settings::add_message( __( 'API Key revoked successfully.', 'woocommerce' ) );
|
||||
WC_Admin_Settings::add_message( __( 'API key revoked successfully.', 'woocommerce' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ class WC_Admin_Attributes {
|
|||
?>
|
||||
<div class="wrap woocommerce">
|
||||
<div class="icon32 icon32-attributes" id="icon-woocommerce"><br/></div>
|
||||
<h1><?php _e( 'Edit Attribute', 'woocommerce' ) ?></h1>
|
||||
<h1><?php _e( 'Edit attribute', 'woocommerce' ) ?></h1>
|
||||
|
||||
<?php
|
||||
|
||||
|
@ -292,7 +292,7 @@ class WC_Admin_Attributes {
|
|||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row" valign="top">
|
||||
<label for="attribute_public"><?php _e( 'Enable Archives?', 'woocommerce' ); ?></label>
|
||||
<label for="attribute_public"><?php _e( 'Enable archives?', 'woocommerce' ); ?></label>
|
||||
</th>
|
||||
<td>
|
||||
<input name="attribute_public" id="attribute_public" type="checkbox" value="1" <?php checked( $att_public, 1 ); ?> />
|
||||
|
@ -438,7 +438,7 @@ class WC_Admin_Attributes {
|
|||
<div id="col-left">
|
||||
<div class="col-wrap">
|
||||
<div class="form-wrap">
|
||||
<h2><?php _e( 'Add New Attribute', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Add new attribute', 'woocommerce' ); ?></h2>
|
||||
<p><?php _e( 'Attributes let you define extra product data, such as size or colour. You can use these attributes in the shop sidebar using the "layered nav" widgets. Please note: you cannot rename an attribute later on.', 'woocommerce' ); ?></p>
|
||||
<form action="edit.php?post_type=product&page=product_attributes" method="post">
|
||||
<?php do_action( 'woocommerce_before_add_attribute_fields' ) ?>
|
||||
|
@ -494,7 +494,7 @@ class WC_Admin_Attributes {
|
|||
|
||||
<?php do_action( 'woocommerce_after_add_attribute_fields' ) ?>
|
||||
|
||||
<p class="submit"><input type="submit" name="add_new_attribute" id="submit" class="button button-primary" value="<?php esc_attr_e( 'Add Attribute', 'woocommerce' ); ?>"></p>
|
||||
<p class="submit"><input type="submit" name="add_new_attribute" id="submit" class="button button-primary" value="<?php esc_attr_e( 'Add attribute', 'woocommerce' ); ?>"></p>
|
||||
<?php wp_nonce_field( 'woocommerce-add-new_attribute' ); ?>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -34,10 +34,10 @@ class WC_Admin_Dashboard {
|
|||
*/
|
||||
public function init() {
|
||||
if ( current_user_can( 'publish_shop_orders' ) ) {
|
||||
wp_add_dashboard_widget( 'woocommerce_dashboard_recent_reviews', __( 'WooCommerce Recent Reviews', 'woocommerce' ), array( $this, 'recent_reviews' ) );
|
||||
wp_add_dashboard_widget( 'woocommerce_dashboard_recent_reviews', __( 'WooCommerce recent reviews', 'woocommerce' ), array( $this, 'recent_reviews' ) );
|
||||
}
|
||||
|
||||
wp_add_dashboard_widget( 'woocommerce_dashboard_status', __( 'WooCommerce Status', 'woocommerce' ), array( $this, 'status_widget' ) );
|
||||
wp_add_dashboard_widget( 'woocommerce_dashboard_status', __( 'WooCommerce status', 'woocommerce' ), array( $this, 'status_widget' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,47 +38,47 @@ class WC_Admin_Help {
|
|||
|
||||
$video_map = array(
|
||||
'wc-settings' => array(
|
||||
'title' => __( 'General Settings', 'woocommerce' ),
|
||||
'title' => __( 'General settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6?videoFoam=true',
|
||||
),
|
||||
'wc-settings-general' => array(
|
||||
'title' => __( 'General Settings', 'woocommerce' ),
|
||||
'title' => __( 'General settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/mz2l10u5f6?videoFoam=true',
|
||||
),
|
||||
'wc-settings-products' => array(
|
||||
'title' => __( 'Product Settings', 'woocommerce' ),
|
||||
'title' => __( 'Product settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/lolkan4fxf?videoFoam=true',
|
||||
),
|
||||
'wc-settings-tax' => array(
|
||||
'title' => __( 'Tax Settings', 'woocommerce' ),
|
||||
'title' => __( 'Tax settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/qp1v19dwrh?videoFoam=true',
|
||||
),
|
||||
'wc-settings-shipping' => array(
|
||||
'title' => __( 'Shipping Zones', 'woocommerce' ),
|
||||
'title' => __( 'Shipping zones', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/95yiocro6p?videoFoam=true',
|
||||
),
|
||||
'wc-settings-shipping-options' => array(
|
||||
'title' => __( 'Shipping Options', 'woocommerce' ),
|
||||
'title' => __( 'Shipping options', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/9c9008dxnr?videoFoam=true',
|
||||
),
|
||||
'wc-settings-shipping-classes' => array(
|
||||
'title' => __( 'Shipping Classes', 'woocommerce' ),
|
||||
'title' => __( 'Shipping classes', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/tpqg17aq99?videoFoam=true',
|
||||
),
|
||||
'wc-settings-checkout' => array(
|
||||
'title' => __( 'Checkout Settings', 'woocommerce' ),
|
||||
'title' => __( 'Checkout settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/65yjv96z51?videoFoam=true',
|
||||
),
|
||||
'wc-settings-checkout-bacs' => array(
|
||||
'title' => __( 'Bank Transfer (BACS) Payments', 'woocommerce' ),
|
||||
'title' => __( 'Bank transfer (BACS) payments', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/dh4piy3sek?videoFoam=true',
|
||||
),
|
||||
'wc-settings-checkout-cheque' => array(
|
||||
'title' => __( 'Check Payments', 'woocommerce' ),
|
||||
'title' => __( 'Check payments', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/u2m2kcakea?videoFoam=true',
|
||||
),
|
||||
'wc-settings-checkout-cod' => array(
|
||||
'title' => __( 'Cash on Delivery', 'woocommerce' ),
|
||||
'title' => __( 'Cash on delivery', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/8hyli8wu5f?videoFoam=true',
|
||||
),
|
||||
'wc-settings-checkout-paypal' => array(
|
||||
|
@ -98,35 +98,35 @@ class WC_Admin_Help {
|
|||
'url' => '//fast.wistia.net/embed/iframe/jdfzjiiw61?videoFoam=true',
|
||||
),
|
||||
'wc-settings-account' => array(
|
||||
'title' => __( 'Account Settings', 'woocommerce' ),
|
||||
'title' => __( 'Account settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/35mazq7il2?videoFoam=true',
|
||||
),
|
||||
'wc-settings-email' => array(
|
||||
'title' => __( 'Email Settings', 'woocommerce' ),
|
||||
'title' => __( 'Email settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/svcaftq4xv?videoFoam=true',
|
||||
),
|
||||
'wc-settings-api' => array(
|
||||
'title' => __( 'Webhook Settings', 'woocommerce' ),
|
||||
'title' => __( 'Webhook settings', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq?videoFoam=true',
|
||||
),
|
||||
'product' => array(
|
||||
'title' => __( 'Simple Products', 'woocommerce' ),
|
||||
'title' => __( 'Simple products', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/ziyjmd4kut?videoFoam=true',
|
||||
),
|
||||
'edit-product_cat' => array(
|
||||
'title' => __( 'Product Categories', 'woocommerce' ),
|
||||
'title' => __( 'Product categories', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg?videoFoam=true',
|
||||
),
|
||||
'edit-product_tag' => array(
|
||||
'title' => __( 'Product Categories, Tags, Shipping Classes, & Attributes', 'woocommerce' ),
|
||||
'title' => __( 'Product categories, tags, shipping classes, and attributes', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg?videoFoam=true',
|
||||
),
|
||||
'product_attributes' => array(
|
||||
'title' => __( 'Product Categories, Tags, Shipping Classes, & Attributes', 'woocommerce' ),
|
||||
'title' => __( 'Product categories, tags, shipping classes, and attributes', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/f0j5gzqigg?videoFoam=true',
|
||||
),
|
||||
'wc-status' => array(
|
||||
'title' => __( 'System Status', 'woocommerce' ),
|
||||
'title' => __( 'System status', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/xdn733nnhi?videoFoam=true',
|
||||
),
|
||||
'wc-reports' => array(
|
||||
|
@ -142,11 +142,11 @@ class WC_Admin_Help {
|
|||
'url' => '//fast.wistia.net/embed/iframe/gupd4h8sit?videoFoam=true',
|
||||
),
|
||||
'edit-shop_order' => array(
|
||||
'title' => __( 'Managing Orders', 'woocommerce' ),
|
||||
'title' => __( 'Managing orders', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee?videoFoam=true',
|
||||
),
|
||||
'shop_order' => array(
|
||||
'title' => __( 'Managing Orders', 'woocommerce' ),
|
||||
'title' => __( 'Managing orders', 'woocommerce' ),
|
||||
'url' => '//fast.wistia.net/embed/iframe/n8n0sa8hee?videoFoam=true',
|
||||
),
|
||||
);
|
||||
|
@ -194,7 +194,7 @@ class WC_Admin_Help {
|
|||
'</a>'
|
||||
) . '</p>' .
|
||||
'<p>' . __( 'Before asking for help we recommend checking the system status page to identify any problems with your configuration.', 'woocommerce' ) . '</p>' .
|
||||
'<p><a href="' . admin_url( 'admin.php?page=wc-status' ) . '" class="button button-primary">' . __( 'System Status', 'woocommerce' ) . '</a> <a href="' . 'https://wordpress.org/support/plugin/woocommerce' . '" class="button">' . __( 'Community Forum', 'woocommerce' ) . '</a> <a href="' . 'https://woocommerce.com/my-account/tickets/?utm_source=helptab&utm_medium=product&utm_content=tickets&utm_campaign=woocommerceplugin' . '" class="button">' . __( 'WooCommerce Helpdesk', 'woocommerce' ) . '</a></p>',
|
||||
'<p><a href="' . admin_url( 'admin.php?page=wc-status' ) . '" class="button button-primary">' . __( 'System status', 'woocommerce' ) . '</a> <a href="' . 'https://wordpress.org/support/plugin/woocommerce' . '" class="button">' . __( 'Community forum', 'woocommerce' ) . '</a> <a href="' . 'https://woocommerce.com/my-account/tickets/?utm_source=helptab&utm_medium=product&utm_content=tickets&utm_campaign=woocommerceplugin' . '" class="button">' . __( 'WooCommerce helpdesk', 'woocommerce' ) . '</a></p>',
|
||||
) );
|
||||
|
||||
$screen->add_help_tab( array(
|
||||
|
@ -203,7 +203,7 @@ class WC_Admin_Help {
|
|||
'content' =>
|
||||
'<h2>' . __( 'Found a bug?', 'woocommerce' ) . '</h2>' .
|
||||
'<p>' . sprintf( __( 'If you find a bug within WooCommerce core you can create a ticket via <a href="%1$s">Github issues</a>. Ensure you read the <a href="%2$s">contribution guide</a> prior to submitting your report. To help us solve your issue, please be as descriptive as possible and include your <a href="%3$s">system status report</a>.', 'woocommerce' ), 'https://github.com/woocommerce/woocommerce/issues?state=open', 'https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md', admin_url( 'admin.php?page=wc-status' ) ) . '</p>' .
|
||||
'<p><a href="' . 'https://github.com/woocommerce/woocommerce/issues?state=open' . '" class="button button-primary">' . __( 'Report a bug', 'woocommerce' ) . '</a> <a href="' . admin_url( 'admin.php?page=wc-status' ) . '" class="button">' . __( 'System Status', 'woocommerce' ) . '</a></p>',
|
||||
'<p><a href="' . 'https://github.com/woocommerce/woocommerce/issues?state=open' . '" class="button button-primary">' . __( 'Report a bug', 'woocommerce' ) . '</a> <a href="' . admin_url( 'admin.php?page=wc-status' ) . '" class="button">' . __( 'System status', 'woocommerce' ) . '</a></p>',
|
||||
|
||||
) );
|
||||
|
||||
|
@ -213,26 +213,26 @@ class WC_Admin_Help {
|
|||
'content' =>
|
||||
'<h2>' . __( 'Education', 'woocommerce' ) . '</h2>' .
|
||||
'<p>' . __( 'If you would like to learn about using WooCommerce from an expert, consider following a WooCommerce course offered by one of our educational partners.', 'woocommerce' ) . '</p>' .
|
||||
'<p><a href="' . 'https://woocommerce.com/educational-partners/?utm_source=helptab&utm_medium=product&utm_content=edupartners&utm_campaign=woocommerceplugin' . '" class="button button-primary">' . __( 'View Education Partners', 'woocommerce' ) . '</a></p>',
|
||||
'<p><a href="' . 'https://woocommerce.com/educational-partners/?utm_source=helptab&utm_medium=product&utm_content=edupartners&utm_campaign=woocommerceplugin' . '" class="button button-primary">' . __( 'View education partners', 'woocommerce' ) . '</a></p>',
|
||||
) );
|
||||
|
||||
$screen->add_help_tab( array(
|
||||
'id' => 'woocommerce_onboard_tab',
|
||||
'title' => __( 'Setup Wizard', 'woocommerce' ),
|
||||
'title' => __( 'Setup wizard', 'woocommerce' ),
|
||||
'content' =>
|
||||
'<h2>' . __( 'Setup Wizard', 'woocommerce' ) . '</h2>' .
|
||||
'<h2>' . __( 'Setup wizard', 'woocommerce' ) . '</h2>' .
|
||||
'<p>' . __( 'If you need to access the setup wizard again, please click on the button below.', 'woocommerce' ) . '</p>' .
|
||||
'<p><a href="' . admin_url( 'index.php?page=wc-setup' ) . '" class="button button-primary">' . __( 'Setup Wizard', 'woocommerce' ) . '</a></p>',
|
||||
'<p><a href="' . admin_url( 'index.php?page=wc-setup' ) . '" class="button button-primary">' . __( 'Setup wizard', 'woocommerce' ) . '</a></p>',
|
||||
|
||||
) );
|
||||
|
||||
$screen->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:', 'woocommerce' ) . '</strong></p>' .
|
||||
'<p><a href="' . 'https://woocommerce.com/?utm_source=helptab&utm_medium=product&utm_content=about&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'About WooCommerce', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://wordpress.org/extend/plugins/woocommerce/' . '" target="_blank">' . __( 'WordPress.org Project', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://github.com/woocommerce/woocommerce' . '" target="_blank">' . __( 'Github Project', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://woocommerce.com/product-category/themes/woocommerce/?utm_source=helptab&utm_medium=product&utm_content=wcthemes&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official Themes', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://woocommerce.com/product-category/woocommerce-extensions/?utm_source=helptab&utm_medium=product&utm_content=wcextensions&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official Extensions', 'woocommerce' ) . '</a></p>'
|
||||
'<p><a href="' . 'https://wordpress.org/extend/plugins/woocommerce/' . '" target="_blank">' . __( 'WordPress.org project', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://github.com/woocommerce/woocommerce' . '" target="_blank">' . __( 'Github project', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://woocommerce.com/product-category/themes/woocommerce/?utm_source=helptab&utm_medium=product&utm_content=wcthemes&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official themes', 'woocommerce' ) . '</a></p>' .
|
||||
'<p><a href="' . 'https://woocommerce.com/product-category/woocommerce-extensions/?utm_source=helptab&utm_medium=product&utm_content=wcextensions&utm_campaign=woocommerceplugin' . '" target="_blank">' . __( 'Official extensions', 'woocommerce' ) . '</a></p>'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ class WC_Admin_Importers {
|
|||
* Add menu items.
|
||||
*/
|
||||
public function register_importers() {
|
||||
register_importer( 'woocommerce_tax_rate_csv', __( 'WooCommerce Tax Rates (CSV)', 'woocommerce' ), __( 'Import <strong>tax rates</strong> to your store via a csv file.', 'woocommerce' ), array( $this, 'tax_rates_importer' ) );
|
||||
register_importer( 'woocommerce_tax_rate_csv', __( 'WooCommerce tax rates (CSV)', 'woocommerce' ), __( 'Import <strong>tax rates</strong> to your store via a csv file.', 'woocommerce' ), array( $this, 'tax_rates_importer' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -69,7 +69,7 @@ class WC_Admin_Menus {
|
|||
if ( current_user_can( 'manage_woocommerce' ) ) {
|
||||
add_submenu_page( 'woocommerce', __( 'Reports', 'woocommerce' ), __( 'Reports', 'woocommerce' ) , 'view_woocommerce_reports', 'wc-reports', array( $this, 'reports_page' ) );
|
||||
} else {
|
||||
add_menu_page( __( 'Sales Reports', 'woocommerce' ), __( 'Sales Reports', 'woocommerce' ) , 'view_woocommerce_reports', 'wc-reports', array( $this, 'reports_page' ), null, '55.6' );
|
||||
add_menu_page( __( 'Sales reports', 'woocommerce' ), __( 'Sales reports', 'woocommerce' ) , 'view_woocommerce_reports', 'wc-reports', array( $this, 'reports_page' ), null, '55.6' );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ class WC_Admin_Menus {
|
|||
* Add menu item.
|
||||
*/
|
||||
public function settings_menu() {
|
||||
$settings_page = add_submenu_page( 'woocommerce', __( 'WooCommerce Settings', 'woocommerce' ), __( 'Settings', 'woocommerce' ) , 'manage_woocommerce', 'wc-settings', array( $this, 'settings_page' ) );
|
||||
$settings_page = add_submenu_page( 'woocommerce', __( 'WooCommerce settings', 'woocommerce' ), __( 'Settings', 'woocommerce' ) , 'manage_woocommerce', 'wc-settings', array( $this, 'settings_page' ) );
|
||||
|
||||
add_action( 'load-' . $settings_page, array( $this, 'settings_page_init' ) );
|
||||
}
|
||||
|
@ -94,14 +94,14 @@ class WC_Admin_Menus {
|
|||
* Add menu item.
|
||||
*/
|
||||
public function status_menu() {
|
||||
add_submenu_page( 'woocommerce', __( 'WooCommerce Status', 'woocommerce' ), __( 'System Status', 'woocommerce' ) , 'manage_woocommerce', 'wc-status', array( $this, 'status_page' ) );
|
||||
add_submenu_page( 'woocommerce', __( 'WooCommerce status', 'woocommerce' ), __( 'System status', 'woocommerce' ) , 'manage_woocommerce', 'wc-status', array( $this, 'status_page' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Addons menu item.
|
||||
*/
|
||||
public function addons_menu() {
|
||||
add_submenu_page( 'woocommerce', __( 'WooCommerce Extensions', 'woocommerce' ), __( 'Extensions', 'woocommerce' ) , 'manage_woocommerce', 'wc-addons', array( $this, 'addons_page' ) );
|
||||
add_submenu_page( 'woocommerce', __( 'WooCommerce extensions', 'woocommerce' ), __( 'Extensions', 'woocommerce' ) , 'manage_woocommerce', 'wc-addons', array( $this, 'addons_page' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -231,7 +231,7 @@ class WC_Admin_Menus {
|
|||
* Adapted from http://www.johnmorrisonline.com/how-to-add-a-fully-functional-custom-meta-box-to-wordpress-navigation-menus/.
|
||||
*/
|
||||
public function add_nav_menu_meta_boxes() {
|
||||
add_meta_box( 'woocommerce_endpoints_nav_link', __( 'WooCommerce Endpoints', 'woocommerce' ), array( $this, 'nav_menu_links' ), 'nav-menus', 'side', 'low' );
|
||||
add_meta_box( 'woocommerce_endpoints_nav_link', __( 'WooCommerce endpoints', 'woocommerce' ), array( $this, 'nav_menu_links' ), 'nav-menus', 'side', 'low' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -267,10 +267,10 @@ class WC_Admin_Menus {
|
|||
</div>
|
||||
<p class="button-controls">
|
||||
<span class="list-controls">
|
||||
<a href="<?php echo admin_url( 'nav-menus.php?page-tab=all&selectall=1#posttype-woocommerce-endpoints' ); ?>" class="select-all"><?php _e( 'Select All', 'woocommerce' ); ?></a>
|
||||
<a href="<?php echo admin_url( 'nav-menus.php?page-tab=all&selectall=1#posttype-woocommerce-endpoints' ); ?>" class="select-all"><?php _e( 'Select all', 'woocommerce' ); ?></a>
|
||||
</span>
|
||||
<span class="add-to-menu">
|
||||
<input type="submit" class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu', 'woocommerce' ); ?>" name="add-post-type-menu-item" id="submit-posttype-woocommerce-endpoints">
|
||||
<input type="submit" class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to menu', 'woocommerce' ); ?>" name="add-post-type-menu-item" id="submit-posttype-woocommerce-endpoints">
|
||||
<span class="spinner"></span>
|
||||
</span>
|
||||
</p>
|
||||
|
@ -303,7 +303,7 @@ class WC_Admin_Menus {
|
|||
$wp_admin_bar->add_node( array(
|
||||
'parent' => 'site-name',
|
||||
'id' => 'view-store',
|
||||
'title' => __( 'Visit Store', 'woocommerce' ),
|
||||
'title' => __( 'Visit store', 'woocommerce' ),
|
||||
'href' => wc_get_page_permalink( 'shop' ),
|
||||
) );
|
||||
}
|
||||
|
|
|
@ -110,22 +110,22 @@ class WC_Admin_Meta_Boxes {
|
|||
*/
|
||||
public function add_meta_boxes() {
|
||||
// Products
|
||||
add_meta_box( 'postexcerpt', __( 'Product Short Description', 'woocommerce' ), 'WC_Meta_Box_Product_Short_Description::output', 'product', 'normal' );
|
||||
add_meta_box( 'woocommerce-product-data', __( 'Product Data', 'woocommerce' ), 'WC_Meta_Box_Product_Data::output', 'product', 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-product-images', __( 'Product Gallery', 'woocommerce' ), 'WC_Meta_Box_Product_Images::output', 'product', 'side', 'low' );
|
||||
add_meta_box( 'postexcerpt', __( 'Product short description', 'woocommerce' ), 'WC_Meta_Box_Product_Short_Description::output', 'product', 'normal' );
|
||||
add_meta_box( 'woocommerce-product-data', __( 'Product data', 'woocommerce' ), 'WC_Meta_Box_Product_Data::output', 'product', 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-product-images', __( 'Product gallery', 'woocommerce' ), 'WC_Meta_Box_Product_Images::output', 'product', 'side', 'low' );
|
||||
|
||||
// Orders
|
||||
foreach ( wc_get_order_types( 'order-meta-boxes' ) as $type ) {
|
||||
$order_type_object = get_post_type_object( $type );
|
||||
add_meta_box( 'woocommerce-order-data', sprintf( __( '%s Data', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Data::output', $type, 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-order-data', sprintf( __( '%s data', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Data::output', $type, 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-order-items', __( 'Items', 'woocommerce' ), 'WC_Meta_Box_Order_Items::output', $type, 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-order-notes', sprintf( __( '%s Notes', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Notes::output', $type, 'side', 'default' );
|
||||
add_meta_box( 'woocommerce-order-downloads', __( 'Downloadable Product Permissions', 'woocommerce' ) . wc_help_tip( __( 'Note: Permissions for order items will automatically be granted when the order status changes to processing/completed.', 'woocommerce' ) ), 'WC_Meta_Box_Order_Downloads::output', $type, 'normal', 'default' );
|
||||
add_meta_box( 'woocommerce-order-actions', sprintf( __( '%s Actions', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Actions::output', $type, 'side', 'high' );
|
||||
add_meta_box( 'woocommerce-order-notes', sprintf( __( '%s notes', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Notes::output', $type, 'side', 'default' );
|
||||
add_meta_box( 'woocommerce-order-downloads', __( 'Downloadable product permissions', 'woocommerce' ) . wc_help_tip( __( 'Note: Permissions for order items will automatically be granted when the order status changes to processing/completed.', 'woocommerce' ) ), 'WC_Meta_Box_Order_Downloads::output', $type, 'normal', 'default' );
|
||||
add_meta_box( 'woocommerce-order-actions', sprintf( __( '%s actions', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Actions::output', $type, 'side', 'high' );
|
||||
}
|
||||
|
||||
// Coupons
|
||||
add_meta_box( 'woocommerce-coupon-data', __( 'Coupon Data', 'woocommerce' ), 'WC_Meta_Box_Coupon_Data::output', 'shop_coupon', 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-coupon-data', __( 'Coupon data', 'woocommerce' ), 'WC_Meta_Box_Coupon_Data::output', 'shop_coupon', 'normal', 'high' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -33,7 +33,7 @@ class WC_Admin_Permalink_Settings {
|
|||
*/
|
||||
public function settings_init() {
|
||||
// Add a section to the permalinks page
|
||||
add_settings_section( 'woocommerce-permalink', __( 'Product Permalinks', 'woocommerce' ), array( $this, 'settings' ), 'permalink' );
|
||||
add_settings_section( 'woocommerce-permalink', __( 'Product permalinks', 'woocommerce' ), array( $this, 'settings' ), 'permalink' );
|
||||
|
||||
// Add our settings
|
||||
add_settings_field(
|
||||
|
@ -127,7 +127,7 @@ class WC_Admin_Permalink_Settings {
|
|||
<?php endif; ?>
|
||||
<tr>
|
||||
<th><label><input name="product_permalink" id="woocommerce_custom_selection" type="radio" value="custom" class="tog" <?php checked( in_array( $product_permalink, $structures ), false ); ?> />
|
||||
<?php _e( 'Custom Base', 'woocommerce' ); ?></label></th>
|
||||
<?php _e( 'Custom base', 'woocommerce' ); ?></label></th>
|
||||
<td>
|
||||
<input name="product_permalink_structure" id="woocommerce_permalink_structure" type="text" value="<?php echo esc_attr( $product_permalink ); ?>" class="regular-text code"> <span class="description"><?php _e( 'Enter a custom base to use. A base <strong>must</strong> be set or WordPress will use default instead.', 'woocommerce' ); ?></span>
|
||||
</td>
|
||||
|
|
|
@ -57,7 +57,7 @@ class WC_Admin_Pointers {
|
|||
'event' => 'input',
|
||||
),
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Product Name', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Product name', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'Give your new product a name here. This is a required field and will be what your customers will see in your store.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'top',
|
||||
|
@ -70,7 +70,7 @@ class WC_Admin_Pointers {
|
|||
'next' => 'product-type',
|
||||
'next_trigger' => array(),
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Product Description', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Product description', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'This is your products main body of content. Here you should describe your product in detail.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'bottom',
|
||||
|
@ -86,7 +86,7 @@ class WC_Admin_Pointers {
|
|||
'event' => 'change blur click',
|
||||
),
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Choose Product Type', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Choose product type', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'Choose a type for this product. Simple is suitable for most physical goods and services (we recommend setting up a simple product for now).', 'woocommerce' ) . '</p>' .
|
||||
'<p>' . esc_html__( 'Variable is for more complex products such as t-shirts with multiple sizes.', 'woocommerce' ) . '</p>' .
|
||||
'<p>' . esc_html__( 'Grouped products are for grouping several simple products into one.', 'woocommerce' ) . '</p>' .
|
||||
|
@ -105,7 +105,7 @@ class WC_Admin_Pointers {
|
|||
'event' => 'change',
|
||||
),
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Virtual Products', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Virtual products', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'Check the "Virtual" box if this is a non-physical item, for example a service, which does not need shipping.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'bottom',
|
||||
|
@ -121,7 +121,7 @@ class WC_Admin_Pointers {
|
|||
'event' => 'change',
|
||||
),
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Downloadable Products', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Downloadable products', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'If purchasing this product gives a customer access to a downloadable file, e.g. software, check this box.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'bottom',
|
||||
|
@ -153,7 +153,7 @@ class WC_Admin_Pointers {
|
|||
'event' => 'input',
|
||||
),
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Product Short Description', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Product short description', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'Add a quick summary for your product here. This will appear on the product page under the product name.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'bottom',
|
||||
|
@ -165,7 +165,7 @@ class WC_Admin_Pointers {
|
|||
'target' => "#postimagediv",
|
||||
'next' => 'product_tag',
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Product Images', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Product images', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'Upload or assign an image to your product here. This image will be shown in your store\'s catalog.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'right',
|
||||
|
@ -177,7 +177,7 @@ class WC_Admin_Pointers {
|
|||
'target' => "#tagsdiv-product_tag",
|
||||
'next' => 'product_catdiv',
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Product Tags', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Product tags', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'You can optionally "tag" your products here. Tags as a method of labeling your products to make them easier for customers to find.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'right',
|
||||
|
@ -189,7 +189,7 @@ class WC_Admin_Pointers {
|
|||
'target' => "#product_catdiv",
|
||||
'next' => 'submitdiv',
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Product Categories', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Product categories', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'Optionally assign categories to your products to make them easier to browse through and find in your store.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'right',
|
||||
|
@ -201,7 +201,7 @@ class WC_Admin_Pointers {
|
|||
'target' => "#submitdiv",
|
||||
'next' => '',
|
||||
'options' => array(
|
||||
'content' => '<h3>' . esc_html__( 'Publish Your Product!', 'woocommerce' ) . '</h3>' .
|
||||
'content' => '<h3>' . esc_html__( 'Publish your product!', 'woocommerce' ) . '</h3>' .
|
||||
'<p>' . esc_html__( 'When you are finished editing your product, hit the "Publish" button to publish your product to your store.', 'woocommerce' ) . '</p>',
|
||||
'position' => array(
|
||||
'edge' => 'right',
|
||||
|
|
|
@ -135,10 +135,10 @@ class WC_Admin_Post_Types {
|
|||
5 => isset( $_GET['revision'] ) ? sprintf( __( 'Product restored to revision from %s', 'woocommerce' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
||||
6 => sprintf( __( 'Product published. <a href="%s">View Product</a>', 'woocommerce' ), esc_url( get_permalink( $post_ID ) ) ),
|
||||
7 => __( 'Product saved.', 'woocommerce' ),
|
||||
8 => sprintf( __( 'Product submitted. <a target="_blank" href="%s">Preview Product</a>', 'woocommerce' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ) ),
|
||||
9 => sprintf( __( 'Product scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview Product</a>', 'woocommerce' ),
|
||||
8 => sprintf( __( 'Product submitted. <a target="_blank" href="%s">Preview product</a>', 'woocommerce' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ) ),
|
||||
9 => sprintf( __( 'Product scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview product</a>', 'woocommerce' ),
|
||||
date_i18n( __( 'M j, Y @ G:i', 'woocommerce' ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post_ID ) ) ),
|
||||
10 => sprintf( __( 'Product draft updated. <a target="_blank" href="%s">Preview Product</a>', 'woocommerce' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ) ),
|
||||
10 => sprintf( __( 'Product draft updated. <a target="_blank" href="%s">Preview product</a>', 'woocommerce' ), esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ) ),
|
||||
);
|
||||
|
||||
$messages['shop_order'] = array(
|
||||
|
@ -278,8 +278,8 @@ class WC_Admin_Post_Types {
|
|||
$columns['order_items'] = __( 'Purchased', 'woocommerce' );
|
||||
$columns['billing_address'] = __( 'Billing', 'woocommerce' );
|
||||
$columns['shipping_address'] = __( 'Ship to', 'woocommerce' );
|
||||
$columns['customer_message'] = '<span class="notes_head tips" data-tip="' . esc_attr__( 'Customer Message', 'woocommerce' ) . '">' . esc_attr__( 'Customer Message', 'woocommerce' ) . '</span>';
|
||||
$columns['order_notes'] = '<span class="order-notes_head tips" data-tip="' . esc_attr__( 'Order Notes', 'woocommerce' ) . '">' . esc_attr__( 'Order Notes', 'woocommerce' ) . '</span>';
|
||||
$columns['customer_message'] = '<span class="notes_head tips" data-tip="' . esc_attr__( 'Customer message', 'woocommerce' ) . '">' . esc_attr__( 'Customer message', 'woocommerce' ) . '</span>';
|
||||
$columns['order_notes'] = '<span class="order-notes_head tips" data-tip="' . esc_attr__( 'Order notes', 'woocommerce' ) . '">' . esc_attr__( 'Order notes', 'woocommerce' ) . '</span>';
|
||||
$columns['order_date'] = __( 'Date', 'woocommerce' );
|
||||
$columns['order_total'] = __( 'Total', 'woocommerce' );
|
||||
$columns['order_actions'] = __( 'Actions', 'woocommerce' );
|
||||
|
@ -457,7 +457,7 @@ class WC_Admin_Post_Types {
|
|||
}
|
||||
|
||||
if ( 'trash' == $post->post_status || ! EMPTY_TRASH_DAYS ) {
|
||||
$actions['delete'] = '<a class="submitdelete" title="' . esc_attr( __( 'Delete this item permanently', 'woocommerce' ) ) . '" href="' . get_delete_post_link( $post->ID, '', true ) . '">' . __( 'Delete Permanently', 'woocommerce' ) . '</a>';
|
||||
$actions['delete'] = '<a class="submitdelete" title="' . esc_attr( __( 'Delete this item permanently', 'woocommerce' ) ) . '" href="' . get_delete_post_link( $post->ID, '', true ) . '">' . __( 'Delete permanently', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
}
|
||||
if ( $post_type_object->public ) {
|
||||
|
@ -584,7 +584,7 @@ class WC_Admin_Post_Types {
|
|||
}
|
||||
|
||||
if ( 'trash' == $post->post_status || ! EMPTY_TRASH_DAYS ) {
|
||||
$actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently', 'woocommerce' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently', 'woocommerce' ) . "</a>";
|
||||
$actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently', 'woocommerce' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete permanently', 'woocommerce' ) . "</a>";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -939,7 +939,7 @@ class WC_Admin_Post_Types {
|
|||
$query_string = remove_query_arg( array( 'orderby', 'order' ) );
|
||||
$query_string = add_query_arg( 'orderby', urlencode( 'menu_order title' ), $query_string );
|
||||
$query_string = add_query_arg( 'order', urlencode( 'ASC' ), $query_string );
|
||||
$views['byorder'] = '<a href="' . esc_url( $query_string ) . '" class="' . esc_attr( $class ) . '">' . __( 'Sort Products', 'woocommerce' ) . '</a>';
|
||||
$views['byorder'] = '<a href="' . esc_url( $query_string ) . '" class="' . esc_attr( $class ) . '">' . __( 'Sort products', 'woocommerce' ) . '</a>';
|
||||
|
||||
return $views;
|
||||
}
|
||||
|
@ -2127,7 +2127,7 @@ class WC_Admin_Post_Types {
|
|||
|
||||
echo '<p>' . __( 'Enable this option to feature this product.', 'woocommerce' ) . '</p>';
|
||||
|
||||
echo '<input type="checkbox" name="_featured" id="_featured" ' . checked( $current_featured, 'yes', false ) . ' /> <label for="_featured">' . __( 'Featured Product', 'woocommerce' ) . '</label><br />';
|
||||
echo '<input type="checkbox" name="_featured" id="_featured" ' . checked( $current_featured, 'yes', false ) . ' /> <label for="_featured">' . __( 'Featured product', 'woocommerce' ) . '</label><br />';
|
||||
?>
|
||||
<p>
|
||||
<a href="#catalog-visibility" class="save-post-visibility hide-if-no-js button"><?php _e( 'OK', 'woocommerce' ); ?></a>
|
||||
|
|
|
@ -38,14 +38,14 @@ class WC_Admin_Profile {
|
|||
public function get_customer_meta_fields() {
|
||||
$show_fields = apply_filters('woocommerce_customer_meta_fields', array(
|
||||
'billing' => array(
|
||||
'title' => __( 'Customer Billing Address', 'woocommerce' ),
|
||||
'title' => __( 'Customer billing address', 'woocommerce' ),
|
||||
'fields' => array(
|
||||
'billing_first_name' => array(
|
||||
'label' => __( 'First Name', 'woocommerce' ),
|
||||
'label' => __( 'First name', 'woocommerce' ),
|
||||
'description' => '',
|
||||
),
|
||||
'billing_last_name' => array(
|
||||
'label' => __( 'Last Name', 'woocommerce' ),
|
||||
'label' => __( 'Last name', 'woocommerce' ),
|
||||
'description' => '',
|
||||
),
|
||||
'billing_company' => array(
|
||||
|
@ -85,20 +85,20 @@ class WC_Admin_Profile {
|
|||
'description' => '',
|
||||
),
|
||||
'billing_email' => array(
|
||||
'label' => __( 'Email Address', 'woocommerce' ),
|
||||
'label' => __( 'Email address', 'woocommerce' ),
|
||||
'description' => '',
|
||||
),
|
||||
),
|
||||
),
|
||||
'shipping' => array(
|
||||
'title' => __( 'Customer Shipping Address', 'woocommerce' ),
|
||||
'title' => __( 'Customer shipping address', 'woocommerce' ),
|
||||
'fields' => array(
|
||||
'shipping_first_name' => array(
|
||||
'label' => __( 'First Name', 'woocommerce' ),
|
||||
'label' => __( 'First name', 'woocommerce' ),
|
||||
'description' => '',
|
||||
),
|
||||
'shipping_last_name' => array(
|
||||
'label' => __( 'Last Name', 'woocommerce' ),
|
||||
'label' => __( 'Last name', 'woocommerce' ),
|
||||
'description' => '',
|
||||
),
|
||||
'shipping_company' => array(
|
||||
|
|
|
@ -74,13 +74,13 @@ class WC_Admin_Reports {
|
|||
'title' => __( 'Customers', 'woocommerce' ),
|
||||
'reports' => array(
|
||||
"customers" => array(
|
||||
'title' => __( 'Customers vs. Guests', 'woocommerce' ),
|
||||
'title' => __( 'Customers vs. guests', 'woocommerce' ),
|
||||
'description' => '',
|
||||
'hide_title' => true,
|
||||
'callback' => array( __CLASS__, 'get_report' ),
|
||||
),
|
||||
"customer_list" => array(
|
||||
'title' => __( 'Customer List', 'woocommerce' ),
|
||||
'title' => __( 'Customer list', 'woocommerce' ),
|
||||
'description' => '',
|
||||
'hide_title' => true,
|
||||
'callback' => array( __CLASS__, 'get_report' ),
|
||||
|
|
|
@ -520,7 +520,7 @@ class WC_Admin_Settings {
|
|||
|
||||
<input name="<?php echo esc_attr( $value['id'] ); ?>[width]" <?php echo $disabled_attr; ?> id="<?php echo esc_attr( $value['id'] ); ?>-width" type="text" size="3" value="<?php echo $width; ?>" /> × <input name="<?php echo esc_attr( $value['id'] ); ?>[height]" <?php echo $disabled_attr; ?> id="<?php echo esc_attr( $value['id'] ); ?>-height" type="text" size="3" value="<?php echo $height; ?>" />px
|
||||
|
||||
<label><input name="<?php echo esc_attr( $value['id'] ); ?>[crop]" <?php echo $disabled_attr; ?> id="<?php echo esc_attr( $value['id'] ); ?>-crop" type="checkbox" value="1" <?php checked( 1, $crop ); ?> /> <?php _e( 'Hard Crop?', 'woocommerce' ); ?></label>
|
||||
<label><input name="<?php echo esc_attr( $value['id'] ); ?>[crop]" <?php echo $disabled_attr; ?> id="<?php echo esc_attr( $value['id'] ); ?>-crop" type="checkbox" value="1" <?php checked( 1, $crop ); ?> /> <?php _e( 'Hard crop?', 'woocommerce' ); ?></label>
|
||||
|
||||
</td>
|
||||
</tr><?php
|
||||
|
@ -602,7 +602,7 @@ class WC_Admin_Settings {
|
|||
}
|
||||
}
|
||||
?>
|
||||
</select> <?php echo ( $description ) ? $description : ''; ?> <br /><a class="select_all button" href="#"><?php _e( 'Select All', 'woocommerce' ); ?></a> <a class="select_none button" href="#"><?php _e( 'Select None', 'woocommerce' ); ?></a>
|
||||
</select> <?php echo ( $description ) ? $description : ''; ?> <br /><a class="select_all button" href="#"><?php _e( 'Select all', 'woocommerce' ); ?></a> <a class="select_none button" href="#"><?php _e( 'Select none', 'woocommerce' ); ?></a>
|
||||
</td>
|
||||
</tr><?php
|
||||
break;
|
||||
|
|
|
@ -61,17 +61,17 @@ class WC_Admin_Setup_Wizard {
|
|||
'handler' => '',
|
||||
),
|
||||
'pages' => array(
|
||||
'name' => __( 'Page Setup', 'woocommerce' ),
|
||||
'name' => __( 'Page setup', 'woocommerce' ),
|
||||
'view' => array( $this, 'wc_setup_pages' ),
|
||||
'handler' => array( $this, 'wc_setup_pages_save' ),
|
||||
),
|
||||
'locale' => array(
|
||||
'name' => __( 'Store Locale', 'woocommerce' ),
|
||||
'name' => __( 'Store locale', 'woocommerce' ),
|
||||
'view' => array( $this, 'wc_setup_locale' ),
|
||||
'handler' => array( $this, 'wc_setup_locale_save' ),
|
||||
),
|
||||
'shipping_taxes' => array(
|
||||
'name' => __( 'Shipping & Tax', 'woocommerce' ),
|
||||
'name' => __( 'Shipping & tax', 'woocommerce' ),
|
||||
'view' => array( $this, 'wc_setup_shipping_taxes' ),
|
||||
'handler' => array( $this, 'wc_setup_shipping_taxes_save' ),
|
||||
),
|
||||
|
@ -206,7 +206,7 @@ class WC_Admin_Setup_Wizard {
|
|||
<p><?php _e( 'Thank you for choosing WooCommerce to power your online store! This quick setup wizard will help you configure the basic settings. <strong>It’s completely optional and shouldn’t take longer than five minutes.</strong>', 'woocommerce' ); ?></p>
|
||||
<p><?php _e( 'No time right now? If you don’t want to go through the wizard, you can skip and return to the WordPress dashboard. Come back anytime if you change your mind!', 'woocommerce' ); ?></p>
|
||||
<p class="wc-setup-actions step">
|
||||
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button-primary button button-large button-next"><?php _e( 'Let\'s Go!', 'woocommerce' ); ?></a>
|
||||
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button-primary button button-large button-next"><?php _e( 'Let\'s go!', 'woocommerce' ); ?></a>
|
||||
<a href="<?php echo esc_url( admin_url() ); ?>" class="button button-large"><?php _e( 'Not right now', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
<?php
|
||||
|
@ -217,13 +217,13 @@ class WC_Admin_Setup_Wizard {
|
|||
*/
|
||||
public function wc_setup_pages() {
|
||||
?>
|
||||
<h1><?php _e( 'Page Setup', 'woocommerce' ); ?></h1>
|
||||
<h1><?php _e( 'Page setup', 'woocommerce' ); ?></h1>
|
||||
<form method="post">
|
||||
<p><?php printf( __( 'Your store needs a few essential %1$spages%2$s. The following will be created automatically (if they do not already exist):', 'woocommerce' ), '<a href="' . esc_url( admin_url( 'edit.php?post_type=page' ) ) . '" target="_blank">', '</a>' ); ?></p>
|
||||
<table class="wc-setup-pages" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="page-name"><?php _e( 'Page Name', 'woocommerce' ); ?></th>
|
||||
<th class="page-name"><?php _e( 'Page name', 'woocommerce' ); ?></th>
|
||||
<th class="page-description"><?php _e( 'Description', 'woocommerce' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -243,7 +243,7 @@ class WC_Admin_Setup_Wizard {
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="page-name"><?php echo _x( 'My Account', 'Page title', 'woocommerce' ); ?></td>
|
||||
<td class="page-name"><?php echo _x( 'My account', 'Page title', 'woocommerce' ); ?></td>
|
||||
<td>
|
||||
<?php _e( 'Registered customers will be able to manage their account details and view past orders on this page.', 'woocommerce' ); ?>
|
||||
</td>
|
||||
|
@ -291,7 +291,7 @@ class WC_Admin_Setup_Wizard {
|
|||
$dimension_unit = get_option( 'woocommerce_dimension_unit', 'cm' );
|
||||
$weight_unit = get_option( 'woocommerce_weight_unit', 'kg' );
|
||||
?>
|
||||
<h1><?php _e( 'Store Locale Setup', 'woocommerce' ); ?></h1>
|
||||
<h1><?php _e( 'Store locale setup', 'woocommerce' ); ?></h1>
|
||||
<form method="post">
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
|
@ -317,7 +317,7 @@ class WC_Admin_Setup_Wizard {
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="currency_pos"><?php _e( 'Currency Position', 'woocommerce' ); ?></label></th>
|
||||
<th scope="row"><label for="currency_pos"><?php _e( 'Currency position', 'woocommerce' ); ?></label></th>
|
||||
<td>
|
||||
<select id="currency_pos" name="currency_pos" class="wc-enhanced-select">
|
||||
<option value="left" <?php selected( $currency_pos, 'left' ); ?>><?php echo __( 'Left', 'woocommerce' ); ?></option>
|
||||
|
@ -328,19 +328,19 @@ class WC_Admin_Setup_Wizard {
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="thousand_sep"><?php _e( 'Thousand Separator', 'woocommerce' ); ?></label></th>
|
||||
<th scope="row"><label for="thousand_sep"><?php _e( 'Thousand separator', 'woocommerce' ); ?></label></th>
|
||||
<td>
|
||||
<input type="text" id="thousand_sep" name="thousand_sep" size="2" value="<?php echo esc_attr( $thousand_sep ); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="decimal_sep"><?php _e( 'Decimal Separator', 'woocommerce' ); ?></label></th>
|
||||
<th scope="row"><label for="decimal_sep"><?php _e( 'Decimal separator', 'woocommerce' ); ?></label></th>
|
||||
<td>
|
||||
<input type="text" id="decimal_sep" name="decimal_sep" size="2" value="<?php echo esc_attr( $decimal_sep ); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="num_decimals"><?php _e( 'Number of Decimals', 'woocommerce' ); ?></label></th>
|
||||
<th scope="row"><label for="num_decimals"><?php _e( 'Number of decimals', 'woocommerce' ); ?></label></th>
|
||||
<td>
|
||||
<input type="text" id="num_decimals" name="num_decimals" size="2" value="<?php echo esc_attr( $num_decimals ); ?>" />
|
||||
</td>
|
||||
|
@ -411,7 +411,7 @@ class WC_Admin_Setup_Wizard {
|
|||
*/
|
||||
public function wc_setup_shipping_taxes() {
|
||||
?>
|
||||
<h1><?php _e( 'Shipping & Tax Setup', 'woocommerce' ); ?></h1>
|
||||
<h1><?php _e( 'Shipping & Tax setup', 'woocommerce' ); ?></h1>
|
||||
<form method="post">
|
||||
<p><?php _e( 'If you will be charging sales tax, or shipping physical goods to customers, you can enable these below. This is optional and can be changed later.', 'woocommerce' ); ?></p>
|
||||
<table class="form-table">
|
||||
|
@ -599,19 +599,19 @@ class WC_Admin_Setup_Wizard {
|
|||
),
|
||||
),
|
||||
'cheque' => array(
|
||||
'name' => _x( 'Check Payments', 'Check payment method', 'woocommerce' ),
|
||||
'name' => _x( 'Check payments', 'Check payment method', 'woocommerce' ),
|
||||
'description' => __( 'A simple offline gateway that lets you accept a check as method of payment.', 'woocommerce' ),
|
||||
'image' => '',
|
||||
'class' => '',
|
||||
),
|
||||
'bacs' => array(
|
||||
'name' => __( 'Bank Transfer (BACS) Payments', 'woocommerce' ),
|
||||
'name' => __( 'Bank transfer (BACS) payments', 'woocommerce' ),
|
||||
'description' => __( 'A simple offline gateway that lets you accept BACS payment.', 'woocommerce' ),
|
||||
'image' => '',
|
||||
'class' => '',
|
||||
),
|
||||
'cod' => array(
|
||||
'name' => __( 'Cash on Delivery', 'woocommerce' ),
|
||||
'name' => __( 'Cash on delivery', 'woocommerce' ),
|
||||
'description' => __( 'A simple offline gateway that lets you accept cash on delivery.', 'woocommerce' ),
|
||||
'image' => '',
|
||||
'class' => '',
|
||||
|
@ -748,7 +748,7 @@ class WC_Admin_Setup_Wizard {
|
|||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://woocommerce.com/" data-text="<?php echo esc_attr( $this->tweets[0] ); ?>" data-via="WooCommerce" data-size="large">Tweet</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
|
||||
<h1><?php _e( 'Your Store is Ready!', 'woocommerce' ); ?></h1>
|
||||
<h1><?php _e( 'Your store is ready!', 'woocommerce' ); ?></h1>
|
||||
|
||||
<?php if ( 'unknown' === get_option( 'woocommerce_allow_tracking', 'unknown' ) ) : ?>
|
||||
<div class="woocommerce-message woocommerce-tracker">
|
||||
|
@ -762,13 +762,13 @@ class WC_Admin_Setup_Wizard {
|
|||
|
||||
<div class="wc-setup-next-steps">
|
||||
<div class="wc-setup-next-steps-first">
|
||||
<h2><?php _e( 'Next Steps', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Next steps', 'woocommerce' ); ?></h2>
|
||||
<ul>
|
||||
<li class="setup-product"><a class="button button-primary button-large" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=product&tutorial=true' ) ); ?>"><?php _e( 'Create your first product!', 'woocommerce' ); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wc-setup-next-steps-last">
|
||||
<h2><?php _e( 'Learn More', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Learn more', 'woocommerce' ); ?></h2>
|
||||
<ul>
|
||||
<li class="video-walkthrough"><a href="https://docs.woocommerce.com/document/woocommerce-101-video-series/?utm_source=setupwizard&utm_medium=product&utm_content=videos&utm_campaign=woocommerceplugin"><?php _e( 'Watch the WC 101 video walkthroughs', 'woocommerce' ); ?></a></li>
|
||||
<li class="newsletter"><a href="https://woocommerce.com/woocommerce-onboarding-email/?utm_source=setupwizard&utm_medium=product&utm_content=newsletter&utm_campaign=woocommerceplugin"><?php _e( 'Get eCommerce advice in your inbox', 'woocommerce' ); ?></a></li>
|
||||
|
|
|
@ -106,7 +106,7 @@ class WC_Admin_Webhooks_Table_List extends WP_List_Table {
|
|||
$actions['trash'] = '<a class="submitdelete" title="' . esc_attr( __( 'Move this item to the Trash', 'woocommerce' ) ) . '" href="' . get_delete_post_link( $the_webhook->id ) . '">' . __( 'Trash', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
if ( 'trash' == $post_status || ! EMPTY_TRASH_DAYS ) {
|
||||
$actions['delete'] = '<a class="submitdelete" title="' . esc_attr( __( 'Delete this item permanently', 'woocommerce' ) ) . '" href="' . get_delete_post_link( $the_webhook->id, '', true ) . '">' . __( 'Delete Permanently', 'woocommerce' ) . '</a>';
|
||||
$actions['delete'] = '<a class="submitdelete" title="' . esc_attr( __( 'Delete this item permanently', 'woocommerce' ) ) . '" href="' . get_delete_post_link( $the_webhook->id, '', true ) . '">' . __( 'Delete permanently', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -244,12 +244,12 @@ class WC_Admin_Webhooks_Table_List extends WP_List_Table {
|
|||
if ( isset( $_GET['status'] ) && 'trash' == $_GET['status'] ) {
|
||||
return array(
|
||||
'untrash' => __( 'Restore', 'woocommerce' ),
|
||||
'delete' => __( 'Delete Permanently', 'woocommerce' ),
|
||||
'delete' => __( 'Delete permanently', 'woocommerce' ),
|
||||
);
|
||||
}
|
||||
|
||||
return array(
|
||||
'trash' => __( 'Move to Trash', 'woocommerce' ),
|
||||
'trash' => __( 'Move to trash', 'woocommerce' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ class WC_Admin_Webhooks_Table_List extends WP_List_Table {
|
|||
*/
|
||||
protected function extra_tablenav( $which ) {
|
||||
if ( 'top' == $which && isset( $_GET['status'] ) && 'trash' == $_GET['status'] && current_user_can( 'delete_shop_webhooks' ) ) {
|
||||
echo '<div class="alignleft actions"><a class="button apply" href="' . esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&status=trash&empty_trash=1' ), 'empty_trash' ) ) . '">' . __( 'Empty Trash', 'woocommerce' ) . '</a></div>';
|
||||
echo '<div class="alignleft actions"><a class="button apply" href="' . esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&status=trash&empty_trash=1' ), 'empty_trash' ) ) . '">' . __( 'Empty trash', 'woocommerce' ) . '</a></div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -407,7 +407,7 @@ class WC_Admin_Webhooks {
|
|||
* Table list output.
|
||||
*/
|
||||
private static function table_list_output() {
|
||||
echo '<h2>' . __( 'Webhooks', 'woocommerce' ) . ' <a href="' . esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&create-webhook=1' ), 'create-webhook' ) ) . '" class="add-new-h2">' . __( 'Add Webhook', 'woocommerce' ) . '</a></h2>';
|
||||
echo '<h2>' . __( 'Webhooks', 'woocommerce' ) . ' <a href="' . esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&create-webhook=1' ), 'create-webhook' ) ) . '" class="add-new-h2">' . __( 'Add webhook', 'woocommerce' ) . '</a></h2>';
|
||||
|
||||
$webhooks_table_list = new WC_Admin_Webhooks_Table_List();
|
||||
$webhooks_table_list->prepare_items();
|
||||
|
@ -417,7 +417,7 @@ class WC_Admin_Webhooks {
|
|||
echo '<input type="hidden" name="section" value="webhooks" />';
|
||||
|
||||
$webhooks_table_list->views();
|
||||
$webhooks_table_list->search_box( __( 'Search Webhooks', 'woocommerce' ), 'webhook' );
|
||||
$webhooks_table_list->search_box( __( 'Search webhooks', 'woocommerce' ), 'webhook' );
|
||||
$webhooks_table_list->display();
|
||||
}
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ class WC_Admin {
|
|||
$mailer = WC()->mailer();
|
||||
|
||||
// get the preview email subject
|
||||
$email_heading = __( 'HTML Email Template', 'woocommerce' );
|
||||
$email_heading = __( 'HTML email template', 'woocommerce' );
|
||||
|
||||
// get the preview email content
|
||||
ob_start();
|
||||
|
|
|
@ -174,7 +174,7 @@ class WC_Tax_Rate_Importer extends WP_Importer {
|
|||
* Performs post-import cleanup of files and the cache.
|
||||
*/
|
||||
public function import_end() {
|
||||
echo '<p>' . __( 'All done!', 'woocommerce' ) . ' <a href="' . admin_url( 'admin.php?page=wc-settings&tab=tax' ) . '">' . __( 'View Tax Rates', 'woocommerce' ) . '</a>' . '</p>';
|
||||
echo '<p>' . __( 'All done!', 'woocommerce' ) . ' <a href="' . admin_url( 'admin.php?page=wc-settings&tab=tax' ) . '">' . __( 'View tax rates', 'woocommerce' ) . '</a>' . '</p>';
|
||||
|
||||
do_action( 'import_end' );
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ class WC_Tax_Rate_Importer extends WP_Importer {
|
|||
*/
|
||||
public function header() {
|
||||
echo '<div class="wrap"><div class="icon32 icon32-woocommerce-importer" id="icon-woocommerce"><br></div>';
|
||||
echo '<h1>' . __( 'Import Tax Rates', 'woocommerce' ) . '</h1>';
|
||||
echo '<h1>' . __( 'Import tax rates', 'woocommerce' ) . '</h1>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,12 +45,12 @@ class WC_Meta_Box_Coupon_Data {
|
|||
'class' => 'general_coupon_data',
|
||||
),
|
||||
'usage_restriction' => array(
|
||||
'label' => __( 'Usage Restriction', 'woocommerce' ),
|
||||
'label' => __( 'Usage restriction', 'woocommerce' ),
|
||||
'target' => 'usage_restriction_coupon_data',
|
||||
'class' => '',
|
||||
),
|
||||
'usage_limit' => array(
|
||||
'label' => __( 'Usage Limits', 'woocommerce' ),
|
||||
'label' => __( 'Usage limits', 'woocommerce' ),
|
||||
'target' => 'usage_limit_coupon_data',
|
||||
'class' => '',
|
||||
),
|
||||
|
|
|
@ -73,15 +73,15 @@ class WC_Meta_Box_Order_Actions {
|
|||
if ( current_user_can( 'delete_post', $post->ID ) ) {
|
||||
|
||||
if ( ! EMPTY_TRASH_DAYS ) {
|
||||
$delete_text = __( 'Delete Permanently', 'woocommerce' );
|
||||
$delete_text = __( 'Delete permanently', 'woocommerce' );
|
||||
} else {
|
||||
$delete_text = __( 'Move to Trash', 'woocommerce' );
|
||||
$delete_text = __( 'Move to trash', 'woocommerce' );
|
||||
}
|
||||
?><a class="submitdelete deletion" href="<?php echo esc_url( get_delete_post_link( $post->ID ) ); ?>"><?php echo $delete_text; ?></a><?php
|
||||
}
|
||||
?></div>
|
||||
|
||||
<input type="submit" class="button save_order button-primary tips" name="save" value="<?php printf( __( 'Save %s', 'woocommerce' ), $order_type_object->labels->singular_name ); ?>" data-tip="<?php printf( __( 'Save/update the %s', 'woocommerce' ), $order_type_object->labels->singular_name ); ?>" />
|
||||
<input type="submit" class="button save_order button-primary tips" name="save" value="<?php printf( __( 'Save %s', 'woocommerce' ), strtolower( $order_type_object->labels->singular_name ) ); ?>" data-tip="<?php printf( __( 'Save/update the %s', 'woocommerce' ), strtolower( $order_type_object->labels->singular_name ) ); ?>" />
|
||||
</li>
|
||||
|
||||
<?php do_action( 'woocommerce_order_actions_end', $post->ID ); ?>
|
||||
|
|
|
@ -40,11 +40,11 @@ class WC_Meta_Box_Order_Data {
|
|||
|
||||
self::$billing_fields = apply_filters( 'woocommerce_admin_billing_fields', array(
|
||||
'first_name' => array(
|
||||
'label' => __( 'First Name', 'woocommerce' ),
|
||||
'label' => __( 'First name', 'woocommerce' ),
|
||||
'show' => false,
|
||||
),
|
||||
'last_name' => array(
|
||||
'label' => __( 'Last Name', 'woocommerce' ),
|
||||
'label' => __( 'Last name', 'woocommerce' ),
|
||||
'show' => false,
|
||||
),
|
||||
'company' => array(
|
||||
|
@ -80,7 +80,7 @@ class WC_Meta_Box_Order_Data {
|
|||
'show' => false,
|
||||
),
|
||||
'email' => array(
|
||||
'label' => __( 'Email Address', 'woocommerce' ),
|
||||
'label' => __( 'Email address', 'woocommerce' ),
|
||||
),
|
||||
'phone' => array(
|
||||
'label' => __( 'Phone', 'woocommerce' ),
|
||||
|
@ -89,11 +89,11 @@ class WC_Meta_Box_Order_Data {
|
|||
|
||||
self::$shipping_fields = apply_filters( 'woocommerce_admin_shipping_fields', array(
|
||||
'first_name' => array(
|
||||
'label' => __( 'First Name', 'woocommerce' ),
|
||||
'label' => __( 'First name', 'woocommerce' ),
|
||||
'show' => false,
|
||||
),
|
||||
'last_name' => array(
|
||||
'label' => __( 'Last Name', 'woocommerce' ),
|
||||
'label' => __( 'Last name', 'woocommerce' ),
|
||||
'show' => false,
|
||||
),
|
||||
'company' => array(
|
||||
|
@ -246,7 +246,7 @@ class WC_Meta_Box_Order_Data {
|
|||
</div>
|
||||
<div class="order_data_column">
|
||||
<h3>
|
||||
<?php _e( 'Billing Details', 'woocommerce' ); ?>
|
||||
<?php _e( 'Billing details', 'woocommerce' ); ?>
|
||||
<a href="#" class="edit_address"><?php _e( 'Edit', 'woocommerce' ); ?></a>
|
||||
<a href="#" class="tips load_customer_billing" data-tip="<?php esc_attr_e( 'Load billing address', 'woocommerce' ); ?>" style="display:none;"><?php _e( 'Load billing address', 'woocommerce' ); ?></a>
|
||||
</h3>
|
||||
|
@ -295,7 +295,7 @@ class WC_Meta_Box_Order_Data {
|
|||
}
|
||||
?>
|
||||
<p class="form-field form-field-wide">
|
||||
<label><?php _e( 'Payment Method:', 'woocommerce' ); ?></label>
|
||||
<label><?php _e( 'Payment method:', 'woocommerce' ); ?></label>
|
||||
<select name="_payment_method" id="_payment_method" class="first">
|
||||
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
|
||||
<?php
|
||||
|
@ -330,7 +330,7 @@ class WC_Meta_Box_Order_Data {
|
|||
<div class="order_data_column">
|
||||
|
||||
<h3>
|
||||
<?php _e( 'Shipping Details', 'woocommerce' ); ?>
|
||||
<?php _e( 'Shipping details', 'woocommerce' ); ?>
|
||||
<a href="#" class="edit_address"><?php _e( 'Edit', 'woocommerce' ); ?></a>
|
||||
<a href="#" class="tips billing-same-as-shipping" data-tip="<?php esc_attr_e( 'Copy from billing', 'woocommerce' ); ?>" style="display:none;"><?php _e( 'Copy from billing', 'woocommerce' ); ?></a>
|
||||
<a href="#" class="tips load_customer_shipping" data-tip="<?php esc_attr_e( 'Load shipping address', 'woocommerce' ); ?>" style="display:none;"><?php _e( 'Load shipping address', 'woocommerce' ); ?></a>
|
||||
|
@ -360,7 +360,7 @@ class WC_Meta_Box_Order_Data {
|
|||
}
|
||||
|
||||
if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) ) && $post->post_excerpt ) {
|
||||
echo '<p><strong>' . __( 'Customer Provided Note', 'woocommerce' ) . ':</strong> ' . nl2br( esc_html( $post->post_excerpt ) ) . '</p>';
|
||||
echo '<p><strong>' . __( 'Customer provided note', 'woocommerce' ) . ':</strong> ' . nl2br( esc_html( $post->post_excerpt ) ) . '</p>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
@ -390,7 +390,7 @@ class WC_Meta_Box_Order_Data {
|
|||
|
||||
if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) {
|
||||
?>
|
||||
<p class="form-field form-field-wide"><label for="excerpt"><?php _e( 'Customer Provided Note', 'woocommerce' ) ?>:</label>
|
||||
<p class="form-field form-field-wide"><label for="excerpt"><?php _e( 'Customer provided note', 'woocommerce' ) ?>:</label>
|
||||
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php esc_attr_e( 'Customer\'s notes about the order', 'woocommerce' ); ?>"><?php echo wp_kses_post( $post->post_excerpt ); ?></textarea></p>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ class WC_Meta_Box_Order_Downloads {
|
|||
<div class="toolbar">
|
||||
<p class="buttons">
|
||||
<input type="hidden" id="grant_access_id" name="grant_access_id" data-multiple="true" class="wc-product-search" style="width: 400px;" data-placeholder="<?php esc_attr_e( 'Search for a downloadable product…', 'woocommerce' ); ?>" data-action="woocommerce_json_search_downloadable_products_and_variations" />
|
||||
<button type="button" class="button grant_access"><?php _e( 'Grant Access', 'woocommerce' ); ?></button>
|
||||
<button type="button" class="button grant_access"><?php _e( 'Grant access', 'woocommerce' ); ?></button>
|
||||
</p>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
|
|
@ -37,7 +37,7 @@ class WC_Meta_Box_Product_Data {
|
|||
$product_type = apply_filters( 'default_product_type', 'simple' );
|
||||
}
|
||||
|
||||
$type_box = '<label for="product-type"><select id="product-type" name="product-type"><optgroup label="' . esc_attr__( 'Product Type', 'woocommerce' ) . '">';
|
||||
$type_box = '<label for="product-type"><select id="product-type" name="product-type"><optgroup label="' . esc_attr__( 'Product type', 'woocommerce' ) . '">';
|
||||
|
||||
foreach ( wc_get_product_types() as $value => $label ) {
|
||||
$type_box .= '<option value="' . esc_attr( $value ) . '" ' . selected( $product_type, $value, false ) . '>' . esc_html( $label ) . '</option>';
|
||||
|
@ -96,7 +96,7 @@ class WC_Meta_Box_Product_Data {
|
|||
'class' => array( 'hide_if_virtual', 'hide_if_grouped', 'hide_if_external' ),
|
||||
),
|
||||
'linked_product' => array(
|
||||
'label' => __( 'Linked Products', 'woocommerce' ),
|
||||
'label' => __( 'Linked products', 'woocommerce' ),
|
||||
'target' => 'linked_product_data',
|
||||
'class' => array(),
|
||||
),
|
||||
|
@ -197,7 +197,7 @@ class WC_Meta_Box_Product_Data {
|
|||
ob_start();
|
||||
include( 'views/html-product-download.php' );
|
||||
echo esc_attr( ob_get_clean() );
|
||||
?>"><?php _e( 'Add File', 'woocommerce' ); ?></a>
|
||||
?>"><?php _e( 'Add file', 'woocommerce' ); ?></a>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
@ -237,7 +237,7 @@ class WC_Meta_Box_Product_Data {
|
|||
'label' => __( 'Download type', 'woocommerce' ),
|
||||
'description' => sprintf( __( 'Choose a download type - this controls the <a href="%s">schema</a>.', 'woocommerce' ), 'http://schema.org/' ),
|
||||
'options' => array(
|
||||
'' => __( 'Standard Product', 'woocommerce' ),
|
||||
'' => __( 'Standard product', 'woocommerce' ),
|
||||
'application' => __( 'Application/Software', 'woocommerce' ),
|
||||
'music' => __( 'Music', 'woocommerce' ),
|
||||
),
|
||||
|
@ -300,7 +300,7 @@ class WC_Meta_Box_Product_Data {
|
|||
|
||||
// SKU
|
||||
if ( wc_product_sku_enabled() ) {
|
||||
woocommerce_wp_text_input( array( 'id' => '_sku', 'label' => '<abbr title="' . __( 'Stock Keeping Unit', 'woocommerce' ) . '">' . __( 'SKU', 'woocommerce' ) . '</abbr>', 'desc_tip' => 'true', 'description' => __( 'SKU refers to a Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased.', 'woocommerce' ) ) );
|
||||
woocommerce_wp_text_input( array( 'id' => '_sku', 'label' => '<abbr title="' . __( 'Stock keeping unit', 'woocommerce' ) . '">' . __( 'SKU', 'woocommerce' ) . '</abbr>', 'desc_tip' => 'true', 'description' => __( 'SKU refers to a Stock-keeping unit, a unique identifier for each distinct product and service that can be purchased.', 'woocommerce' ) ) );
|
||||
} else {
|
||||
echo '<input type="hidden" name="_sku" value="' . esc_attr( get_post_meta( $thepostid, '_sku', true ) ) . '" />';
|
||||
}
|
||||
|
@ -653,7 +653,7 @@ class WC_Meta_Box_Product_Data {
|
|||
<div id="message" class="inline notice woocommerce-message">
|
||||
<p><?php _e( 'Before you can add a variation you need to add some variation attributes on the <strong>Attributes</strong> tab.', 'woocommerce' ); ?></p>
|
||||
<p>
|
||||
<a class="button-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'https://docs.woocommerce.com/document/variable-product/', 'product-variations' ) ); ?>" target="_blank"><?php _e( 'Learn More', 'woocommerce' ); ?></a>
|
||||
<a class="button-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'https://docs.woocommerce.com/document/variable-product/', 'product-variations' ) ); ?>" target="_blank"><?php _e( 'Learn more', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
@ -661,7 +661,7 @@ class WC_Meta_Box_Product_Data {
|
|||
|
||||
<div class="toolbar toolbar-variations-defaults">
|
||||
<div class="variations-defaults">
|
||||
<strong><?php _e( 'Default Form Values', 'woocommerce' ); ?>: <?php echo wc_help_tip( __( 'These are the attributes that will be pre-selected on the frontend.', 'woocommerce' ) ); ?></strong>
|
||||
<strong><?php _e( 'Default form values', 'woocommerce' ); ?>: <?php echo wc_help_tip( __( 'These are the attributes that will be pre-selected on the frontend.', 'woocommerce' ) ); ?></strong>
|
||||
<?php
|
||||
$default_attributes = maybe_unserialize( get_post_meta( $post->ID, '_default_attributes', true ) );
|
||||
|
||||
|
@ -747,7 +747,7 @@ class WC_Meta_Box_Product_Data {
|
|||
<a class="first-page disabled" title="<?php esc_attr_e( 'Go to the first page', 'woocommerce' ); ?>" href="#">«</a>
|
||||
<a class="prev-page disabled" title="<?php esc_attr_e( 'Go to the previous page', 'woocommerce' ); ?>" href="#">‹</a>
|
||||
<span class="paging-select">
|
||||
<label for="current-page-selector-1" class="screen-reader-text"><?php _e( 'Select Page', 'woocommerce' ); ?></label>
|
||||
<label for="current-page-selector-1" class="screen-reader-text"><?php _e( 'Select page', 'woocommerce' ); ?></label>
|
||||
<select class="page-selector" id="current-page-selector-1" title="<?php esc_attr_e( 'Current page', 'woocommerce' ); ?>">
|
||||
<?php for ( $i = 1; $i <= $variations_total_pages; $i++ ) : ?>
|
||||
<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
|
||||
|
@ -781,7 +781,7 @@ class WC_Meta_Box_Product_Data {
|
|||
<a class="first-page disabled" title="<?php esc_attr_e( 'Go to the first page', 'woocommerce' ); ?>" href="#">«</a>
|
||||
<a class="prev-page disabled" title="<?php esc_attr_e( 'Go to the previous page', 'woocommerce' ); ?>" href="#">‹</a>
|
||||
<span class="paging-select">
|
||||
<label for="current-page-selector-1" class="screen-reader-text"><?php _e( 'Select Page', 'woocommerce' ); ?></label>
|
||||
<label for="current-page-selector-1" class="screen-reader-text"><?php _e( 'Select page', 'woocommerce' ); ?></label>
|
||||
<select class="page-selector" id="current-page-selector-1" title="<?php esc_attr_e( 'Current page', 'woocommerce' ); ?>">
|
||||
<?php for ( $i = 1; $i <= $variations_total_pages; $i++ ) : ?>
|
||||
<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
|
||||
|
|
|
@ -75,7 +75,7 @@ class WC_Meta_Box_Product_Images {
|
|||
|
||||
</div>
|
||||
<p class="add_product_images hide-if-no-js">
|
||||
<a href="#" data-choose="<?php esc_attr_e( 'Add Images to Product Gallery', 'woocommerce' ); ?>" data-update="<?php esc_attr_e( 'Add to gallery', 'woocommerce' ); ?>" data-delete="<?php esc_attr_e( 'Delete image', 'woocommerce' ); ?>" data-text="<?php esc_attr_e( 'Delete', 'woocommerce' ); ?>"><?php _e( 'Add product gallery images', 'woocommerce' ); ?></a>
|
||||
<a href="#" data-choose="<?php esc_attr_e( 'Add images to product gallery', 'woocommerce' ); ?>" data-update="<?php esc_attr_e( 'Add to gallery', 'woocommerce' ); ?>" data-delete="<?php esc_attr_e( 'Delete image', 'woocommerce' ); ?>" data-text="<?php esc_attr_e( 'Delete', 'woocommerce' ); ?>"><?php _e( 'Add product gallery images', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
?>
|
||||
<div class="wc-metabox closed">
|
||||
<h3 class="fixed">
|
||||
<button type="button" data-permission_id="<?php echo absint( $download->permission_id ); ?>" rel="<?php echo absint( $download->product_id ) . ',' . esc_attr( $download->download_id ); ?>" class="revoke_access button"><?php _e( 'Revoke Access', 'woocommerce' ); ?></button>
|
||||
<button type="button" data-permission_id="<?php echo absint( $download->permission_id ); ?>" rel="<?php echo absint( $download->product_id ) . ',' . esc_attr( $download->download_id ); ?>" class="revoke_access button"><?php _e( 'Revoke access', 'woocommerce' ); ?></button>
|
||||
<div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'woocommerce' ); ?>"></div>
|
||||
<strong>
|
||||
<?php echo '#' . absint( $product->id ) . ' — ' . apply_filters( 'woocommerce_admin_download_permissions_title', $product->get_title(), $download->product_id, $download->order_id, $download->order_key, $download->download_id ) . ' — ' . esc_html( $file_count ) . ': ' . wc_get_filename_from_url( $product->get_file_download_path( $download->download_id ) ) . ' — ' . sprintf( _n( 'Downloaded %s time', 'Downloaded %s times', absint( $download->download_count ), 'woocommerce' ), absint( $download->download_count ) ); ?>
|
||||
|
|
|
@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<?php echo esc_html( $item->get_name() ? $item->get_name() : __( 'Fee', 'woocommerce' ) ); ?>
|
||||
</div>
|
||||
<div class="edit" style="display: none;">
|
||||
<input type="text" placeholder="<?php esc_attr_e( 'Fee Name', 'woocommerce' ); ?>" name="order_item_name[<?php echo absint( $item_id ); ?>]" value="<?php echo ( $item->get_name() ) ? esc_attr( $item->get_name() ) : ''; ?>" />
|
||||
<input type="text" placeholder="<?php esc_attr_e( 'Fee name', 'woocommerce' ); ?>" name="order_item_name[<?php echo absint( $item_id ); ?>]" value="<?php echo ( $item->get_name() ) ? esc_attr( $item->get_name() ) : ''; ?>" />
|
||||
<input type="hidden" class="order_item_id" name="order_item_id[]" value="<?php echo esc_attr( $item_id ); ?>" />
|
||||
<input type="hidden" name="order_item_tax_class[<?php echo absint( $item_id ); ?>]" value="<?php echo esc_attr( $item->get_tax_class() ); ?>" />
|
||||
</div>
|
||||
|
|
|
@ -168,7 +168,7 @@ if ( wc_tax_enabled() ) {
|
|||
<?php do_action( 'woocommerce_admin_order_totals_after_tax', $order->get_id() ); ?>
|
||||
|
||||
<tr>
|
||||
<td class="label"><?php _e( 'Order Total', 'woocommerce' ); ?>:</td>
|
||||
<td class="label"><?php _e( 'Order total', 'woocommerce' ); ?>:</td>
|
||||
<td>
|
||||
<?php if ( $order->is_editable() ) : ?>
|
||||
<div class="wc-order-edit-line-item-actions">
|
||||
|
@ -218,8 +218,8 @@ if ( wc_tax_enabled() ) {
|
|||
do_action( 'woocommerce_order_item_add_action_buttons', $order );
|
||||
?>
|
||||
<?php if ( $order->is_editable() ) : ?>
|
||||
<button type="button" class="button button-primary calculate-tax-action"><?php _e( 'Calculate Taxes', 'woocommerce' ); ?></button>
|
||||
<button type="button" class="button button-primary calculate-action"><?php _e( 'Calculate Total', 'woocommerce' ); ?></button>
|
||||
<button type="button" class="button button-primary calculate-tax-action"><?php _e( 'Calculate taxes', 'woocommerce' ); ?></button>
|
||||
<button type="button" class="button button-primary calculate-action"><?php _e( 'Calculate total', 'woocommerce' ); ?></button>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
|
@ -269,7 +269,7 @@ if ( wc_tax_enabled() ) {
|
|||
<?php
|
||||
$refund_amount = '<span class="wc-order-refund-amount">' . wc_price( 0, array( 'currency' => $order->get_currency() ) ) . '</span>';
|
||||
$gateway_supports_refunds = false !== $payment_gateway && $payment_gateway->supports( 'refunds' );
|
||||
$gateway_name = false !== $payment_gateway ? ( ! empty( $payment_gateway->method_title ) ? $payment_gateway->method_title : $payment_gateway->get_title() ) : __( 'Payment Gateway', 'woocommerce' );
|
||||
$gateway_name = false !== $payment_gateway ? ( ! empty( $payment_gateway->method_title ) ? $payment_gateway->method_title : $payment_gateway->get_title() ) : __( 'Payment gateway', 'woocommerce' );
|
||||
?>
|
||||
<button type="button" class="button <?php echo $gateway_supports_refunds ? 'button-primary do-api-refund' : 'tips disabled'; ?>" <?php echo $gateway_supports_refunds ? '' : 'data-tip="' . esc_attr__( 'The payment gateway used to place this order does not support automatic refunds.', 'woocommerce' ) . '"'; ?>><?php printf( _x( 'Refund %1$s via %2$s', 'Refund $amount', 'woocommerce' ), $refund_amount, $gateway_name ); ?></button>
|
||||
<button type="button" class="button button-primary do-manual-refund tips" data-tip="<?php esc_attr_e( 'You will need to manually issue a refund through your payment gateway after using this.', 'woocommerce' ); ?>"><?php printf( _x( 'Refund %s manually', 'Refund $amount manually', 'woocommerce' ), $refund_amount ); ?></button>
|
||||
|
|
|
@ -18,9 +18,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</div>
|
||||
<div class="edit" style="display: none;">
|
||||
<input type="hidden" name="shipping_method_id[]" value="<?php echo esc_attr( $item_id ); ?>" />
|
||||
<input type="text" class="shipping_method_name" placeholder="<?php esc_attr_e( 'Shipping Name', 'woocommerce' ); ?>" name="shipping_method_title[<?php echo esc_attr( $item_id ); ?>]" value="<?php echo esc_attr( $item->get_name() ); ?>" />
|
||||
<input type="text" class="shipping_method_name" placeholder="<?php esc_attr_e( 'Shipping name', 'woocommerce' ); ?>" name="shipping_method_title[<?php echo esc_attr( $item_id ); ?>]" value="<?php echo esc_attr( $item->get_name() ); ?>" />
|
||||
<select class="shipping_method" name="shipping_method[<?php echo esc_attr( $item_id ); ?>]">
|
||||
<optgroup label="<?php esc_attr_e( 'Shipping Method', 'woocommerce' ); ?>">
|
||||
<optgroup label="<?php esc_attr_e( 'Shipping method', 'woocommerce' ); ?>">
|
||||
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
|
||||
<?php
|
||||
$found_method = false;
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
}
|
||||
?>
|
||||
</select>
|
||||
<button class="button plus select_all_attributes"><?php _e( 'Select All', 'woocommerce' ); ?></button>
|
||||
<button class="button minus select_no_attributes"><?php _e( 'Select None', 'woocommerce' ); ?></button>
|
||||
<button class="button fr plus add_new_attribute"><?php _e( 'Add New', 'woocommerce' ); ?></button>
|
||||
<button class="button plus select_all_attributes"><?php _e( 'Select all', 'woocommerce' ); ?></button>
|
||||
<button class="button minus select_no_attributes"><?php _e( 'Select none', 'woocommerce' ); ?></button>
|
||||
<button class="button fr plus add_new_attribute"><?php _e( 'Add new', 'woocommerce' ); ?></button>
|
||||
|
||||
<?php elseif ( 'text' == $attribute_taxonomy->attribute_type ) : ?>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<tr>
|
||||
<td class="sort"></td>
|
||||
<td class="file_name"><input type="text" class="input_text" placeholder="<?php esc_attr_e( 'File Name', 'woocommerce' ); ?>" name="_wc_file_names[]" value="<?php echo esc_attr( $file['name'] ); ?>" /></td>
|
||||
<td class="file_name"><input type="text" class="input_text" placeholder="<?php esc_attr_e( 'File name', 'woocommerce' ); ?>" name="_wc_file_names[]" value="<?php echo esc_attr( $file['name'] ); ?>" /></td>
|
||||
<td class="file_url"><input type="text" class="input_text" placeholder="<?php esc_attr_e( "http://", 'woocommerce' ); ?>" name="_wc_file_urls[]" value="<?php echo esc_attr( $file['file'] ); ?>" /></td>
|
||||
<td class="file_url_choose" width="1%"><a href="#" class="button upload_file_button" data-choose="<?php esc_attr_e( 'Choose file', 'woocommerce' ); ?>" data-update="<?php esc_attr_e( 'Insert file URL', 'woocommerce' ); ?>"><?php echo str_replace( ' ', ' ', __( 'Choose file', 'woocommerce' ) ); ?></a></td>
|
||||
<td width="1%"><a href="#" class="delete"><?php _e( 'Delete', 'woocommerce' ); ?></a></td>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<tr>
|
||||
<td class="file_name"><input type="text" class="input_text" placeholder="<?php esc_attr_e( 'File Name', 'woocommerce' ); ?>" name="_wc_variation_file_names[<?php echo $variation_id; ?>][]" value="<?php echo esc_attr( $file['name'] ); ?>" /></td>
|
||||
<td class="file_name"><input type="text" class="input_text" placeholder="<?php esc_attr_e( 'File name', 'woocommerce' ); ?>" name="_wc_variation_file_names[<?php echo $variation_id; ?>][]" value="<?php echo esc_attr( $file['name'] ); ?>" /></td>
|
||||
<td class="file_url"><input type="text" class="input_text" placeholder="<?php esc_attr_e( "http://", 'woocommerce' ); ?>" name="_wc_variation_file_urls[<?php echo $variation_id; ?>][]" value="<?php echo esc_attr( $file['file'] ); ?>" /></td>
|
||||
<td class="file_url_choose" width="1%"><a href="#" class="button upload_file_button" data-choose="<?php esc_attr_e( 'Choose file', 'woocommerce' ); ?>" data-update="<?php esc_attr_e( 'Insert file URL', 'woocommerce' ); ?>"><?php echo str_replace( ' ', ' ', __( 'Choose file', 'woocommerce' ) ); ?></a></td>
|
||||
<td width="1%"><a href="#" class="delete"><?php _e( 'Delete', 'woocommerce' ); ?></a></td>
|
||||
|
|
|
@ -284,7 +284,7 @@ extract( $variation_data );
|
|||
ob_start();
|
||||
include( 'html-product-variation-download.php' );
|
||||
echo esc_attr( ob_get_clean() );
|
||||
?>"><?php _e( 'Add File', 'woocommerce' ); ?></a>
|
||||
?>"><?php _e( 'Add file', 'woocommerce' ); ?></a>
|
||||
</th>
|
||||
</div>
|
||||
</tfoot>
|
||||
|
|
|
@ -126,9 +126,9 @@ class WC_Report_Coupon_Usage extends WC_Admin_Report {
|
|||
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 Days', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 days', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$this->chart_colours = array(
|
||||
|
@ -217,7 +217,7 @@ class WC_Report_Coupon_Usage extends WC_Admin_Report {
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<h4 class="section_title"><span><?php _e( 'Most Popular', 'woocommerce' ); ?></span></h4>
|
||||
<h4 class="section_title"><span><?php _e( 'Most popular', 'woocommerce' ); ?></span></h4>
|
||||
<div class="section">
|
||||
<table cellspacing="0">
|
||||
<?php
|
||||
|
@ -264,7 +264,7 @@ class WC_Report_Coupon_Usage extends WC_Admin_Report {
|
|||
?>
|
||||
</table>
|
||||
</div>
|
||||
<h4 class="section_title"><span><?php _e( 'Most Discount', 'woocommerce' ); ?></span></h4>
|
||||
<h4 class="section_title"><span><?php _e( 'Most discount', 'woocommerce' ); ?></span></h4>
|
||||
<div class="section">
|
||||
<table cellspacing="0">
|
||||
<?php
|
||||
|
|
|
@ -210,7 +210,7 @@ class WC_Report_Customer_List extends WP_List_Table {
|
|||
'email' => __( 'Email', 'woocommerce' ),
|
||||
'location' => __( 'Location', 'woocommerce' ),
|
||||
'orders' => __( 'Orders', 'woocommerce' ),
|
||||
'spent' => __( 'Money Spent', 'woocommerce' ),
|
||||
'spent' => __( 'Money spent', 'woocommerce' ),
|
||||
'last_order' => __( 'Last order', 'woocommerce' ),
|
||||
'user_actions' => __( 'Actions', 'woocommerce' ),
|
||||
);
|
||||
|
|
|
@ -105,8 +105,8 @@ class WC_Report_Customers extends WC_Admin_Report {
|
|||
<div class="chart-container">
|
||||
<div class="chart-placeholder customers_vs_guests pie-chart" style="height:200px"></div>
|
||||
<ul class="pie-chart-legend">
|
||||
<li style="border-color: <?php echo $this->chart_colours['customers']; ?>"><?php _e( 'Customer Sales', 'woocommerce' ); ?></li>
|
||||
<li style="border-color: <?php echo $this->chart_colours['guests']; ?>"><?php _e( 'Guest Sales', 'woocommerce' ); ?></li>
|
||||
<li style="border-color: <?php echo $this->chart_colours['customers']; ?>"><?php _e( 'Customer sales', 'woocommerce' ); ?></li>
|
||||
<li style="border-color: <?php echo $this->chart_colours['guests']; ?>"><?php _e( 'Guest sales', 'woocommerce' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
@ -115,12 +115,12 @@ class WC_Report_Customers extends WC_Admin_Report {
|
|||
jQuery('.chart-placeholder.customers_vs_guests'),
|
||||
[
|
||||
{
|
||||
label: '<?php _e( 'Customer Orders', 'woocommerce' ); ?>',
|
||||
label: '<?php _e( 'Customer orders', 'woocommerce' ); ?>',
|
||||
data: "<?php echo $customer_order_totals->total_orders ?>",
|
||||
color: '<?php echo $this->chart_colours['customers']; ?>'
|
||||
},
|
||||
{
|
||||
label: '<?php _e( 'Guest Orders', 'woocommerce' ); ?>',
|
||||
label: '<?php _e( 'Guest orders', 'woocommerce' ); ?>',
|
||||
data: "<?php echo $guest_order_totals->total_orders ?>",
|
||||
color: '<?php echo $this->chart_colours['guests']; ?>'
|
||||
}
|
||||
|
@ -160,9 +160,9 @@ class WC_Report_Customers extends WC_Admin_Report {
|
|||
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 Days', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 days', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$this->chart_colours = array(
|
||||
|
@ -312,7 +312,7 @@ class WC_Report_Customers extends WC_Admin_Report {
|
|||
var drawGraph = function( highlight ) {
|
||||
var series = [
|
||||
{
|
||||
label: "<?php echo esc_js( __( 'Customer Orders', 'woocommerce' ) ) ?>",
|
||||
label: "<?php echo esc_js( __( 'Customer orders', 'woocommerce' ) ) ?>",
|
||||
data: chart_data.customer_orders,
|
||||
color: '<?php echo $this->chart_colours['customers']; ?>',
|
||||
bars: { fillColor: '<?php echo $this->chart_colours['customers']; ?>', fill: true, show: true, lineWidth: 0, barWidth: <?php echo $this->barwidth; ?> * 0.5, align: 'center' },
|
||||
|
@ -322,7 +322,7 @@ class WC_Report_Customers extends WC_Admin_Report {
|
|||
stack: true,
|
||||
},
|
||||
{
|
||||
label: "<?php echo esc_js( __( 'Guest Orders', 'woocommerce' ) ) ?>",
|
||||
label: "<?php echo esc_js( __( 'Guest orders', 'woocommerce' ) ) ?>",
|
||||
data: chart_data.guest_orders,
|
||||
color: '<?php echo $this->chart_colours['guests']; ?>',
|
||||
bars: { fillColor: '<?php echo $this->chart_colours['guests']; ?>', fill: true, show: true, lineWidth: 0, barWidth: <?php echo $this->barwidth; ?> * 0.5, align: 'center' },
|
||||
|
|
|
@ -111,9 +111,9 @@ class WC_Report_Sales_By_Category extends WC_Admin_Report {
|
|||
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 Days', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 days', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$this->chart_colours = array( '#3498db', '#34495e', '#1abc9c', '#2ecc71', '#f1c40f', '#e67e22', '#e74c3c', '#2980b9', '#8e44ad', '#2c3e50', '#16a085', '#27ae60', '#f39c12', '#d35400', '#c0392b' );
|
||||
|
@ -230,7 +230,7 @@ class WC_Report_Sales_By_Category extends WC_Admin_Report {
|
|||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(function(){
|
||||
// Select All/None
|
||||
// Select all/None
|
||||
jQuery( '.chart-widget' ).on( 'click', '.select_all', function() {
|
||||
jQuery(this).closest( 'div' ).find( 'select option' ).attr( 'selected', 'selected' );
|
||||
jQuery(this).closest( 'div' ).find('select').change();
|
||||
|
|
|
@ -432,9 +432,9 @@ class WC_Report_Sales_By_Date extends WC_Admin_Report {
|
|||
public function output_report() {
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 Days', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 days', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$this->chart_colours = array(
|
||||
|
@ -611,7 +611,7 @@ class WC_Report_Sales_By_Date extends WC_Admin_Report {
|
|||
prepend_tooltip: "<?php echo get_woocommerce_currency_symbol(); ?>"
|
||||
},
|
||||
{
|
||||
label: "<?php echo esc_js( __( 'Gross Sales amount', 'woocommerce' ) ) ?>",
|
||||
label: "<?php echo esc_js( __( 'Gross sales amount', 'woocommerce' ) ) ?>",
|
||||
data: order_data.gross_order_amounts,
|
||||
yaxis: 2,
|
||||
color: '<?php echo $this->chart_colours['sales_amount']; ?>',
|
||||
|
@ -621,7 +621,7 @@ class WC_Report_Sales_By_Date extends WC_Admin_Report {
|
|||
<?php echo $this->get_currency_tooltip(); ?>
|
||||
},
|
||||
{
|
||||
label: "<?php echo esc_js( __( 'Net Sales amount', 'woocommerce' ) ) ?>",
|
||||
label: "<?php echo esc_js( __( 'Net sales amount', 'woocommerce' ) ) ?>",
|
||||
data: order_data.net_order_amounts,
|
||||
yaxis: 2,
|
||||
color: '<?php echo $this->chart_colours['net_sales_amount']; ?>',
|
||||
|
|
|
@ -124,9 +124,9 @@ class WC_Report_Sales_By_Product extends WC_Admin_Report {
|
|||
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 Days', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
'7day' => __( 'Last 7 days', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$this->chart_colours = array(
|
||||
|
@ -195,7 +195,7 @@ class WC_Report_Sales_By_Product extends WC_Admin_Report {
|
|||
*/
|
||||
public function products_widget() {
|
||||
?>
|
||||
<h4 class="section_title"><span><?php _e( 'Product Search', 'woocommerce' ); ?></span></h4>
|
||||
<h4 class="section_title"><span><?php _e( 'Product search', 'woocommerce' ); ?></span></h4>
|
||||
<div class="section">
|
||||
<form method="GET">
|
||||
<div>
|
||||
|
@ -210,7 +210,7 @@ class WC_Report_Sales_By_Product extends WC_Admin_Report {
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<h4 class="section_title"><span><?php _e( 'Top Sellers', 'woocommerce' ); ?></span></h4>
|
||||
<h4 class="section_title"><span><?php _e( 'Top sellers', 'woocommerce' ); ?></span></h4>
|
||||
<div class="section">
|
||||
<table cellspacing="0">
|
||||
<?php
|
||||
|
@ -250,7 +250,7 @@ class WC_Report_Sales_By_Product extends WC_Admin_Report {
|
|||
?>
|
||||
</table>
|
||||
</div>
|
||||
<h4 class="section_title"><span><?php _e( 'Top Freebies', 'woocommerce' ); ?></span></h4>
|
||||
<h4 class="section_title"><span><?php _e( 'Top freebies', 'woocommerce' ); ?></span></h4>
|
||||
<div class="section">
|
||||
<table cellspacing="0">
|
||||
<?php
|
||||
|
@ -298,7 +298,7 @@ class WC_Report_Sales_By_Product extends WC_Admin_Report {
|
|||
?>
|
||||
</table>
|
||||
</div>
|
||||
<h4 class="section_title"><span><?php _e( 'Top Earners', 'woocommerce' ); ?></span></h4>
|
||||
<h4 class="section_title"><span><?php _e( 'Top earners', 'woocommerce' ); ?></span></h4>
|
||||
<div class="section">
|
||||
<table cellspacing="0">
|
||||
<?php
|
||||
|
|
|
@ -47,8 +47,8 @@ class WC_Report_Taxes_By_Code extends WC_Admin_Report {
|
|||
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : 'last_month';
|
||||
|
@ -148,10 +148,10 @@ class WC_Report_Taxes_By_Code extends WC_Admin_Report {
|
|||
<tr>
|
||||
<th><?php _e( 'Tax', 'woocommerce' ); ?></th>
|
||||
<th><?php _e( 'Rate', 'woocommerce' ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Number of Orders', 'woocommerce' ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Tax Amount', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the sum of the "Tax Rows" tax amount within your orders.', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Shipping Tax Amount', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the sum of the "Tax Rows" shipping tax amount within your orders.', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total Tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Number of orders', 'woocommerce' ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Tax amount', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the sum of the "Tax rows" tax amount within your orders.', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Shipping tax amount', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the sum of the "Tax rows" shipping tax amount within your orders.', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php if ( ! empty( $tax_rows ) ) : ?>
|
||||
|
|
|
@ -47,8 +47,8 @@ class WC_Report_Taxes_By_Date extends WC_Admin_Report {
|
|||
|
||||
$ranges = array(
|
||||
'year' => __( 'Year', 'woocommerce' ),
|
||||
'last_month' => __( 'Last Month', 'woocommerce' ),
|
||||
'month' => __( 'This Month', 'woocommerce' ),
|
||||
'last_month' => __( 'Last month', 'woocommerce' ),
|
||||
'month' => __( 'This month', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : 'last_month';
|
||||
|
@ -150,10 +150,10 @@ class WC_Report_Taxes_By_Date extends WC_Admin_Report {
|
|||
<thead>
|
||||
<tr>
|
||||
<th><?php _e( 'Period', 'woocommerce' ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Number of Orders', 'woocommerce' ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total Sales', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Order Total' field within your orders.", 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total Shipping', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Shipping Total' field within your orders.", 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total Tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Number of orders', 'woocommerce' ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total sales', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Order total' field within your orders.", 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total shipping', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Shipping total' field within your orders.", 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Total tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th>
|
||||
<th class="total_row"><?php _e( 'Net profit', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "Total sales minus shipping and tax.", 'woocommerce' ) ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
@ -40,10 +40,10 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
public function get_settings() {
|
||||
$settings = apply_filters( 'woocommerce_' . $this->id . '_settings', array(
|
||||
|
||||
array( 'title' => __( 'Account Pages', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'These pages need to be set so that WooCommerce knows where to send users to access account related functionality.', 'woocommerce' ), 'id' => 'account_page_options' ),
|
||||
array( 'title' => __( 'Account pages', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'These pages need to be set so that WooCommerce knows where to send users to access account related functionality.', 'woocommerce' ), 'id' => 'account_page_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'My Account Page', 'woocommerce' ),
|
||||
'title' => __( 'My account page', 'woocommerce' ),
|
||||
'desc' => __( 'Page contents:', 'woocommerce' ) . ' [' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']',
|
||||
'id' => 'woocommerce_myaccount_page_id',
|
||||
'type' => 'single_select_page',
|
||||
|
@ -58,7 +58,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
array( 'title' => '', 'type' => 'title', 'id' => 'account_registration_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Enable Registration', 'woocommerce' ),
|
||||
'title' => __( 'Enable registration', 'woocommerce' ),
|
||||
'desc' => __( 'Enable registration on the "Checkout" page', 'woocommerce' ),
|
||||
'id' => 'woocommerce_enable_signup_and_login_from_checkout',
|
||||
'default' => 'yes',
|
||||
|
@ -68,7 +68,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'desc' => __( 'Enable registration on the "My Account" page', 'woocommerce' ),
|
||||
'desc' => __( 'Enable registration on the "My account" page', 'woocommerce' ),
|
||||
'id' => 'woocommerce_enable_myaccount_registration',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
|
@ -87,7 +87,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Account Creation', 'woocommerce' ),
|
||||
'title' => __( 'Account creation', 'woocommerce' ),
|
||||
'desc' => __( 'Automatically generate username from customer email', 'woocommerce' ),
|
||||
'id' => 'woocommerce_registration_generate_username',
|
||||
'default' => 'yes',
|
||||
|
@ -107,11 +107,11 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
|
||||
array( 'type' => 'sectionend', 'id' => 'account_registration_options' ),
|
||||
|
||||
array( 'title' => __( 'My Account Endpoints', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'Endpoints are appended to your page URLs to handle specific actions on the accounts pages. They should be unique and can be left blank to disable the endpoint.', 'woocommerce' ), 'id' => 'account_endpoint_options' ),
|
||||
array( 'title' => __( 'My account endpoints', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'Endpoints are appended to your page URLs to handle specific actions on the accounts pages. They should be unique and can be left blank to disable the endpoint.', 'woocommerce' ), 'id' => 'account_endpoint_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Orders', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Orders', 'woocommerce' ) ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'Orders', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_orders_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'orders',
|
||||
|
@ -119,8 +119,8 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'View Order', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'View Order', 'woocommerce' ) ),
|
||||
'title' => __( 'View order', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'View order', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_view_order_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'view-order',
|
||||
|
@ -129,7 +129,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
|
||||
array(
|
||||
'title' => __( 'Downloads', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Downloads', 'woocommerce' ) ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'Downloads', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_downloads_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'downloads',
|
||||
|
@ -137,8 +137,8 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Edit Account', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Edit Account', 'woocommerce' ) ),
|
||||
'title' => __( 'Edit account', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'Edit account', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_edit_account_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'edit-account',
|
||||
|
@ -147,7 +147,7 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
|
||||
array(
|
||||
'title' => __( 'Addresses', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Addresses', 'woocommerce' ) ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'Addresses', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_edit_address_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'edit-address',
|
||||
|
@ -155,8 +155,8 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Payment Methods', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Payment Methods', 'woocommerce' ) ),
|
||||
'title' => __( 'Payment methods', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'Payment methods', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_payment_methods_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'payment-methods',
|
||||
|
@ -164,8 +164,8 @@ class WC_Settings_Accounts extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Lost Password', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Lost Password', 'woocommerce' ) ),
|
||||
'title' => __( 'Lost password', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "My account" → "%s" page', 'woocommerce' ), __( 'Lost password', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_lost_password_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'lost-password',
|
||||
|
|
|
@ -58,7 +58,7 @@ class WC_Settings_Rest_API extends WC_Settings_Page {
|
|||
public function get_settings() {
|
||||
$settings = apply_filters( 'woocommerce_settings_rest_api', array(
|
||||
array(
|
||||
'title' => __( 'General Options', 'woocommerce' ),
|
||||
'title' => __( 'General options', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'general_options',
|
||||
|
|
|
@ -41,7 +41,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
*/
|
||||
public function get_sections() {
|
||||
$sections = array(
|
||||
'' => __( 'Checkout Options', 'woocommerce' ),
|
||||
'' => __( 'Checkout options', 'woocommerce' ),
|
||||
);
|
||||
|
||||
if ( ! defined( 'WC_INSTALLING' ) ) {
|
||||
|
@ -65,7 +65,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
$settings = apply_filters( 'woocommerce_payment_gateways_settings', array(
|
||||
|
||||
array(
|
||||
'title' => __( 'Checkout Process', 'woocommerce' ),
|
||||
'title' => __( 'Checkout process', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'id' => 'checkout_process_options',
|
||||
),
|
||||
|
@ -91,7 +91,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Checkout Process', 'woocommerce' ),
|
||||
'title' => __( 'Checkout process', 'woocommerce' ),
|
||||
'desc' => __( 'Enable guest checkout', 'woocommerce' ),
|
||||
'desc_tip' => __( 'Allows customers to checkout without creating an account.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_enable_guest_checkout',
|
||||
|
@ -126,14 +126,14 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Checkout Pages', 'woocommerce' ),
|
||||
'title' => __( 'Checkout pages', 'woocommerce' ),
|
||||
'desc' => __( 'These pages need to be set so that WooCommerce knows where to send users to checkout.', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'id' => 'checkout_page_options',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Cart Page', 'woocommerce' ),
|
||||
'title' => __( 'Cart page', 'woocommerce' ),
|
||||
'desc' => __( 'Page contents:', 'woocommerce' ) . ' [' . apply_filters( 'woocommerce_cart_shortcode_tag', 'woocommerce_cart' ) . ']',
|
||||
'id' => 'woocommerce_cart_page_id',
|
||||
'type' => 'single_select_page',
|
||||
|
@ -144,7 +144,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Checkout Page', 'woocommerce' ),
|
||||
'title' => __( 'Checkout page', 'woocommerce' ),
|
||||
'desc' => __( 'Page contents:', 'woocommerce' ) . ' [' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']',
|
||||
'id' => 'woocommerce_checkout_page_id',
|
||||
'type' => 'single_select_page',
|
||||
|
@ -155,7 +155,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Terms and Conditions', 'woocommerce' ),
|
||||
'title' => __( 'Terms and conditions', 'woocommerce' ),
|
||||
'desc' => __( 'If you define a "Terms" page the customer will be asked if they accept them when checking out.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_terms_page_id',
|
||||
'default' => '',
|
||||
|
@ -171,11 +171,11 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
'id' => 'checkout_page_options',
|
||||
),
|
||||
|
||||
array( 'title' => __( 'Checkout Endpoints', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'Endpoints are appended to your page URLs to handle specific actions during the checkout process. They should be unique.', 'woocommerce' ), 'id' => 'account_endpoint_options' ),
|
||||
array( 'title' => __( 'Checkout endpoints', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'Endpoints are appended to your page URLs to handle specific actions during the checkout process. They should be unique.', 'woocommerce' ), 'id' => 'account_endpoint_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Pay', 'woocommerce' ),
|
||||
'desc' => __( 'Endpoint for the Checkout → Pay page', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "Checkout" → "%s" page', 'woocommerce' ), __( 'Pay', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_checkout_pay_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'order-pay',
|
||||
|
@ -183,8 +183,8 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Order Received', 'woocommerce' ),
|
||||
'desc' => __( 'Endpoint for the Checkout → Order Received page', 'woocommerce' ),
|
||||
'title' => __( 'Order received', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "Checkout" → "%s" page', 'woocommerce' ), __( 'Order received', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_checkout_order_received_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'order-received',
|
||||
|
@ -192,8 +192,8 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Add Payment Method', 'woocommerce' ),
|
||||
'desc' => __( 'Endpoint for the Checkout → Add Payment Method page', 'woocommerce' ),
|
||||
'title' => __( 'Add payment method', 'woocommerce' ),
|
||||
'desc' => sprintf( __( 'Endpoint for the "Checkout" → "%s" page', 'woocommerce' ), __( 'Add payment method', 'woocommerce' ) ),
|
||||
'id' => 'woocommerce_myaccount_add_payment_method_endpoint',
|
||||
'type' => 'text',
|
||||
'default' => 'add-payment-method',
|
||||
|
@ -201,7 +201,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Delete Payment Method', 'woocommerce' ),
|
||||
'title' => __( 'Delete payment method', 'woocommerce' ),
|
||||
'desc' => __( 'Endpoint for the delete payment method page', 'woocommerce' ),
|
||||
'id' => 'woocommerce_myaccount_delete_payment_method_endpoint',
|
||||
'type' => 'text',
|
||||
|
@ -210,7 +210,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Set Default Payment Method', 'woocommerce' ),
|
||||
'title' => __( 'Set default payment method', 'woocommerce' ),
|
||||
'desc' => __( 'Endpoint for the setting a default payment method page', 'woocommerce' ),
|
||||
'id' => 'woocommerce_myaccount_set_default_payment_method_endpoint',
|
||||
'type' => 'text',
|
||||
|
@ -224,7 +224,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Payment Gateways', 'woocommerce' ),
|
||||
'title' => __( 'Payment gateways', 'woocommerce' ),
|
||||
'desc' => __( 'Installed gateways are listed below. Drag and drop gateways to control their display order on the frontend.', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'id' => 'payment_gateways_options',
|
||||
|
@ -277,7 +277,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
public function payment_gateways_setting() {
|
||||
?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc"><?php _e( 'Gateway Display Order', 'woocommerce' ) ?></th>
|
||||
<th scope="row" class="titledesc"><?php _e( 'Gateway display order', 'woocommerce' ) ?></th>
|
||||
<td class="forminp">
|
||||
<table class="wc_gateways widefat" cellspacing="0">
|
||||
<thead>
|
||||
|
|
|
@ -40,7 +40,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
*/
|
||||
public function get_sections() {
|
||||
$sections = array(
|
||||
'' => __( 'Email Options', 'woocommerce' ),
|
||||
'' => __( 'Email options', 'woocommerce' ),
|
||||
);
|
||||
return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
public function get_settings() {
|
||||
$settings = apply_filters( 'woocommerce_email_settings', array(
|
||||
|
||||
array( 'title' => __( 'Email Notifications', 'woocommerce' ), 'desc' => __( 'Email notifications sent from WooCommerce are listed below. Click on an email to configure it.', 'woocommerce' ), 'type' => 'title', 'id' => 'email_notification_settings' ),
|
||||
array( 'title' => __( 'Email notifications', 'woocommerce' ), 'desc' => __( 'Email notifications sent from WooCommerce are listed below. Click on an email to configure it.', 'woocommerce' ), 'type' => 'title', 'id' => 'email_notification_settings' ),
|
||||
|
||||
array( 'type' => 'email_notification' ),
|
||||
|
||||
|
@ -61,10 +61,10 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
|
||||
array( 'type' => 'sectionend', 'id' => 'email_recipient_options' ),
|
||||
|
||||
array( 'title' => __( 'Email Sender Options', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'email_options' ),
|
||||
array( 'title' => __( 'Email sender options', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'email_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( '"From" Name', 'woocommerce' ),
|
||||
'title' => __( '"From" name', 'woocommerce' ),
|
||||
'desc' => __( 'How the sender\'s name appears in outgoing WooCommerce emails.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_from_name',
|
||||
'type' => 'text',
|
||||
|
@ -75,7 +75,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( '"From" Address', 'woocommerce' ),
|
||||
'title' => __( '"From" address', 'woocommerce' ),
|
||||
'desc' => __( 'How the sender\'s email appears in outgoing WooCommerce emails.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_from_address',
|
||||
'type' => 'email',
|
||||
|
@ -90,10 +90,10 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
|
||||
array( 'type' => 'sectionend', 'id' => 'email_options' ),
|
||||
|
||||
array( 'title' => __( 'Email Template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf( __( 'This section lets you customize the WooCommerce emails. <a href="%s" target="_blank">Click here to preview your email template</a>.', 'woocommerce' ), wp_nonce_url( admin_url( '?preview_woocommerce_mail=true' ), 'preview-mail' ) ), 'id' => 'email_template_options' ),
|
||||
array( 'title' => __( 'Email template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf( __( 'This section lets you customize the WooCommerce emails. <a href="%s" target="_blank">Click here to preview your email template</a>.', 'woocommerce' ), wp_nonce_url( admin_url( '?preview_woocommerce_mail=true' ), 'preview-mail' ) ), 'id' => 'email_template_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Header Image', 'woocommerce' ),
|
||||
'title' => __( 'Header image', 'woocommerce' ),
|
||||
'desc' => __( 'URL to an image you want to show in the email header. Upload images using the media uploader (Admin > Media).', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_header_image',
|
||||
'type' => 'text',
|
||||
|
@ -105,7 +105,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Footer Text', 'woocommerce' ),
|
||||
'title' => __( 'Footer text', 'woocommerce' ),
|
||||
'desc' => __( 'The text to appear in the footer of WooCommerce emails.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_footer_text',
|
||||
'css' => 'width:300px; height: 75px;',
|
||||
|
@ -117,7 +117,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Base Colour', 'woocommerce' ),
|
||||
'title' => __( 'Base colour', 'woocommerce' ),
|
||||
'desc' => __( 'The base colour for WooCommerce email templates. Default <code>#96588a</code>.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_base_color',
|
||||
'type' => 'color',
|
||||
|
@ -128,7 +128,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Background Colour', 'woocommerce' ),
|
||||
'title' => __( 'Background colour', 'woocommerce' ),
|
||||
'desc' => __( 'The background colour for WooCommerce email templates. Default <code>#f7f7f7</code>.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_background_color',
|
||||
'type' => 'color',
|
||||
|
@ -139,7 +139,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Body Background Colour', 'woocommerce' ),
|
||||
'title' => __( 'Body background colour', 'woocommerce' ),
|
||||
'desc' => __( 'The main body background colour. Default <code>#ffffff</code>.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_body_background_color',
|
||||
'type' => 'color',
|
||||
|
@ -150,7 +150,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Body Text Colour', 'woocommerce' ),
|
||||
'title' => __( 'Body text colour', 'woocommerce' ),
|
||||
'desc' => __( 'The main body text colour. Default <code>#3c3c3c</code>.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_email_text_color',
|
||||
'type' => 'color',
|
||||
|
@ -231,7 +231,7 @@ class WC_Settings_Emails extends WC_Settings_Page {
|
|||
$columns = apply_filters( 'woocommerce_email_setting_columns', array(
|
||||
'status' => '',
|
||||
'name' => __( 'Email', 'woocommerce' ),
|
||||
'email_type' => __( 'Content Type', 'woocommerce' ),
|
||||
'email_type' => __( 'Content type', 'woocommerce' ),
|
||||
'recipient' => __( 'Recipient(s)', 'woocommerce' ),
|
||||
'actions' => '',
|
||||
) );
|
||||
|
|
|
@ -47,10 +47,10 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
|
||||
$settings = apply_filters( 'woocommerce_general_settings', array(
|
||||
|
||||
array( 'title' => __( 'General Options', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'general_options' ),
|
||||
array( 'title' => __( 'General options', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'general_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Base Location', 'woocommerce' ),
|
||||
'title' => __( 'Base location', 'woocommerce' ),
|
||||
'desc' => __( 'This is the base location for your business. Tax rates will be based on this country.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_default_country',
|
||||
'css' => 'min-width:350px;',
|
||||
|
@ -60,7 +60,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Selling Location(s)', 'woocommerce' ),
|
||||
'title' => __( 'Selling location(s)', 'woocommerce' ),
|
||||
'desc' => __( 'This option lets you limit which countries you are willing to sell to.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_allowed_countries',
|
||||
'default' => 'all',
|
||||
|
@ -69,14 +69,14 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
'css' => 'min-width: 350px;',
|
||||
'desc_tip' => true,
|
||||
'options' => array(
|
||||
'all' => __( 'Sell to All Countries', 'woocommerce' ),
|
||||
'all_except' => __( 'Sell to All Countries, Except For…', 'woocommerce' ),
|
||||
'specific' => __( 'Sell to Specific Countries', 'woocommerce' ),
|
||||
'all' => __( 'Sell to all countries', 'woocommerce' ),
|
||||
'all_except' => __( 'Sell to all countries, except for…', 'woocommerce' ),
|
||||
'specific' => __( 'Sell to specific countries', 'woocommerce' ),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Sell to All Countries, Except For…', 'woocommerce' ),
|
||||
'title' => __( 'Sell to all countries, except for…', 'woocommerce' ),
|
||||
'desc' => '',
|
||||
'id' => 'woocommerce_all_except_countries',
|
||||
'css' => 'min-width: 350px;',
|
||||
|
@ -85,7 +85,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Sell to Specific Countries', 'woocommerce' ),
|
||||
'title' => __( 'Sell to specific countries', 'woocommerce' ),
|
||||
'desc' => '',
|
||||
'id' => 'woocommerce_specific_allowed_countries',
|
||||
'css' => 'min-width: 350px;',
|
||||
|
@ -94,7 +94,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Shipping Location(s)', 'woocommerce' ),
|
||||
'title' => __( 'Shipping location(s)', 'woocommerce' ),
|
||||
'desc' => __( 'Choose which countries you want to ship to, or choose to ship to all locations you sell to.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_ship_to_countries',
|
||||
'default' => '',
|
||||
|
@ -110,7 +110,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Ship to Specific Countries', 'woocommerce' ),
|
||||
'title' => __( 'Ship to specific countries', 'woocommerce' ),
|
||||
'desc' => '',
|
||||
'id' => 'woocommerce_specific_ship_to_countries',
|
||||
'css' => '',
|
||||
|
@ -119,7 +119,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Default Customer Location', 'woocommerce' ),
|
||||
'title' => __( 'Default customer location', 'woocommerce' ),
|
||||
'id' => 'woocommerce_default_customer_address',
|
||||
'desc_tip' => __( 'This option determines a customers default location. The MaxMind GeoLite Database will be periodically downloaded to your wp-content directory if using geolocation.', 'woocommerce' ),
|
||||
'default' => 'geolocation',
|
||||
|
@ -134,7 +134,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Enable Taxes', 'woocommerce' ),
|
||||
'title' => __( 'Enable taxes', 'woocommerce' ),
|
||||
'desc' => __( 'Enable taxes and tax calculations', 'woocommerce' ),
|
||||
'id' => 'woocommerce_calc_taxes',
|
||||
'default' => 'no',
|
||||
|
@ -142,7 +142,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Store Notice', 'woocommerce' ),
|
||||
'title' => __( 'Store notice', 'woocommerce' ),
|
||||
'desc' => __( 'Enable site-wide store notice text', 'woocommerce' ),
|
||||
'id' => 'woocommerce_demo_store',
|
||||
'default' => 'no',
|
||||
|
@ -150,7 +150,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Store Notice Text', 'woocommerce' ),
|
||||
'title' => __( 'Store notice text', 'woocommerce' ),
|
||||
'desc' => '',
|
||||
'id' => 'woocommerce_demo_store_notice',
|
||||
'default' => __( 'This is a demo store for testing purposes — no orders shall be fulfilled.', 'woocommerce' ),
|
||||
|
@ -161,7 +161,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
|
||||
array( 'type' => 'sectionend', 'id' => 'general_options' ),
|
||||
|
||||
array( 'title' => __( 'Currency Options', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'The following options affect how prices are displayed on the frontend.', 'woocommerce' ), 'id' => 'pricing_options' ),
|
||||
array( 'title' => __( 'Currency options', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'The following options affect how prices are displayed on the frontend.', 'woocommerce' ), 'id' => 'pricing_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Currency', 'woocommerce' ),
|
||||
|
@ -176,7 +176,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Currency Position', 'woocommerce' ),
|
||||
'title' => __( 'Currency position', 'woocommerce' ),
|
||||
'desc' => __( 'This controls the position of the currency symbol.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_currency_pos',
|
||||
'css' => 'min-width:350px;',
|
||||
|
@ -193,7 +193,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Thousand Separator', 'woocommerce' ),
|
||||
'title' => __( 'Thousand separator', 'woocommerce' ),
|
||||
'desc' => __( 'This sets the thousand separator of displayed prices.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_price_thousand_sep',
|
||||
'css' => 'width:50px;',
|
||||
|
@ -203,7 +203,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Decimal Separator', 'woocommerce' ),
|
||||
'title' => __( 'Decimal separator', 'woocommerce' ),
|
||||
'desc' => __( 'This sets the decimal separator of displayed prices.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_price_decimal_sep',
|
||||
'css' => 'width:50px;',
|
||||
|
@ -213,7 +213,7 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Number of Decimals', 'woocommerce' ),
|
||||
'title' => __( 'Number of decimals', 'woocommerce' ),
|
||||
'desc' => __( 'This sets the number of decimal points shown in displayed prices.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_price_num_decimals',
|
||||
'css' => 'width:50px;',
|
||||
|
|
|
@ -44,7 +44,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
'' => __( 'General', 'woocommerce' ),
|
||||
'display' => __( 'Display', 'woocommerce' ),
|
||||
'inventory' => __( 'Inventory', 'woocommerce' ),
|
||||
'downloadable' => __( 'Downloadable Products', 'woocommerce' ),
|
||||
'downloadable' => __( 'Downloadable products', 'woocommerce' ),
|
||||
);
|
||||
|
||||
return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
|
||||
|
@ -82,14 +82,14 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
$settings = apply_filters( 'woocommerce_product_settings', array(
|
||||
|
||||
array(
|
||||
'title' => __( 'Shop & Product Pages', 'woocommerce' ),
|
||||
'title' => __( 'Shop & product pages', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'desc' => '',
|
||||
'id' => 'catalog_options',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Shop Page', 'woocommerce' ),
|
||||
'title' => __( 'Shop page', 'woocommerce' ),
|
||||
'desc' => '<br/>' . sprintf( __( 'The base page can also be used in your <a href="%s">product permalinks</a>.', 'woocommerce' ), admin_url( 'options-permalink.php' ) ),
|
||||
'id' => 'woocommerce_shop_page_id',
|
||||
'type' => 'single_select_page',
|
||||
|
@ -100,7 +100,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Shop Page Display', 'woocommerce' ),
|
||||
'title' => __( 'Shop page display', 'woocommerce' ),
|
||||
'desc' => __( 'This controls what is shown on the product archive.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_shop_page_display',
|
||||
'class' => 'wc-enhanced-select',
|
||||
|
@ -116,7 +116,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Default Category Display', 'woocommerce' ),
|
||||
'title' => __( 'Default category display', 'woocommerce' ),
|
||||
'desc' => __( 'This controls what is shown on category archives.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_category_archive_display',
|
||||
'class' => 'wc-enhanced-select',
|
||||
|
@ -132,7 +132,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Default Product Sorting', 'woocommerce' ),
|
||||
'title' => __( 'Default product sorting', 'woocommerce' ),
|
||||
'desc' => __( 'This controls the default sort order of the catalog.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_default_catalog_orderby',
|
||||
'class' => 'wc-enhanced-select',
|
||||
|
@ -142,7 +142,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
'options' => apply_filters( 'woocommerce_default_catalog_orderby_options', array(
|
||||
'menu_order' => __( 'Default sorting (custom ordering + name)', 'woocommerce' ),
|
||||
'popularity' => __( 'Popularity (sales)', 'woocommerce' ),
|
||||
'rating' => __( 'Average Rating', 'woocommerce' ),
|
||||
'rating' => __( 'Average rating', 'woocommerce' ),
|
||||
'date' => __( 'Sort by most recent', 'woocommerce' ),
|
||||
'price' => __( 'Sort by price (asc)', 'woocommerce' ),
|
||||
'price-desc' => __( 'Sort by price (desc)', 'woocommerce' ),
|
||||
|
@ -173,14 +173,14 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Product Images', 'woocommerce' ),
|
||||
'title' => __( 'Product images', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'desc' => sprintf( __( 'These settings affect the display and dimensions of images in your catalog - the display on the front-end will still be affected by CSS styles. After changing these settings you may need to <a target="_blank" href="%s">regenerate your thumbnails</a>.', 'woocommerce' ), 'https://wordpress.org/extend/plugins/regenerate-thumbnails/' ),
|
||||
'id' => 'image_options',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Catalog Images', 'woocommerce' ),
|
||||
'title' => __( 'Catalog images', 'woocommerce' ),
|
||||
'desc' => __( 'This size is usually used in product listings. (W x H)', 'woocommerce' ),
|
||||
'id' => 'shop_catalog_image_size',
|
||||
'css' => '',
|
||||
|
@ -194,7 +194,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Single Product Image', 'woocommerce' ),
|
||||
'title' => __( 'Single product image', 'woocommerce' ),
|
||||
'desc' => __( 'This is the size used by the main image on the product page. (W x H)', 'woocommerce' ),
|
||||
'id' => 'shop_single_image_size',
|
||||
'css' => '',
|
||||
|
@ -208,7 +208,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Product Thumbnails', 'woocommerce' ),
|
||||
'title' => __( 'Product thumbnails', 'woocommerce' ),
|
||||
'desc' => __( 'This size is usually used for the gallery of images on the product page. (W x H)', 'woocommerce' ),
|
||||
'id' => 'shop_thumbnail_image_size',
|
||||
'css' => '',
|
||||
|
@ -222,7 +222,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Product Image Gallery', 'woocommerce' ),
|
||||
'title' => __( 'Product image gallery', 'woocommerce' ),
|
||||
'desc' => __( 'Enable Lightbox for product images', 'woocommerce' ),
|
||||
'id' => 'woocommerce_enable_lightbox',
|
||||
'default' => 'yes',
|
||||
|
@ -248,7 +248,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Manage Stock', 'woocommerce' ),
|
||||
'title' => __( 'Manage stock', 'woocommerce' ),
|
||||
'desc' => __( 'Enable stock management', 'woocommerce' ),
|
||||
'id' => 'woocommerce_manage_stock',
|
||||
'default' => 'yes',
|
||||
|
@ -256,7 +256,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Hold Stock (minutes)', 'woocommerce' ),
|
||||
'title' => __( 'Hold stock (minutes)', 'woocommerce' ),
|
||||
'desc' => __( 'Hold stock (for unpaid orders) for x minutes. When this limit is reached, the pending order will be cancelled. Leave blank to disable.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_hold_stock_minutes',
|
||||
'type' => 'number',
|
||||
|
@ -292,7 +292,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Notification Recipient(s)', 'woocommerce' ),
|
||||
'title' => __( 'Notification recipient(s)', 'woocommerce' ),
|
||||
'desc' => __( 'Enter recipients (comma separated) that will receive this notification.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_stock_email_recipient',
|
||||
'type' => 'text',
|
||||
|
@ -304,7 +304,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Low Stock Threshold', 'woocommerce' ),
|
||||
'title' => __( 'Low stock threshold', 'woocommerce' ),
|
||||
'desc' => __( 'When product stock reaches this amount you will be notified via email.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_notify_low_stock_amount',
|
||||
'css' => 'width:50px;',
|
||||
|
@ -320,7 +320,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Out Of Stock Threshold', 'woocommerce' ),
|
||||
'title' => __( 'Out of stock threshold', 'woocommerce' ),
|
||||
'desc' => __( 'When product stock reaches this amount the stock status will change to "out of stock" and you will be notified via email. This setting does not affect existing "in stock" products.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_notify_no_stock_amount',
|
||||
'css' => 'width:50px;',
|
||||
|
@ -335,7 +335,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Out Of Stock Visibility', 'woocommerce' ),
|
||||
'title' => __( 'Out of stock visibility', 'woocommerce' ),
|
||||
'desc' => __( 'Hide out of stock items from the catalog', 'woocommerce' ),
|
||||
'id' => 'woocommerce_hide_out_of_stock_items',
|
||||
'default' => 'no',
|
||||
|
@ -343,7 +343,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Stock Display Format', 'woocommerce' ),
|
||||
'title' => __( 'Stock display format', 'woocommerce' ),
|
||||
'desc' => __( 'This controls how stock is displayed on the frontend.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_stock_format',
|
||||
'css' => 'min-width:150px;',
|
||||
|
@ -352,7 +352,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
'type' => 'select',
|
||||
'options' => array(
|
||||
'' => __( 'Always show stock e.g. "12 in stock"', 'woocommerce' ),
|
||||
'low_amount' => __( 'Only show stock when low e.g. "Only 2 left in stock" vs. "In Stock"', 'woocommerce' ),
|
||||
'low_amount' => __( 'Only show stock when low e.g. "Only 2 left in stock" vs. "In stock"', 'woocommerce' ),
|
||||
'no_amount' => __( 'Never show stock amount', 'woocommerce' ),
|
||||
),
|
||||
'desc_tip' => true,
|
||||
|
@ -368,13 +368,13 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
} elseif ( 'downloadable' == $current_section ) {
|
||||
$settings = apply_filters( 'woocommerce_downloadable_products_settings', array(
|
||||
array(
|
||||
'title' => __( 'Downloadable Products', 'woocommerce' ),
|
||||
'title' => __( 'Downloadable products', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'id' => 'digital_download_options',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'File Download Method', 'woocommerce' ),
|
||||
'title' => __( 'File download method', 'woocommerce' ),
|
||||
'desc' => __( 'Forcing downloads will keep URLs hidden, but some servers may serve large files unreliably. If supported, <code>X-Accel-Redirect</code>/ <code>X-Sendfile</code> can be used to serve downloads instead (server requires <code>mod_xsendfile</code>).', 'woocommerce' ),
|
||||
'id' => 'woocommerce_file_download_method',
|
||||
'type' => 'select',
|
||||
|
@ -383,7 +383,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
'default' => 'force',
|
||||
'desc_tip' => true,
|
||||
'options' => array(
|
||||
'force' => __( 'Force Downloads', 'woocommerce' ),
|
||||
'force' => __( 'Force downloads', 'woocommerce' ),
|
||||
'xsendfile' => __( 'X-Accel-Redirect/X-Sendfile', 'woocommerce' ),
|
||||
'redirect' => __( 'Redirect only', 'woocommerce' ),
|
||||
),
|
||||
|
@ -391,7 +391,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Access Restriction', 'woocommerce' ),
|
||||
'title' => __( 'Access restriction', 'woocommerce' ),
|
||||
'desc' => __( 'Downloads require login', 'woocommerce' ),
|
||||
'id' => 'woocommerce_downloads_require_login',
|
||||
'type' => 'checkbox',
|
||||
|
@ -427,7 +427,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Weight Unit', 'woocommerce' ),
|
||||
'title' => __( 'Weight unit', 'woocommerce' ),
|
||||
'desc' => __( 'This controls what unit you will define weights in.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_weight_unit',
|
||||
'class' => 'wc-enhanced-select',
|
||||
|
@ -444,7 +444,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Dimensions Unit', 'woocommerce' ),
|
||||
'title' => __( 'Dimensions unit', 'woocommerce' ),
|
||||
'desc' => __( 'This controls what unit you will define lengths in.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_dimension_unit',
|
||||
'class' => 'wc-enhanced-select',
|
||||
|
@ -474,7 +474,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Product Ratings', 'woocommerce' ),
|
||||
'title' => __( 'Product ratings', 'woocommerce' ),
|
||||
'desc' => __( 'Enable ratings on reviews', 'woocommerce' ),
|
||||
'id' => 'woocommerce_enable_review_rating',
|
||||
'default' => 'yes',
|
||||
|
|
|
@ -45,9 +45,9 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
*/
|
||||
public function get_sections() {
|
||||
$sections = array(
|
||||
'' => __( 'Shipping Zones', 'woocommerce' ),
|
||||
'options' => __( 'Shipping Options', 'woocommerce' ),
|
||||
'classes' => __( 'Shipping Classes', 'woocommerce' ),
|
||||
'' => __( 'Shipping zones', 'woocommerce' ),
|
||||
'options' => __( 'Shipping options', 'woocommerce' ),
|
||||
'classes' => __( 'Shipping classes', 'woocommerce' ),
|
||||
);
|
||||
|
||||
if ( ! defined( 'WC_INSTALLING' ) ) {
|
||||
|
@ -74,7 +74,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
public function get_settings() {
|
||||
$settings = apply_filters( 'woocommerce_shipping_settings', array(
|
||||
|
||||
array( 'title' => __( 'Shipping Options', 'woocommerce' ), 'type' => 'title', 'id' => 'shipping_options' ),
|
||||
array( 'title' => __( 'Shipping options', 'woocommerce' ), 'type' => 'title', 'id' => 'shipping_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Calculations', 'woocommerce' ),
|
||||
|
@ -96,7 +96,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Shipping Destination', 'woocommerce' ),
|
||||
'title' => __( 'Shipping destination', 'woocommerce' ),
|
||||
'desc' => __( 'This controls which shipping address is used by default.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_ship_to_destination',
|
||||
'default' => 'billing',
|
||||
|
@ -112,9 +112,9 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Debug Mode', 'woocommerce' ),
|
||||
'desc' => __( 'Enable Debug Mode', 'woocommerce' ),
|
||||
'desc_tip' => __( 'Enable Shipping Debug Mode to show matching shipping zones and to bypass shipping rate cache.', 'woocommerce' ),
|
||||
'title' => __( 'Debug mode', 'woocommerce' ),
|
||||
'desc' => __( 'Enable debug mode', 'woocommerce' ),
|
||||
'desc_tip' => __( 'Enable shipping debug mode to show matching shipping zones and to bypass shipping rate cache.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_shipping_debug_mode',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
|
@ -206,7 +206,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
protected function zone_methods_screen( $zone_id ) {
|
||||
if ( 'new' === $zone_id ) {
|
||||
$zone = new WC_Shipping_Zone();
|
||||
$zone->set_zone_name( __( 'New Zone', 'woocommerce' ) );
|
||||
$zone->set_zone_name( __( 'New zone', 'woocommerce' ) );
|
||||
} else {
|
||||
$zone = WC_Shipping_Zones::get_zone( absint( $zone_id ) );
|
||||
}
|
||||
|
@ -334,10 +334,10 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
|
||||
// Extendable columns to show on the shipping classes screen.
|
||||
$shipping_class_columns = apply_filters( 'woocommerce_shipping_classes_columns', array(
|
||||
'wc-shipping-class-name' => __( 'Shipping Class', 'woocommerce' ),
|
||||
'wc-shipping-class-name' => __( 'Shipping class', 'woocommerce' ),
|
||||
'wc-shipping-class-slug' => __( 'Slug', 'woocommerce' ),
|
||||
'wc-shipping-class-description' => __( 'Description', 'woocommerce' ),
|
||||
'wc-shipping-class-count' => __( 'Product Count', 'woocommerce' ),
|
||||
'wc-shipping-class-count' => __( 'Product count', 'woocommerce' ),
|
||||
) );
|
||||
|
||||
include_once( dirname( __FILE__ ) . '/views/html-admin-page-shipping-classes.php' );
|
||||
|
|
|
@ -52,15 +52,15 @@ class WC_Settings_Tax extends WC_Settings_Page {
|
|||
*/
|
||||
public function get_sections() {
|
||||
$sections = array(
|
||||
'' => __( 'Tax Options', 'woocommerce' ),
|
||||
'standard' => __( 'Standard Rates', 'woocommerce' ),
|
||||
'' => __( 'Tax options', 'woocommerce' ),
|
||||
'standard' => __( 'Standard rates', 'woocommerce' ),
|
||||
);
|
||||
|
||||
// Get tax classes and display as links
|
||||
$tax_classes = WC_Tax::get_tax_classes();
|
||||
|
||||
foreach ( $tax_classes as $class ) {
|
||||
$sections[ sanitize_title( $class ) ] = sprintf( __( '%s Rates', 'woocommerce' ), $class );
|
||||
$sections[ sanitize_title( $class ) ] = sprintf( __( '%s rates', 'woocommerce' ), $class );
|
||||
}
|
||||
|
||||
return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
|
||||
|
@ -174,16 +174,16 @@ class WC_Settings_Tax extends WC_Settings_Page {
|
|||
'no_rows_selected' => __( 'No row(s) selected', 'woocommerce' ),
|
||||
'unload_confirmation_msg' => __( 'Your changed data will be lost if you leave this page without saving.', 'woocommerce' ),
|
||||
'csv_data_cols' => array(
|
||||
__( 'Country Code', 'woocommerce' ),
|
||||
__( 'State Code', 'woocommerce' ),
|
||||
__( 'Country code', 'woocommerce' ),
|
||||
__( 'State code', 'woocommerce' ),
|
||||
__( 'Postcode / ZIP', 'woocommerce' ),
|
||||
__( 'City', 'woocommerce' ),
|
||||
__( 'Rate %', 'woocommerce' ),
|
||||
__( 'Tax Name', 'woocommerce' ),
|
||||
__( 'Tax name', 'woocommerce' ),
|
||||
__( 'Priority', 'woocommerce' ),
|
||||
__( 'Compound', 'woocommerce' ),
|
||||
__( 'Shipping', 'woocommerce' ),
|
||||
__( 'Tax Class', 'woocommerce' ),
|
||||
__( 'Tax class', 'woocommerce' ),
|
||||
),
|
||||
),
|
||||
) );
|
||||
|
|
|
@ -5,8 +5,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
?>
|
||||
|
||||
<h2>
|
||||
<?php _e( 'Shipping Classes', 'woocommerce' ); ?>
|
||||
<?php echo wc_help_tip( __( 'Shipping classes can be used to group products of similar type and can be used by some Shipping Methods (such as Flat Rate Shipping) to provide different rates to different classes of product.', 'woocommerce' ) ); ?>
|
||||
<?php _e( 'Shipping classes', 'woocommerce' ); ?>
|
||||
<?php echo wc_help_tip( __( 'Shipping classes can be used to group products of similar type and can be used by some Shipping Methods (such as "Flat rate shipping") to provide different rates to different classes of product.', 'woocommerce' ) ); ?>
|
||||
</h2>
|
||||
|
||||
<table class="wc-shipping-classes widefat">
|
||||
|
@ -20,8 +20,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="<?php echo absint( sizeof( $shipping_class_columns ) ); ?>">
|
||||
<input type="submit" name="save" class="button button-primary wc-shipping-class-save" value="<?php esc_attr_e( 'Save Shipping Classes', 'woocommerce' ); ?>" disabled />
|
||||
<a class="button button-secondary wc-shipping-class-add" href="#"><?php esc_html_e( 'Add Shipping Class', 'woocommerce' ); ?></a>
|
||||
<input type="submit" name="save" class="button button-primary wc-shipping-class-save" value="<?php esc_attr_e( 'Save shipping classes', 'woocommerce' ); ?>" disabled />
|
||||
<a class="button button-secondary wc-shipping-class-add" href="#"><?php esc_html_e( 'Add shipping class', 'woocommerce' ); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<script type="text/html" id="tmpl-wc-shipping-class-row-blank">
|
||||
<tr>
|
||||
<td class="wc-shipping-classes-blank-state" colspan="<?php echo absint( sizeof( $shipping_class_columns ) ); ?>"><p><?php _e( 'No Shipping classes have been created.', 'woocommerce' ); ?></p></td>
|
||||
<td class="wc-shipping-classes-blank-state" colspan="<?php echo absint( sizeof( $shipping_class_columns ) ); ?>"><p><?php _e( 'No shipping classes have been created.', 'woocommerce' ); ?></p></td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</div>
|
||||
</div>
|
||||
<div class="edit">
|
||||
<input type="text" name="name[{{ data.term_id }}]" data-attribute="name" value="{{ data.name }}" placeholder="<?php esc_attr_e( 'Shipping Class Name', 'woocommerce' ); ?>" />
|
||||
<input type="text" name="name[{{ data.term_id }}]" data-attribute="name" value="{{ data.name }}" placeholder="<?php esc_attr_e( 'Shipping class name', 'woocommerce' ); ?>" />
|
||||
<div class="row-actions">
|
||||
<a class="wc-shipping-class-cancel-edit" href="#"><?php _e( 'Cancel changes', 'woocommerce' ); ?></a>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
?>
|
||||
|
||||
<h2>
|
||||
<a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=shipping' ); ?>"><?php _e( 'Shipping Zones', 'woocommerce' ); ?></a> >
|
||||
<a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=shipping' ); ?>"><?php _e( 'Shipping zones', 'woocommerce' ); ?></a> >
|
||||
<span class="wc-shipping-zone-name"><?php echo esc_html( $zone->get_zone_name() ); ?></span>
|
||||
</h2>
|
||||
|
||||
|
@ -16,16 +16,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<?php if ( 0 !== $zone->get_zone_id() ) : ?>
|
||||
<tr valign="top" class="">
|
||||
<th scope="row" class="titledesc">
|
||||
<label for="zone_name"><?php esc_html_e( 'Zone Name', 'woocommerce' ); ?></label>
|
||||
<label for="zone_name"><?php esc_html_e( 'Zone name', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'This is the name of the zone for your reference.', 'woocommerce' ) ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<input type="text" data-attribute="zone_name" name="zone_name" id="zone_name" value="<?php echo esc_attr( $zone->get_zone_name() ); ?>" placeholder="<?php _e( 'Zone Name', 'woocommerce' ); ?>">
|
||||
<input type="text" data-attribute="zone_name" name="zone_name" id="zone_name" value="<?php echo esc_attr( $zone->get_zone_name() ); ?>" placeholder="<?php _e( 'Zone name', 'woocommerce' ); ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="">
|
||||
<th scope="row" class="titledesc">
|
||||
<label for="zone_locations"><?php esc_html_e( 'Zone Region(s)', 'woocommerce' ); ?></label>
|
||||
<label for="zone_locations"><?php esc_html_e( 'Zone region(s)', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'These are regions inside this zone. Customers will be matched against these regions.', 'woocommerce' ) ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
|
@ -60,7 +60,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<?php endif; ?>
|
||||
<tr valign="top" class="">
|
||||
<th scope="row" class="titledesc">
|
||||
<label><?php esc_html_e( 'Shipping Method(s)', 'woocommerce' ); ?></label>
|
||||
<label><?php esc_html_e( 'Shipping method(s)', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'The following shipping methods apply to customers with shipping addresses within this zone.', 'woocommerce' ) ); ?>
|
||||
</th>
|
||||
<td class="">
|
||||
|
|
|
@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
?>
|
||||
<h2>
|
||||
<a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=shipping' ); ?>"><?php _e( 'Shipping Zones', 'woocommerce' ); ?></a> >
|
||||
<a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=shipping' ); ?>"><?php _e( 'Shipping zones', 'woocommerce' ); ?></a> >
|
||||
<a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=shipping&zone_id=' . absint( $zone->get_zone_id() ) ); ?>"><?php echo esc_html( $zone->get_zone_name() ); ?></a> >
|
||||
<?php echo esc_html( $shipping_method->get_method_title() ); ?>
|
||||
</h2>
|
||||
|
|
|
@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
?>
|
||||
|
||||
<h2>
|
||||
<?php _e( 'Shipping Zones', 'woocommerce' ); ?>
|
||||
<?php _e( 'Shipping zones', 'woocommerce' ); ?>
|
||||
<a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=shipping&zone_id=new' ); ?>" class="page-title-action"><?php esc_html_e( 'Add shipping zone', 'woocommerce' ); ?></a>
|
||||
</h2>
|
||||
<p><?php echo __( 'A shipping zone is a geographic region where a certain set of shipping methods are offered.', 'woocommerce' ) . ' ' . __( 'WooCommerce will match a customer to a single zone using their shipping address and present the shipping methods within that zone to them.', 'woocommerce' ); ?></p>
|
||||
|
@ -13,9 +13,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="wc-shipping-zone-sort"><?php echo wc_help_tip( __( 'Drag and drop to re-order your custom zones. This is the order in which they will be matched against the customer address.', 'woocommerce' ) ); ?></th>
|
||||
<th class="wc-shipping-zone-name"><?php esc_html_e( 'Zone Name', 'woocommerce' ); ?></th>
|
||||
<th class="wc-shipping-zone-name"><?php esc_html_e( 'Zone name', 'woocommerce' ); ?></th>
|
||||
<th class="wc-shipping-zone-region"><?php esc_html_e( 'Region(s)', 'woocommerce' ); ?></th>
|
||||
<th class="wc-shipping-zone-methods"><?php esc_html_e( 'Shipping Method(s)', 'woocommerce' ); ?></th>
|
||||
<th class="wc-shipping-zone-methods"><?php esc_html_e( 'Shipping method(s)', 'woocommerce' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="wc-shipping-zone-rows"></tbody>
|
||||
|
@ -58,9 +58,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<p class="main"><?php _e( 'A shipping zone is a geographic region where a certain set of shipping methods and rates apply.', 'woocommerce' ); ?></p>
|
||||
<p><?php _e( 'For example:', 'woocommerce' ); ?></p>
|
||||
<ul>
|
||||
<li><?php _e( 'Local Zone = California ZIP 90210 = Local pickup', 'woocommerce' ); ?>
|
||||
<li><?php _e( 'US Domestic Zone = All US states = Flat rate shipping', 'woocommerce' ); ?>
|
||||
<li><?php _e( 'Europe Zone = Any country in Europe = Flat rate shipping', 'woocommerce' ); ?>
|
||||
<li><?php _e( 'Local zone = California ZIP 90210 = Local pickup', 'woocommerce' ); ?>
|
||||
<li><?php _e( 'US domestic zone = All US states = Flat rate shipping', 'woocommerce' ); ?>
|
||||
<li><?php _e( 'Europe zone = Any country in Europe = Flat rate shipping', 'woocommerce' ); ?>
|
||||
</ul>
|
||||
<p><?php _e( 'Add as many zones as you need – customers will only see the methods available for their address.', 'woocommerce' ); ?></p>
|
||||
<a class="button button-primary wc-shipping-zone-add"><?php _e( 'Add shipping zone', 'woocommerce' ); ?></a>
|
||||
|
|
|
@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
?>
|
||||
|
||||
<div id="key-fields" class="settings-panel">
|
||||
<h2><?php _e( 'Key Details', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Key details', 'woocommerce' ); ?></h2>
|
||||
|
||||
<input type="hidden" id="key_id" value="<?php echo esc_attr( $key_id ); ?>" />
|
||||
|
||||
|
@ -59,7 +59,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<?php if ( 0 !== $key_id ) : ?>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Consumer Key Ending In', 'woocommerce' ); ?>
|
||||
<?php _e( 'Consumer key ending in', 'woocommerce' ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<code>…<?php echo esc_html( $key_data['truncated_key'] ); ?></code>
|
||||
|
@ -67,7 +67,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</tr>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Last Access', 'woocommerce' ); ?>
|
||||
<?php _e( 'Last access', 'woocommerce' ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<span><?php
|
||||
|
@ -89,12 +89,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<?php
|
||||
if ( 0 == $key_id ) {
|
||||
submit_button( __( 'Generate API Key', 'woocommerce' ), 'primary', 'update_api_key' );
|
||||
submit_button( __( 'Generate API key', 'woocommerce' ), 'primary', 'update_api_key' );
|
||||
} else {
|
||||
?>
|
||||
<p class="submit">
|
||||
<?php submit_button( __( 'Save changes', 'woocommerce' ), 'primary', 'update_api_key', false ); ?>
|
||||
<a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys' ) ), 'revoke' ) ); ?>"><?php _e( 'Revoke Key', 'woocommerce' ); ?></a>
|
||||
<a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys' ) ), 'revoke' ) ); ?>"><?php _e( 'Revoke key', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<tbody>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Consumer Key', 'woocommerce' ); ?>
|
||||
<?php _e( 'Consumer key', 'woocommerce' ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<input id="key_consumer_key" type="text" value="{{ data.consumer_key }}" size="55" readonly="readonly"> <button type="button" class="button-secondary copy-key" data-tip="<?php esc_attr_e( 'Copied!', 'woocommerce' ); ?>"><?php _e( 'Copy', 'woocommerce' ); ?></button>
|
||||
|
@ -115,7 +115,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</tr>
|
||||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<?php _e( 'Consumer Secret', 'woocommerce' ); ?>
|
||||
<?php _e( 'Consumer secret', 'woocommerce' ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<input id="key_consumer_secret" type="text" value="{{ data.consumer_secret }}" size="55" readonly="readonly"> <button type="button" class="button-secondary copy-secret" data-tip="<?php esc_attr_e( 'Copied!', 'woocommerce' ); ?>"><?php _e( 'Copy', 'woocommerce' ); ?></button>
|
||||
|
|
|
@ -10,17 +10,17 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<div id="rates-pagination"></div>
|
||||
|
||||
<h3><?php printf( __( '"%s" Tax Rates', 'woocommerce' ), $current_class ? esc_html( $current_class ) : __( 'Standard', 'woocommerce' ) ); ?></h3>
|
||||
<h3><?php printf( __( '"%s" tax rates', 'woocommerce' ), $current_class ? esc_html( $current_class ) : __( 'Standard', 'woocommerce' ) ); ?></h3>
|
||||
|
||||
<table class="wc_tax_rates wc_input_table widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="8%"><a href="https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes" target="_blank"><?php _e( 'Country Code', 'woocommerce' ); ?></a> <?php echo wc_help_tip( __( 'A 2 digit country code, e.g. US. Leave blank to apply to all.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'State Code', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'A 2 digit state code, e.g. AL. Leave blank to apply to all.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><a href="https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes" target="_blank"><?php _e( 'Country code', 'woocommerce' ); ?></a> <?php echo wc_help_tip( __( 'A 2 digit country code, e.g. US. Leave blank to apply to all.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'State code', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'A 2 digit state code, e.g. AL. Leave blank to apply to all.', 'woocommerce' ) ); ?></th>
|
||||
<th><?php _e( 'Postcode / ZIP', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Postcode for this rule. Semi-colon (;) separate multiple values. Leave blank to apply to all areas. Wildcards (*) and ranges for numeric postcodes (e.g. 12345...12350) can also be used.', 'woocommerce' ) ); ?></th>
|
||||
<th><?php _e( 'City', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Cities for this rule. Semi-colon (;) separate multiple values. Leave blank to apply to all cities.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'Rate %', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Enter a tax rate (percentage) to 4 decimal places.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'Tax Name', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Enter a name for this tax rate.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'Tax mame', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Enter a name for this tax rate.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'Priority', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Choose a priority for this tax rate. Only 1 matching rate per priority will be used. To define multiple tax rates for a single area you need to specify a different priority per rate.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'Compound', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates.', 'woocommerce' ) ); ?></th>
|
||||
<th width="8%"><?php _e( 'Shipping', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Choose whether or not this tax rate also gets applied to shipping.', 'woocommerce' ) ); ?></th>
|
||||
|
@ -85,7 +85,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<script type="text/html" id="tmpl-wc-tax-table-row-empty">
|
||||
<tr>
|
||||
<th colspan="9" style="text-align:center"><?php esc_html_e( 'No Matching Tax Rates Found.', 'woocommerce' ); ?></th>
|
||||
<th colspan="9" style="text-align:center"><?php esc_html_e( 'No matching tax rates found.', 'woocommerce' ); ?></th>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
@ -105,7 +105,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</a>
|
||||
|
||||
<span class="paging-input">
|
||||
<label for="current-page-selector" class="screen-reader-text"><?php esc_html_e( 'Current Page', 'woocommerce' ); ?></label>
|
||||
<label for="current-page-selector" class="screen-reader-text"><?php esc_html_e( 'Current page', 'woocommerce' ); ?></label>
|
||||
<?php printf( esc_html_x( '%1$s of %2$s', 'Pagination, like `1 of 3`', 'woocommerce' ),
|
||||
'<input class="current-page" id="current-page-selector" type="text" name="paged" value="{{ data.current_page }}" size="<# print( data.qty_pages.toString().length ) #>" aria-describedby="table-paging">',
|
||||
'<span class="total-pages">{{ data.qty_pages }}</span>' ); ?>
|
||||
|
|
|
@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<input type="hidden" name="webhook_id" value="<?php echo esc_attr( $webhook->id ); ?>" />
|
||||
|
||||
<div id="webhook-options" class="settings-panel">
|
||||
<h2><?php _e( 'Webhook Data', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Webhook data', 'woocommerce' ); ?></h2>
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<tr valign="top">
|
||||
|
@ -52,18 +52,18 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
$topics = apply_filters( 'woocommerce_webhook_topics', array(
|
||||
'' => __( 'Select an option…', 'woocommerce' ),
|
||||
'coupon.created' => __( 'Coupon Created', 'woocommerce' ),
|
||||
'coupon.updated' => __( 'Coupon Updated', 'woocommerce' ),
|
||||
'coupon.deleted' => __( 'Coupon Deleted', 'woocommerce' ),
|
||||
'customer.created' => __( 'Customer Created', 'woocommerce' ),
|
||||
'customer.updated' => __( 'Customer Updated', 'woocommerce' ),
|
||||
'customer.deleted' => __( 'Customer Deleted', 'woocommerce' ),
|
||||
'order.created' => __( 'Order Created', 'woocommerce' ),
|
||||
'order.updated' => __( 'Order Updated', 'woocommerce' ),
|
||||
'order.deleted' => __( 'Order Deleted', 'woocommerce' ),
|
||||
'product.created' => __( 'Product Created', 'woocommerce' ),
|
||||
'product.updated' => __( 'Product Updated', 'woocommerce' ),
|
||||
'product.deleted' => __( 'Product Deleted', 'woocommerce' ),
|
||||
'coupon.created' => __( 'Coupon created', 'woocommerce' ),
|
||||
'coupon.updated' => __( 'Coupon updated', 'woocommerce' ),
|
||||
'coupon.deleted' => __( 'Coupon deleted', 'woocommerce' ),
|
||||
'customer.created' => __( 'Customer created', 'woocommerce' ),
|
||||
'customer.updated' => __( 'Customer updated', 'woocommerce' ),
|
||||
'customer.deleted' => __( 'Customer deleted', 'woocommerce' ),
|
||||
'order.created' => __( 'Order created', 'woocommerce' ),
|
||||
'order.updated' => __( 'Order updated', 'woocommerce' ),
|
||||
'order.deleted' => __( 'Order deleted', 'woocommerce' ),
|
||||
'product.created' => __( 'Product created', 'woocommerce' ),
|
||||
'product.updated' => __( 'Product updated', 'woocommerce' ),
|
||||
'product.deleted' => __( 'Product deleted', 'woocommerce' ),
|
||||
'action' => __( 'Action', 'woocommerce' ),
|
||||
'custom' => __( 'Custom', 'woocommerce' ),
|
||||
) );
|
||||
|
@ -76,8 +76,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</tr>
|
||||
<tr valign="top" id="webhook-action-event-wrap">
|
||||
<th scope="row" class="titledesc">
|
||||
<label for="webhook_action_event"><?php _e( 'Action Event', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'Enter the Action that will trigger this webhook.', 'woocommerce' ) ); ?>
|
||||
<label for="webhook_action_event"><?php _e( 'Action event', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'Enter the action that will trigger this webhook.', 'woocommerce' ) ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<input name="webhook_action_event" id="webhook_action_event" type="text" class="input-text regular-input" value="<?php echo esc_attr( $topic_data['event'] ); ?>" />
|
||||
|
@ -85,8 +85,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</tr>
|
||||
<tr valign="top" id="webhook-custom-topic-wrap">
|
||||
<th scope="row" class="titledesc">
|
||||
<label for="webhook_custom_topic"><?php _e( 'Custom Topic', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'Enter the Custom Topic that will trigger this webhook.', 'woocommerce' ) ); ?>
|
||||
<label for="webhook_custom_topic"><?php _e( 'Custom topic', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'Enter the custom topic that will trigger this webhook.', 'woocommerce' ) ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<input name="webhook_custom_topic" id="webhook_custom_topic" type="text" class="input-text regular-input" value="<?php echo esc_attr( $webhook->get_topic() ); ?>" />
|
||||
|
@ -104,7 +104,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<tr valign="top">
|
||||
<th scope="row" class="titledesc">
|
||||
<label for="webhook_secret"><?php _e( 'Secret', 'woocommerce' ); ?></label>
|
||||
<?php echo wc_help_tip( __( 'The Secret Key is used to generate a hash of the delivered webhook and provided in the request headers.', 'woocommerce' ) ); ?>
|
||||
<?php echo wc_help_tip( __( 'The secret key is used to generate a hash of the delivered webhook and provided in the request headers.', 'woocommerce' ) ); ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<input name="webhook_secret" id="webhook_secret" type="text" class="input-text regular-input" value="<?php echo esc_attr( $webhook->get_secret() ); ?>" />
|
||||
|
@ -117,7 +117,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</div>
|
||||
|
||||
<div id="webhook-actions" class="settings-panel">
|
||||
<h2><?php _e( 'Webhook Actions', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Webhook actions', 'woocommerce' ); ?></h2>
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<?php if ( '0000-00-00 00:00:00' != $webhook->post_data->post_modified_gmt ) : ?>
|
||||
|
@ -152,9 +152,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<tr valign="top">
|
||||
<td colspan="2" scope="row" style="padding-left: 0;">
|
||||
<p class="submit">
|
||||
<input type="submit" class="button button-primary button-large" name="save" id="publish" accesskey="p" value="<?php esc_attr_e( 'Save Webhook', 'woocommerce' ); ?>" />
|
||||
<input type="submit" class="button button-primary button-large" name="save" id="publish" accesskey="p" value="<?php esc_attr_e( 'Save webhook', 'woocommerce' ); ?>" />
|
||||
<?php if ( current_user_can( 'delete_post', $webhook->id ) ) : ?>
|
||||
<a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( get_delete_post_link( $webhook->id ) ); ?>"><?php echo ( ! EMPTY_TRASH_DAYS ) ? __( 'Delete Permanently', 'woocommerce' ) : __( 'Move to Trash', 'woocommerce' ); ?></a>
|
||||
<a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url( get_delete_post_link( $webhook->id ) ); ?>"><?php echo ( ! EMPTY_TRASH_DAYS ) ? __( 'Delete permanently', 'woocommerce' ) : __( 'Move to trash', 'woocommerce' ); ?></a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</td>
|
||||
|
@ -164,7 +164,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</div>
|
||||
|
||||
<div id="webhook-logs" class="settings-panel">
|
||||
<h2><?php _e( 'Webhook Logs', 'woocommerce' ); ?></h2>
|
||||
<h2><?php _e( 'Webhook logs', 'woocommerce' ); ?></h2>
|
||||
|
||||
<?php WC_Admin_Webhooks::logs_output( $webhook ); ?>
|
||||
</div>
|
||||
|
|
|
@ -6,10 +6,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
return apply_filters( 'woocommerce_tax_settings', array(
|
||||
|
||||
array( 'title' => __( 'Tax Options', 'woocommerce' ), 'type' => 'title','desc' => '', 'id' => 'tax_options' ),
|
||||
array( 'title' => __( 'Tax options', 'woocommerce' ), 'type' => 'title','desc' => '', 'id' => 'tax_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Prices Entered With Tax', 'woocommerce' ),
|
||||
'title' => __( 'Prices entered with tax', 'woocommerce' ),
|
||||
'id' => 'woocommerce_prices_include_tax',
|
||||
'default' => 'no',
|
||||
'type' => 'radio',
|
||||
|
@ -21,7 +21,7 @@ return apply_filters( 'woocommerce_tax_settings', array(
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Calculate Tax Based On', 'woocommerce' ),
|
||||
'title' => __( 'Calculate tax based on', 'woocommerce' ),
|
||||
'id' => 'woocommerce_tax_based_on',
|
||||
'desc_tip' => __( 'This option determines which address is used to calculate tax.', 'woocommerce' ),
|
||||
'default' => 'shipping',
|
||||
|
@ -35,7 +35,7 @@ return apply_filters( 'woocommerce_tax_settings', array(
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Shipping Tax Class', 'woocommerce' ),
|
||||
'title' => __( 'Shipping tax class', 'woocommerce' ),
|
||||
'desc' => __( 'Optionally control which tax class shipping gets, or leave it so shipping tax is based on the cart items themselves.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_shipping_tax_class',
|
||||
'css' => 'min-width:150px;',
|
||||
|
@ -55,16 +55,16 @@ return apply_filters( 'woocommerce_tax_settings', array(
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Additional Tax Classes', 'woocommerce' ),
|
||||
'desc_tip' => __( 'List additional tax classes below (1 per line). This is in addition to the default "Standard Rate".', 'woocommerce' ),
|
||||
'title' => __( 'Additional tax classes', 'woocommerce' ),
|
||||
'desc_tip' => __( 'List additional tax classes below (1 per line). This is in addition to the default "Standard rate".', 'woocommerce' ),
|
||||
'id' => 'woocommerce_tax_classes',
|
||||
'css' => 'width:100%; height: 65px;',
|
||||
'type' => 'textarea',
|
||||
'default' => sprintf( __( 'Reduced Rate%sZero Rate', 'woocommerce' ), PHP_EOL ),
|
||||
'default' => sprintf( __( 'Reduced rate%sZero rate', 'woocommerce' ), PHP_EOL ),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Display Prices in the Shop', 'woocommerce' ),
|
||||
'title' => __( 'Display prices in the shop', 'woocommerce' ),
|
||||
'id' => 'woocommerce_tax_display_shop',
|
||||
'default' => 'excl',
|
||||
'type' => 'select',
|
||||
|
@ -76,7 +76,7 @@ return apply_filters( 'woocommerce_tax_settings', array(
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Display Prices During Cart and Checkout', 'woocommerce' ),
|
||||
'title' => __( 'Display prices during cart and checkout', 'woocommerce' ),
|
||||
'id' => 'woocommerce_tax_display_cart',
|
||||
'default' => 'excl',
|
||||
'type' => 'select',
|
||||
|
@ -89,7 +89,7 @@ return apply_filters( 'woocommerce_tax_settings', array(
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Price Display Suffix', 'woocommerce' ),
|
||||
'title' => __( 'Price display suffix', 'woocommerce' ),
|
||||
'id' => 'woocommerce_price_display_suffix',
|
||||
'default' => '',
|
||||
'placeholder' => __( 'N/A', 'woocommerce' ),
|
||||
|
@ -98,7 +98,7 @@ return apply_filters( 'woocommerce_tax_settings', array(
|
|||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Display Tax Totals', 'woocommerce' ),
|
||||
'title' => __( 'Display tax totals', 'woocommerce' ),
|
||||
'id' => 'woocommerce_tax_total_display',
|
||||
'default' => 'itemized',
|
||||
'type' => 'select',
|
||||
|
|
|
@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<div class="wrap woocommerce wc_addons_wrap">
|
||||
<div class="icon32 icon32-posts-product" id="icon-woocommerce"><br /></div>
|
||||
<h1>
|
||||
<?php _e( 'WooCommerce Extensions', 'woocommerce' ); ?>
|
||||
<?php _e( 'WooCommerce extensions', 'woocommerce' ); ?>
|
||||
</h1>
|
||||
<?php if ( $sections ) : ?>
|
||||
<ul class="subsubsub">
|
||||
|
|
|
@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<h2>
|
||||
<?php echo esc_html( $viewed_log ); ?>
|
||||
<?php if ( ! empty( $handle ) ) : ?>
|
||||
<a class="page-title-action" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'handle' => $handle ), admin_url( 'admin.php?page=wc-status&tab=logs' ) ), 'remove_log' ) ); ?>" class="button"><?php esc_html_e( 'Delete Log', 'woocommerce' );?></a>
|
||||
<a class="page-title-action" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'handle' => $handle ), admin_url( 'admin.php?page=wc-status&tab=logs' ) ), 'remove_log' ) ); ?>" class="button"><?php esc_html_e( 'Delete log', 'woocommerce' );?></a>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
</div>
|
||||
|
|
|
@ -18,18 +18,18 @@ $pages = $system_status->get_pages();
|
|||
?>
|
||||
<div class="updated woocommerce-message inline">
|
||||
<p><?php _e( 'Please copy and paste this information in your ticket when contacting support:', 'woocommerce' ); ?> </p>
|
||||
<p class="submit"><a href="#" class="button-primary debug-report"><?php _e( 'Get System Report', 'woocommerce' ); ?></a>
|
||||
<a class="button-secondary docs" href="https://docs.woocommerce.com/document/understanding-the-woocommerce-system-status-report/" target="_blank"><?php _e( 'Understanding the Status Report', 'woocommerce' ); ?></a></p>
|
||||
<p class="submit"><a href="#" class="button-primary debug-report"><?php _e( 'Get system report', 'woocommerce' ); ?></a>
|
||||
<a class="button-secondary docs" href="https://docs.woocommerce.com/document/understanding-the-woocommerce-system-status-report/" target="_blank"><?php _e( 'Understanding the status report', 'woocommerce' ); ?></a></p>
|
||||
<div id="debug-report">
|
||||
<textarea readonly="readonly"></textarea>
|
||||
<p class="submit"><button id="copy-for-support" class="button-primary" href="#" data-tip="<?php esc_attr_e( 'Copied!', 'woocommerce' ); ?>"><?php _e( 'Copy for Support', 'woocommerce' ); ?></button></p>
|
||||
<p class="submit"><button id="copy-for-support" class="button-primary" href="#" data-tip="<?php esc_attr_e( 'Copied!', 'woocommerce' ); ?>"><?php _e( 'Copy for support', 'woocommerce' ); ?></button></p>
|
||||
<p class="copy-error hidden"><?php _e( 'Copying to clipboard failed. Please press Ctrl/Cmd+C to copy.', 'woocommerce' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<table class="wc_status_table widefat" cellspacing="0" id="status">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" data-export-label="WordPress Environment"><h2><?php _e( 'WordPress Environment', 'woocommerce' ); ?></h2></th>
|
||||
<th colspan="3" data-export-label="WordPress Environment"><h2><?php _e( 'WordPress environment', 'woocommerce' ); ?></h2></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -44,12 +44,12 @@ $pages = $system_status->get_pages();
|
|||
<td><?php echo esc_html( $environment['site_url'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WC Version"><?php _e( 'WC Version', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WC Version"><?php _e( 'WC version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of WooCommerce installed on your site.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $environment['version'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Log Directory Writable"><?php _e( 'Log Directory Writable', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Log Directory Writable"><?php _e( 'Log directory writable', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Several WooCommerce extensions can write logs which makes debugging problems easier. The directory must be writable for this to happen.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( $environment['log_directory_writable'] ) {
|
||||
|
@ -60,17 +60,17 @@ $pages = $system_status->get_pages();
|
|||
?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WP Version"><?php _e( 'WP Version', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WP Version"><?php _e( 'WP version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of WordPress installed on your site.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $environment['wp_version'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WP Multisite"><?php _e( 'WP multisite', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Whether or not you have WordPress Multisite enabled.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo ( $environment['wp_multisite'] ) ? '<span class="dashicons dashicons-yes"></span>' : '–'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WP Memory Limit"><?php _e( 'WP memory limit', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The maximum amount of memory (RAM) that your site can use at one time.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( $environment['wp_memory_limit'] < 67108864 ) {
|
||||
|
@ -81,7 +81,7 @@ $pages = $system_status->get_pages();
|
|||
?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WP Debug Mode"><?php _e( 'WP Debug Mode', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WP Debug Mode"><?php _e( 'WP debug mode', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Displays whether or not WordPress is in Debug Mode.', 'woocommerce' ) ); ?></td>
|
||||
<td>
|
||||
<?php if ( $environment['wp_debug_mode'] ) : ?>
|
||||
|
@ -92,7 +92,7 @@ $pages = $system_status->get_pages();
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WP Cron"><?php _e( 'WP Cron', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WP Cron"><?php _e( 'WP cron', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Displays whether or not WP Cron Jobs are enabled.', 'woocommerce' ) ); ?></td>
|
||||
<td>
|
||||
<?php if ( $environment['wp_cron'] ) : ?>
|
||||
|
@ -112,17 +112,17 @@ $pages = $system_status->get_pages();
|
|||
<table class="wc_status_table widefat" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" data-export-label="Server Environment"><h2><?php _e( 'Server Environment', 'woocommerce' ); ?></h2></th>
|
||||
<th colspan="3" data-export-label="Server Environment"><h2><?php _e( 'Server environment', 'woocommerce' ); ?></h2></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td data-export-label="Server Info"><?php _e( 'Server Info', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Server Info"><?php _e( 'Server info', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Information about the web server that is currently hosting your site.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $environment['server_info'] ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="PHP Version"><?php _e( 'PHP Version', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="PHP Version"><?php _e( 'PHP version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of PHP installed on your hosting server.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( version_compare( $environment['php_version'], '5.6', '<' ) ) {
|
||||
|
@ -134,27 +134,27 @@ $pages = $system_status->get_pages();
|
|||
</tr>
|
||||
<?php if ( function_exists( 'ini_get' ) ) : ?>
|
||||
<tr>
|
||||
<td data-export-label="PHP Post Max Size"><?php _e( 'PHP Post Max Size', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="PHP Post Max Size"><?php _e( 'PHP post max size', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The largest filesize that can be contained in one post.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( size_format( $environment['php_post_max_size'] ) ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="PHP Time Limit"><?php _e( 'PHP Time Limit', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="PHP Time Limit"><?php _e( 'PHP time limit', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $environment['php_max_execution_time'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="PHP Max Input Vars"><?php _e( 'PHP Max Input Vars', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="PHP Max Input Vars"><?php _e( 'PHP max input vars', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The maximum number of variables your server can use for a single function to avoid overloads.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $environment['php_max_input_vars'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="cURL Version"><?php _e( 'cURL Version', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="cURL Version"><?php _e( 'cURL version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of cURL installed on your server.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $environment['curl_version'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="SUHOSIN Installed"><?php _e( 'SUHOSIN Installed', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="SUHOSIN Installed"><?php _e( 'SUHOSIN installed', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo $environment['suhosin_installed'] ? '<span class="dashicons dashicons-yes"></span>' : '–'; ?></td>
|
||||
</tr>
|
||||
|
@ -166,12 +166,12 @@ $pages = $system_status->get_pages();
|
|||
}
|
||||
if ( ! empty( $wpdb->is_mysql ) && ! stristr( $ver, 'MariaDB' ) ) : ?>
|
||||
<tr>
|
||||
<td data-export-label="MySQL Version"><?php _e( 'MySQL Version', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="MySQL Version"><?php _e( 'MySQL version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of MySQL installed on your hosting server.', 'woocommerce' ) ); ?></td>
|
||||
<td>
|
||||
<?php
|
||||
if ( version_compare( $environment['mysql_version'], '5.6', '<' ) ) {
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%1$s - We recommend a minimum MySQL version of 5.6. See: %2$s', 'woocommerce' ), esc_html( $environment['mysql_version'] ), '<a href="https://wordpress.org/about/requirements/" target="_blank">' . __( 'WordPress Requirements', 'woocommerce' ) . '</a>' ) . '</mark>';
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%1$s - We recommend a minimum MySQL version of 5.6. See: %2$s', 'woocommerce' ), esc_html( $environment['mysql_version'] ), '<a href="https://wordpress.org/about/requirements/" target="_blank">' . __( 'WordPress requirements', 'woocommerce' ) . '</a>' ) . '</mark>';
|
||||
} else {
|
||||
echo '<mark class="yes">' . esc_html( $environment['mysql_version'] ) . '</mark>';
|
||||
}
|
||||
|
@ -180,12 +180,12 @@ $pages = $system_status->get_pages();
|
|||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td data-export-label="Max Upload Size"><?php _e( 'Max Upload Size', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Max Upload Size"><?php _e( 'Max upload size', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The largest filesize that can be uploaded to your WordPress installation.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo size_format( $environment['max_upload_size'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Default Timezone is UTC"><?php _e( 'Default Timezone is UTC', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Default Timezone is UTC"><?php _e( 'Default timezone is UTC', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The default timezone for your server.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( 'UTC' !== $environment['default_timezone'] ) {
|
||||
|
@ -240,7 +240,7 @@ $pages = $system_status->get_pages();
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Multibyte String"><?php _e( 'Multibyte String', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Multibyte String"><?php _e( 'Multibyte string', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Multibyte String (mbstring) is used to convert character encoding, like for emails or converting characters to lowercase.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( $environment['mbstring_enabled'] ) {
|
||||
|
@ -251,7 +251,7 @@ $pages = $system_status->get_pages();
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Remote Post"><?php _e( 'Remote Post', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Remote Post"><?php _e( 'Remote post', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'PayPal uses this method of communicating when sending back transaction information.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( $environment['remote_post_successful'] ) {
|
||||
|
@ -262,7 +262,7 @@ $pages = $system_status->get_pages();
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Remote Get"><?php _e( 'Remote Get', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Remote Get"><?php _e( 'Remote get', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'WooCommerce plugins may use this method of communication when checking for plugin updates.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( $environment['remote_get_successful'] ) {
|
||||
|
@ -282,12 +282,12 @@ $pages = $system_status->get_pages();
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td data-export-label="WC Database Version"><?php _e( 'WC Database Version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of WooCommerce that the database is formatted for. This should be the same as your WooCommerce Version.', 'woocommerce' ) ); ?></td>
|
||||
<td data-export-label="WC Database Version"><?php _e( 'WC database version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The version of WooCommerce that the database is formatted for. This should be the same as your WooCommerce version.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $database['wc_database_version'] ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WC Database Prefix"><?php _e( 'Database Prefix', 'woocommerce' ); ?></td>
|
||||
<td data-export-label="WC Database Prefix"><?php _e( 'Database prefix', 'woocommerce' ); ?></td>
|
||||
<td class="help"> </td>
|
||||
<td><?php
|
||||
if ( strlen( $database['database_prefix'] ) > 20 ) {
|
||||
|
@ -312,7 +312,7 @@ $pages = $system_status->get_pages();
|
|||
if ( $settings['geolocation_enabled'] ) {
|
||||
?>
|
||||
<tr>
|
||||
<td data-export-label="MaxMind GeoIP Database"><?php _e( 'MaxMind GeoIP Database', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="MaxMind GeoIP Database"><?php _e( 'MaxMind GeoIP database', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The GeoIP database from MaxMind is used to geolocate customers.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( file_exists( $database['maxmind_geoip_database'] ) ) {
|
||||
|
@ -330,7 +330,7 @@ $pages = $system_status->get_pages();
|
|||
<table class="wc_status_table widefat" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" data-export-label="Active Plugins (<?php echo count( $active_plugins ) ?>)"><h2><?php _e( 'Active Plugins', 'woocommerce' ); ?> (<?php echo count( $active_plugins ) ?>)</h2></th>
|
||||
<th colspan="3" data-export-label="Active Plugins (<?php echo count( $active_plugins ) ?>)"><h2><?php _e( 'Active plugins', 'woocommerce' ); ?> (<?php echo count( $active_plugins ) ?>)</h2></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -376,7 +376,7 @@ $pages = $system_status->get_pages();
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td data-export-label="API Enabled"><?php _e( 'API Enabled', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="API Enabled"><?php _e( 'API enabled', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Does your site have REST API enabled?', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo $settings['api_enabled'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<mark class="no">–</mark>'; ?></td>
|
||||
</tr>
|
||||
|
@ -391,27 +391,27 @@ $pages = $system_status->get_pages();
|
|||
<td><?php echo esc_html( $settings['currency'] ) ?> (<?php echo esc_html( $settings['currency_symbol'] ) ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Currency Position"><?php _e( 'Currency Position', 'woocommerce' ) ?></td>
|
||||
<td data-export-label="Currency Position"><?php _e( 'Currency position', 'woocommerce' ) ?></td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The position of the currency symbol.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $settings['currency_position'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Thousand Separator"><?php _e( 'Thousand Separator', 'woocommerce' ) ?></td>
|
||||
<td data-export-label="Thousand Separator"><?php _e( 'Thousand separator', 'woocommerce' ) ?></td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The thousand separator of displayed prices.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $settings['thousand_separator'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Decimal Separator"><?php _e( 'Decimal Separator', 'woocommerce' ) ?></td>
|
||||
<td data-export-label="Decimal Separator"><?php _e( 'Decimal separator', 'woocommerce' ) ?></td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The decimal separator of displayed prices.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $settings['decimal_separator'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Number of Decimals"><?php _e( 'Number of Decimals', 'woocommerce' ) ?></td>
|
||||
<td data-export-label="Number of Decimals"><?php _e( 'Number of decimals', 'woocommerce' ) ?></td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The number of decimal points shown in displayed prices.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $settings['number_of_decimals'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Taxonomies: Product Types"><?php _e( 'Taxonomies: Product Types', 'woocommerce' ); ?></th>
|
||||
<td data-export-label="Taxonomies: Product Types"><?php _e( 'Taxonomies: Product types', 'woocommerce' ); ?></th>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'A list of taxonomy terms that can be used in regard to order/product statuses.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
$display_terms = array();
|
||||
|
@ -426,7 +426,7 @@ $pages = $system_status->get_pages();
|
|||
<table class="wc_status_table widefat" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" data-export-label="WC Pages"><h2><?php _e( 'WC Pages', 'woocommerce' ); ?></h2></th>
|
||||
<th colspan="3" data-export-label="WC Pages"><h2><?php _e( 'WC pages', 'woocommerce' ); ?></h2></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -499,7 +499,7 @@ $pages = $system_status->get_pages();
|
|||
<td><?php echo esc_html( $theme['author_url'] ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Child Theme"><?php _e( 'Child Theme', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Child Theme"><?php _e( 'Child theme', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Displays whether or not the current theme is a child theme.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
echo $theme['is_child_theme'] ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<span class="dashicons dashicons-no-alt"></span> – ' . sprintf( __( 'If you\'re modifying WooCommerce on a parent theme you didn\'t build personally, then we recommend using a child theme. See: <a href="%s" target="_blank">How to create a child theme</a>', 'woocommerce' ), 'https://codex.wordpress.org/Child_Themes' );
|
||||
|
@ -509,12 +509,12 @@ $pages = $system_status->get_pages();
|
|||
if ( $theme['is_child_theme'] ) :
|
||||
?>
|
||||
<tr>
|
||||
<td data-export-label="Parent Theme Name"><?php _e( 'Parent Theme Name', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Parent Theme Name"><?php _e( 'Parent theme name', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The name of the parent theme.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $theme['parent_name'] ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Parent Theme Version"><?php _e( 'Parent Theme Version', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Parent Theme Version"><?php _e( 'Parent theme version', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The installed version of the parent theme.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
echo esc_html( $theme['parent_version'] );
|
||||
|
@ -524,17 +524,17 @@ $pages = $system_status->get_pages();
|
|||
?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="Parent Theme Author URL"><?php _e( 'Parent Theme Author URL', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Parent Theme Author URL"><?php _e( 'Parent theme author URL', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'The parent theme developers URL.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo esc_html( $theme['parent_author_url'] ) ?></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td data-export-label="WooCommerce Support"><?php _e( 'WooCommerce Support', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="WooCommerce Support"><?php _e( 'WooCommerce support', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"><?php echo wc_help_tip( __( 'Displays whether or not the current active theme declares WooCommerce support.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php
|
||||
if ( ! $theme['has_woocommerce_support'] ) {
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . __( 'Not Declared', 'woocommerce' ) . '</mark>';
|
||||
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . __( 'Not declared', 'woocommerce' ) . '</mark>';
|
||||
} else {
|
||||
echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
|
||||
}
|
||||
|
@ -551,7 +551,7 @@ $pages = $system_status->get_pages();
|
|||
<tbody>
|
||||
<?php if ( $theme['has_woocommerce_file'] ) : ?>
|
||||
<tr>
|
||||
<td data-export-label="Archive Template"><?php _e( 'Archive Template', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Archive Template"><?php _e( 'Archive template', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"> </td>
|
||||
<td><?php _e( 'Your theme has a woocommerce.php file, you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.', 'woocommerce' ); ?></td>
|
||||
</tr>
|
||||
|
@ -593,7 +593,7 @@ $pages = $system_status->get_pages();
|
|||
if ( true === $theme['has_outdated_templates'] ) {
|
||||
?>
|
||||
<tr>
|
||||
<td data-export-label="Outdated Templates"><?php _e( 'Outdated Templates', 'woocommerce' ); ?>:</td>
|
||||
<td data-export-label="Outdated Templates"><?php _e( 'Outdated templates', 'woocommerce' ); ?>:</td>
|
||||
<td class="help"> </td>
|
||||
<td><mark class="error"><span class="dashicons dashicons-warning"></span></mark><a href="https://docs.woocommerce.com/document/fix-outdated-templates-woocommerce/" target="_blank"><?php _e( 'Learn how to update', 'woocommerce' ) ?></a></td>
|
||||
</tr>
|
||||
|
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
$current_tab = ! empty( $_REQUEST['tab'] ) ? sanitize_title( $_REQUEST['tab'] ) : 'status';
|
||||
$tabs = array(
|
||||
'status' => __( 'System Status', 'woocommerce' ),
|
||||
'status' => __( 'System status', 'woocommerce' ),
|
||||
'tools' => __( 'Tools', 'woocommerce' ),
|
||||
'logs' => __( 'Logs', 'woocommerce' ),
|
||||
);
|
||||
|
|
|
@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<fieldset class="inline-edit-col-right">
|
||||
<div id="woocommerce-fields-bulk" class="inline-edit-col">
|
||||
|
||||
<h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4>
|
||||
<h4><?php _e( 'Product data', 'woocommerce' ); ?></h4>
|
||||
|
||||
<?php do_action( 'woocommerce_product_bulk_edit_start' ); ?>
|
||||
|
||||
|
@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="change_regular_price change_to" name="change_regular_price">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'1' => __( 'Change to:', 'woocommerce' ),
|
||||
'2' => __( 'Increase by (fixed amount or %):', 'woocommerce' ),
|
||||
'3' => __( 'Decrease by (fixed amount or %):', 'woocommerce' ),
|
||||
|
@ -47,7 +47,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="change_sale_price change_to" name="change_sale_price">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'1' => __( 'Change to:', 'woocommerce' ),
|
||||
'2' => __( 'Increase by (fixed amount or %):', 'woocommerce' ),
|
||||
'3' => __( 'Decrease by (fixed amount or %):', 'woocommerce' ),
|
||||
|
@ -67,12 +67,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<?php if ( wc_tax_enabled() ) : ?>
|
||||
<label>
|
||||
<span class="title"><?php _e( 'Tax Status', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php _e( 'Tax status', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="tax_status" name="_tax_status">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'taxable' => __( 'Taxable', 'woocommerce' ),
|
||||
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
||||
'none' => _x( 'None', 'Tax status', 'woocommerce' ),
|
||||
|
@ -86,12 +86,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</label>
|
||||
|
||||
<label>
|
||||
<span class="title"><?php _e( 'Tax Class', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php _e( 'Tax class', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="tax_class" name="_tax_class">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'standard' => __( 'Standard', 'woocommerce' ),
|
||||
);
|
||||
|
||||
|
@ -119,7 +119,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="change_weight change_to" name="change_weight">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'1' => __( 'Change to:', 'woocommerce' ),
|
||||
);
|
||||
foreach ( $options as $key => $value ) {
|
||||
|
@ -143,7 +143,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="change_dimensions change_to" name="change_dimensions">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'1' => __( 'Change to:', 'woocommerce' ),
|
||||
);
|
||||
foreach ( $options as $key => $value ) {
|
||||
|
@ -165,7 +165,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<span class="title"><?php _e( 'Shipping class', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="shipping_class" name="_shipping_class">
|
||||
<option value=""><?php _e( '— No Change —', 'woocommerce' ); ?></option>
|
||||
<option value=""><?php _e( '— No change —', 'woocommerce' ); ?></option>
|
||||
<option value="_no_shipping_class"><?php _e( 'No shipping class', 'woocommerce' ); ?></option>
|
||||
<?php
|
||||
foreach ( $shipping_class as $key => $value ) {
|
||||
|
@ -182,7 +182,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="visibility" name="_visibility">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'visible' => __( 'Catalog & search', 'woocommerce' ),
|
||||
'catalog' => __( 'Catalog', 'woocommerce' ),
|
||||
'search' => __( 'Search', 'woocommerce' ),
|
||||
|
@ -201,7 +201,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="featured" name="_featured">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'yes' => __( 'Yes', 'woocommerce' ),
|
||||
'no' => __( 'No', 'woocommerce' ),
|
||||
);
|
||||
|
@ -219,7 +219,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="stock_status" name="_stock_status">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'instock' => __( 'In stock', 'woocommerce' ),
|
||||
'outofstock' => __( 'Out of stock', 'woocommerce' ),
|
||||
);
|
||||
|
@ -238,7 +238,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="manage_stock" name="_manage_stock">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'yes' => __( 'Yes', 'woocommerce' ),
|
||||
'no' => __( 'No', 'woocommerce' ),
|
||||
);
|
||||
|
@ -252,12 +252,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<div class="inline-edit-group">
|
||||
<label class="alignleft stock_qty_field">
|
||||
<span class="title"><?php _e( 'Stock Qty', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php _e( 'Stock qty', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="change_stock change_to" name="change_stock">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'1' => __( 'Change to:', 'woocommerce' ),
|
||||
);
|
||||
foreach ( $options as $key => $value ) {
|
||||
|
@ -268,7 +268,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</span>
|
||||
</label>
|
||||
<label class="change-input">
|
||||
<input type="text" name="_stock" class="text stock" placeholder="<?php esc_attr_e( 'Stock Qty', 'woocommerce' ); ?>" step="any" value="">
|
||||
<input type="text" name="_stock" class="text stock" placeholder="<?php esc_attr_e( 'Stock qty', 'woocommerce' ); ?>" step="any" value="">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
@ -278,7 +278,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<select class="backorders" name="_backorders">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'no' => __( 'Do not allow', 'woocommerce' ),
|
||||
'notify' => __( 'Allow, but notify customer', 'woocommerce' ),
|
||||
'yes' => __( 'Allow', 'woocommerce' ),
|
||||
|
@ -294,12 +294,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<?php endif; ?>
|
||||
|
||||
<label>
|
||||
<span class="title"><?php esc_html_e( 'Sold Individually?', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php esc_html_e( 'Sold individually?', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="sold_individually" name="_sold_individually">
|
||||
<?php
|
||||
$options = array(
|
||||
'' => __( '— No Change —', 'woocommerce' ),
|
||||
'' => __( '— No change —', 'woocommerce' ),
|
||||
'yes' => __( 'Yes', 'woocommerce' ),
|
||||
'no' => __( 'No', 'woocommerce' ),
|
||||
);
|
||||
|
|
|
@ -10,5 +10,5 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
?>
|
||||
<div id="message" class="updated woocommerce-message wc-connect">
|
||||
<p><?php _e( '<strong>Welcome to WooCommerce</strong> – You‘re almost ready to start selling :)', 'woocommerce' ); ?></p>
|
||||
<p class="submit"><a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-setup' ) ); ?>" class="button-primary"><?php _e( 'Run the Setup Wizard', 'woocommerce' ); ?></a> <a class="button-secondary skip" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'install' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Skip Setup', 'woocommerce' ); ?></a></p>
|
||||
<p class="submit"><a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-setup' ) ); ?>" class="button-primary"><?php _e( 'Run the Setup Wizard', 'woocommerce' ); ?></a> <a class="button-secondary skip" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'install' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Skip setup', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
|
|
|
@ -10,8 +10,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<div id="message" class="updated woocommerce-message woocommerce-legacy-shipping-notice">
|
||||
<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'legacy_shipping' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a>
|
||||
|
||||
<p class="main"><strong><?php _e( 'New:', 'woocommerce' ); ?> <?php _e( 'Shipping Zones', 'woocommerce' ); ?></strong> – <?php _e( 'a group of regions that can be assigned different shipping methods and rates.', 'woocommerce' ); ?></p>
|
||||
<p><?php _e( 'Legacy shipping methods (Flat Rate, International Flat Rate, Local Pickup and Delivery, and Free Shipping) are deprecated but will continue to work as normal for now. <b><em>They will be removed in future versions of WooCommerce</em></b>. We recommend disabling these and setting up new rates within shipping zones as soon as possible.', 'woocommerce' ); ?></p>
|
||||
<p class="main"><strong><?php _e( 'New:', 'woocommerce' ); ?> <?php _e( 'Shipping zones', 'woocommerce' ); ?></strong> – <?php _e( 'a group of regions that can be assigned different shipping methods and rates.', 'woocommerce' ); ?></p>
|
||||
<p><?php _e( 'Legacy shipping methods (flat rate, international flat rate, local pickup and delivery, and free shipping) are deprecated but will continue to work as normal for now. <b><em>They will be removed in future versions of WooCommerce</em></b>. We recommend disabling these and setting up new rates within shipping zones as soon as possible.', 'woocommerce' ); ?></p>
|
||||
|
||||
<p class="submit">
|
||||
<?php if ( empty( $_GET['page'] ) || empty( $_GET['tab'] ) || 'wc-settings' !== $_GET['page'] || 'shipping' !== $_GET['tab'] ) : ?>
|
||||
|
|
|
@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<div id="message" class="updated woocommerce-message woocommerce-no-shipping-methods-notice">
|
||||
<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'no_shipping_methods' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a>
|
||||
|
||||
<p class="main"><strong><?php _e( 'Add Shipping Methods & Zones', 'woocommerce' ); ?></strong></p>
|
||||
<p class="main"><strong><?php _e( 'Add shipping methods & zones', 'woocommerce' ); ?></strong></p>
|
||||
<p><?php _e( 'Shipping is currently enabled, but you haven\'t added any shipping methods to your shipping zones.', 'woocommerce' ); ?></p>
|
||||
<p><?php _e( 'Customers will not be able to purchase physical goods from your store until a shipping method is available.', 'woocommerce' ); ?></p>
|
||||
|
||||
|
|
|
@ -13,5 +13,5 @@ $theme = wp_get_theme();
|
|||
<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'template_files' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a>
|
||||
|
||||
<p><?php printf( __( '<strong>Your theme (%1$s) contains outdated copies of some WooCommerce template files.</strong> These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the %2$ssystem status page%3$s. If in doubt, check with the author of the theme.', 'woocommerce' ), esc_html( $theme['Name'] ), '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status' ) ) . '">', '</a>' ); ?></p>
|
||||
<p class="submit"><a class="button-primary" href="https://docs.woocommerce.com/document/template-structure/" target="_blank"><?php _e( 'Learn More About Templates', 'woocommerce' ); ?></a></p>
|
||||
<p class="submit"><a class="button-primary" href="https://docs.woocommerce.com/document/template-structure/" target="_blank"><?php _e( 'Learn more about templates', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<p><?php printf( __( '<strong>Your theme does not declare WooCommerce support</strong> – Please read our %1$sintegration%2$s guide or check out our %3$sStorefront%4$s theme which is totally free to download and designed specifically for use with WooCommerce.', 'woocommerce' ), '<a target="_blank" href="' . esc_url( apply_filters( 'woocommerce_docs_url', 'https://docs.woocommerce.com/document/third-party-custom-theme-compatibility/', 'theme-compatibility' ) ) . '">', '</a>', '<a target="_blank" href="' . esc_url( admin_url( 'theme-install.php?theme=storefront' ) ) . '">', '</a>' ); ?></p>
|
||||
<p class="submit">
|
||||
<a href="https://woocommerce.com/storefront/?utm_source=notice&utm_medium=product&utm_content=storefront&utm_campaign=woocommerceplugin" class="button-primary" target="_blank"><?php _e( 'Read More About Storefront', 'woocommerce' ); ?></a>
|
||||
<a href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woocommerce.com/document/third-party-custom-theme-compatibility/?utm_source=notice&utm_medium=product&utm_content=themecompatibility&utm_campaign=woocommerceplugin' ) ); ?>" class="button-secondary" target="_blank"><?php _e( 'Theme Integration Guide', 'woocommerce' ); ?></a>
|
||||
<a href="https://woocommerce.com/storefront/?utm_source=notice&utm_medium=product&utm_content=storefront&utm_campaign=woocommerceplugin" class="button-primary" target="_blank"><?php _e( 'Read more about Storefront', 'woocommerce' ); ?></a>
|
||||
<a href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woocommerce.com/document/third-party-custom-theme-compatibility/?utm_source=notice&utm_medium=product&utm_content=themecompatibility&utm_campaign=woocommerceplugin' ) ); ?>" class="button-secondary" target="_blank"><?php _e( 'Theme integration guide', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
?>
|
||||
<div id="message" class="updated woocommerce-message wc-connect">
|
||||
<p><strong><?php _e( 'WooCommerce Data Update', 'woocommerce' ); ?></strong> – <?php _e( 'We need to update your store\'s database to the latest version.', 'woocommerce' ); ?></p>
|
||||
<p><strong><?php _e( 'WooCommerce data update', 'woocommerce' ); ?></strong> – <?php _e( 'We need to update your store\'s database to the latest version.', 'woocommerce' ); ?></p>
|
||||
<p class="submit"><a href="<?php echo esc_url( add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ) ); ?>" class="wc-update-now button-primary"><?php _e( 'Run the updater', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -9,5 +9,5 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
?>
|
||||
<div id="message" class="updated woocommerce-message wc-connect">
|
||||
<p><strong><?php _e( 'WooCommerce Data Update', 'woocommerce' ); ?></strong> – <?php _e( 'Your database is being updated in the background.', 'woocommerce' ); ?> <a href="<?php echo esc_url( add_query_arg( 'force_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ) ); ?>"><?php _e( 'Taking a while? Click here to run it now.', 'woocommerce' ); ?></a></p>
|
||||
<p><strong><?php _e( 'WooCommerce data update', 'woocommerce' ); ?></strong> – <?php _e( 'Your database is being updated in the background.', 'woocommerce' ); ?> <a href="<?php echo esc_url( add_query_arg( 'force_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ) ); ?>"><?php _e( 'Taking a while? Click here to run it now.', 'woocommerce' ); ?></a></p>
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<fieldset class="inline-edit-col-left">
|
||||
<div id="woocommerce-fields" class="inline-edit-col">
|
||||
|
||||
<h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4>
|
||||
<h4><?php _e( 'Product data', 'woocommerce' ); ?></h4>
|
||||
|
||||
<?php do_action( 'woocommerce_product_quick_edit_start' ); ?>
|
||||
|
||||
|
@ -32,14 +32,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<label>
|
||||
<span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<input type="text" name="_regular_price" class="text wc_input_price regular_price" placeholder="<?php esc_attr_e( 'Regular Price', 'woocommerce' ); ?>" value="">
|
||||
<input type="text" name="_regular_price" class="text wc_input_price regular_price" placeholder="<?php esc_attr_e( 'Regular price', 'woocommerce' ); ?>" value="">
|
||||
</span>
|
||||
</label>
|
||||
<br class="clear" />
|
||||
<label>
|
||||
<span class="title"><?php _e( 'Sale', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<input type="text" name="_sale_price" class="text wc_input_price sale_price" placeholder="<?php esc_attr_e( 'Sale Price', 'woocommerce' ); ?>" value="">
|
||||
<input type="text" name="_sale_price" class="text wc_input_price sale_price" placeholder="<?php esc_attr_e( 'Sale price', 'woocommerce' ); ?>" value="">
|
||||
</span>
|
||||
</label>
|
||||
<br class="clear" />
|
||||
|
@ -47,7 +47,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<?php if ( wc_tax_enabled() ) : ?>
|
||||
<label class="alignleft">
|
||||
<span class="title"><?php _e( 'Tax Status', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php _e( 'Tax status', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="tax_status" name="_tax_status">
|
||||
<?php
|
||||
|
@ -65,7 +65,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</label>
|
||||
<br class="clear" />
|
||||
<label class="alignleft">
|
||||
<span class="title"><?php _e( 'Tax Class', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php _e( 'Tax class', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<select class="tax_class" name="_tax_class">
|
||||
<?php
|
||||
|
@ -183,7 +183,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</label>
|
||||
<br class="clear" />
|
||||
<label class="stock_qty_field">
|
||||
<span class="title"><?php _e( 'Stock Qty', 'woocommerce' ); ?></span>
|
||||
<span class="title"><?php _e( 'Stock qty', 'woocommerce' ); ?></span>
|
||||
<span class="input-text-wrap">
|
||||
<input type="number" name="_stock" class="text stock" step="any" value="">
|
||||
</span>
|
||||
|
|
|
@ -121,7 +121,7 @@ class WC_REST_Authentication {
|
|||
|
||||
// Validate user secret.
|
||||
if ( ! hash_equals( $user->consumer_secret, $consumer_secret ) ) {
|
||||
$wc_rest_authentication_error = new WP_Error( 'woocommerce_rest_authentication_error', __( 'Consumer Secret is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
$wc_rest_authentication_error = new WP_Error( 'woocommerce_rest_authentication_error', __( 'Consumer secret is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ class WC_REST_Authentication {
|
|||
$user = $this->get_user_data_by_consumer_key( $params['oauth_consumer_key'] );
|
||||
|
||||
if ( empty( $user ) ) {
|
||||
$wc_rest_authentication_error = new WP_Error( 'woocommerce_rest_authentication_error', __( 'Consumer Key is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
$wc_rest_authentication_error = new WP_Error( 'woocommerce_rest_authentication_error', __( 'Consumer key is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ class WC_REST_Authentication {
|
|||
|
||||
// Sort parameters.
|
||||
if ( ! uksort( $params, 'strcmp' ) ) {
|
||||
return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid Signature - failed to sort parameters.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid signature - failed to sort parameters.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
}
|
||||
|
||||
// Normalize parameter key/values.
|
||||
|
@ -357,7 +357,7 @@ class WC_REST_Authentication {
|
|||
$string_to_sign = $http_method . '&' . $base_request_uri . '&' . $query_string;
|
||||
|
||||
if ( 'HMAC-SHA1' !== $params['oauth_signature_method'] && 'HMAC-SHA256' !== $params['oauth_signature_method'] ) {
|
||||
return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid Signature - signature method is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid signature - signature method is invalid.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
}
|
||||
|
||||
$hash_algorithm = strtolower( str_replace( 'HMAC-', '', $params['oauth_signature_method'] ) );
|
||||
|
@ -365,7 +365,7 @@ class WC_REST_Authentication {
|
|||
$signature = base64_encode( hash_hmac( $hash_algorithm, $string_to_sign, $secret, true ) );
|
||||
|
||||
if ( ! hash_equals( $signature, $consumer_signature ) ) {
|
||||
return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid Signature - provided signature does not match.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid signature - provided signature does not match.', 'woocommerce' ), array( 'status' => 401 ) );
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -393,7 +393,7 @@ class WC_REST_Product_Variations_Controller extends WC_REST_Products_Controller
|
|||
'readonly' => true,
|
||||
),
|
||||
'visible' => array(
|
||||
'description' => __( "Define if the attribute is visible on the \"Additional Information\" tab in the product's page.", 'woocommerce' ),
|
||||
'description' => __( "Define if the attribute is visible on the \"Additional information\" tab in the product's page.", 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'default' => false,
|
||||
'context' => array( 'view', 'edit' ),
|
||||
|
|
|
@ -2319,7 +2319,7 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'visible' => array(
|
||||
'description' => __( "Define if the attribute is visible on the \"Additional Information\" tab in the product's page.", 'woocommerce' ),
|
||||
'description' => __( "Define if the attribute is visible on the \"Additional information\" tab in the product's page.", 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'default' => false,
|
||||
'context' => array( 'view', 'edit' ),
|
||||
|
|
|
@ -115,142 +115,142 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'wc_version' => array(
|
||||
'description' => __( 'WooCommerce Version', 'woocommerce' ),
|
||||
'description' => __( 'WooCommerce version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'log_directory' => array(
|
||||
'description' => __( 'Log Directory', 'woocommerce' ),
|
||||
'description' => __( 'Log directory', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'log_directory_writable' => array(
|
||||
'description' => __( 'Is Log Directory Writable?', 'woocommerce' ),
|
||||
'description' => __( 'Is log directory writable?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'wp_version' => array(
|
||||
'description' => __( 'WordPress Version', 'woocommerce' ),
|
||||
'description' => __( 'WordPress version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'wp_multisite' => array(
|
||||
'description' => __( 'Is WordPress Multisite?', 'woocommerce' ),
|
||||
'description' => __( 'Is WordPress multisite?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'wp_memory_limit' => array(
|
||||
'description' => __( 'WordPress Memory Limit', 'woocommerce' ),
|
||||
'description' => __( 'WordPress memory limit', 'woocommerce' ),
|
||||
'type' => 'integer',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'wp_debug_mode' => array(
|
||||
'description' => __( 'Is WordPress Debug Mode Active?', 'woocommerce' ),
|
||||
'description' => __( 'Is WordPress debug mode active?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'wp_cron' => array(
|
||||
'description' => __( 'Are WordPress Cron Jobs Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Are WordPress cron jobs enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'language' => array(
|
||||
'description' => __( 'WordPress Language', 'woocommerce' ),
|
||||
'description' => __( 'WordPress language', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'server_info' => array(
|
||||
'description' => __( 'Server Info', 'woocommerce' ),
|
||||
'description' => __( 'Server info', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'php_version' => array(
|
||||
'description' => __( 'PHP Version', 'woocommerce' ),
|
||||
'description' => __( 'PHP version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'php_post_max_size' => array(
|
||||
'description' => __( 'PHP Post Max Size', 'woocommerce' ),
|
||||
'description' => __( 'PHP post max size', 'woocommerce' ),
|
||||
'type' => 'integer',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'php_max_execution_time' => array(
|
||||
'description' => __( 'PHP Max Execution Time', 'woocommerce' ),
|
||||
'description' => __( 'PHP max execution time', 'woocommerce' ),
|
||||
'type' => 'integer',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'php_max_input_vars' => array(
|
||||
'description' => __( 'PHP Max Input Vars', 'woocommerce' ),
|
||||
'description' => __( 'PHP max input vars', 'woocommerce' ),
|
||||
'type' => 'integer',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'curl_version' => array(
|
||||
'description' => __( 'cURL Version', 'woocommerce' ),
|
||||
'description' => __( 'cURL version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'suhosin_installed' => array(
|
||||
'description' => __( 'Is SUHOSIN Installed?', 'woocommerce' ),
|
||||
'description' => __( 'Is SUHOSIN installed?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'max_upload_size' => array(
|
||||
'description' => __( 'Max Upload Size', 'woocommerce' ),
|
||||
'description' => __( 'Max upload size', 'woocommerce' ),
|
||||
'type' => 'integer',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'mysql_version' => array(
|
||||
'description' => __( 'MySQL Version', 'woocommerce' ),
|
||||
'description' => __( 'MySQL version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'default_timezone' => array(
|
||||
'description' => __( 'Default Timezone', 'woocommerce' ),
|
||||
'description' => __( 'Default timezone', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'fsockopen_or_curl_enabled' => array(
|
||||
'description' => __( 'Is fsockopen/cURL Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Is fsockopen/cURL enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'soapclient_enabled' => array(
|
||||
'description' => __( 'Is SoapClient Class Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Is SoapClient class enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'domdocument_enabled' => array(
|
||||
'description' => __( 'Is DomDocument Class Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Is DomDocument class enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'gzip_enabled' => array(
|
||||
'description' => __( 'Is GZip Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Is GZip enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'mbstring_enabled' => array(
|
||||
'description' => __( 'Is mbstring Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Is mbstring enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'remote_post_successful' => array(
|
||||
'description' => __( 'Remote POST Successful?', 'woocommerce' ),
|
||||
'description' => __( 'Remote POST successful?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'remote_post_response' => array(
|
||||
'description' => __( 'Remote POST Response', 'woocommerce' ),
|
||||
'description' => __( 'Remote POST response', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'remote_get_successful' => array(
|
||||
'description' => __( 'Remote GET Successful?', 'woocommerce' ),
|
||||
'description' => __( 'Remote GET successful?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'remote_get_response' => array(
|
||||
'description' => __( 'Remote GET Response', 'woocommerce' ),
|
||||
'description' => __( 'Remote GET response', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
|
@ -262,29 +262,29 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
'properties' => array(
|
||||
'wc_database_version' => array(
|
||||
'description' => __( 'WC Database Version', 'woocommerce' ),
|
||||
'description' => __( 'WC database version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'database_prefix' => array(
|
||||
'description' => __( 'Database Prefix', 'woocommerce' ),
|
||||
'description' => __( 'Database prefix', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'maxmind_geoip_database' => array(
|
||||
'description' => __( 'MaxMind GeoIP Database', 'woocommerce' ),
|
||||
'description' => __( 'MaxMind GeoIP database', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'database_tables' => array(
|
||||
'description' => __( 'Database Tables', 'woocommerce' ),
|
||||
'description' => __( 'Database tables', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'active_plugins' => array(
|
||||
'description' => __( 'Active Plugins', 'woocommerce' ),
|
||||
'description' => __( 'Active plugins', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
|
@ -294,22 +294,22 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
'properties' => array(
|
||||
'name' => array(
|
||||
'description' => __( 'Theme Name', 'woocommerce' ),
|
||||
'description' => __( 'Theme name', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'version' => array(
|
||||
'description' => __( 'Theme Version', 'woocommerce' ),
|
||||
'description' => __( 'Theme version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'version_latest' => array(
|
||||
'description' => __( 'Latest Version Of Theme', 'woocommerce' ),
|
||||
'description' => __( 'Latest version of theme', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'author_url' => array(
|
||||
'description' => __( 'Theme Author URL', 'woocommerce' ),
|
||||
'description' => __( 'Theme author URL', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'format' => 'uri',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
|
@ -335,22 +335,22 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'overrides' => array(
|
||||
'description' => __( 'Template Overrides', 'woocommerce' ),
|
||||
'description' => __( 'Template overrides', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'parent_name' => array(
|
||||
'description' => __( 'Parent Theme Name', 'woocommerce' ),
|
||||
'description' => __( 'Parent theme name', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'parent_version' => array(
|
||||
'description' => __( 'Parent Theme Version', 'woocommerce' ),
|
||||
'description' => __( 'Parent theme version', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'parent_author_url' => array(
|
||||
'description' => __( 'Parent Theme Author URL', 'woocommerce' ),
|
||||
'description' => __( 'Parent theme author URL', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'format' => 'uri',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
|
@ -363,12 +363,12 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
'properties' => array(
|
||||
'api_enabled' => array(
|
||||
'description' => __( 'REST API Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'REST API enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'force_ssl' => array(
|
||||
'description' => __( 'SSL Forced?', 'woocommerce' ),
|
||||
'description' => __( 'SSL forced?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
|
@ -378,44 +378,44 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'currency_symbol' => array(
|
||||
'description' => __( 'Currency Symbol', 'woocommerce' ),
|
||||
'description' => __( 'Currency symbol', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'currency_position' => array(
|
||||
'description' => __( 'Currency Position', 'woocommerce' ),
|
||||
'description' => __( 'Currency position', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'thousand_separator' => array(
|
||||
'description' => __( 'Thousand Separator', 'woocommerce' ),
|
||||
'description' => __( 'Thousand separator', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'decimal_separator' => array(
|
||||
'description' => __( 'Decimal Separator', 'woocommerce' ),
|
||||
'description' => __( 'Decimal separator', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'number_of_decimals' => array(
|
||||
'description' => __( 'Number of Decimals', 'woocommerce' ),
|
||||
'description' => __( 'Number of decimals', 'woocommerce' ),
|
||||
'type' => 'integer',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'geolocation_enabled' => array(
|
||||
'description' => __( 'Geolocation Enabled?', 'woocommerce' ),
|
||||
'description' => __( 'Geolocation enabled?', 'woocommerce' ),
|
||||
'type' => 'boolean',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
'taxonomies' => array(
|
||||
'description' => __( 'Taxonomy Terms for Product/Order Statuses', 'woocommerce' ),
|
||||
'description' => __( 'Taxonomy terms for product/order statuses', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'pages' => array(
|
||||
'description' => __( 'WooCommerce Pages', 'woocommerce' ),
|
||||
'description' => __( 'WooCommerce pages', 'woocommerce' ),
|
||||
'type' => 'array',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
),
|
||||
|
@ -746,7 +746,7 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
public function get_pages() {
|
||||
// WC pages to check against
|
||||
$check_pages = array(
|
||||
_x( 'Shop Base', 'Page setting', 'woocommerce' ) => array(
|
||||
_x( 'Shop base', 'Page setting', 'woocommerce' ) => array(
|
||||
'option' => 'woocommerce_shop_page_id',
|
||||
'shortcode' => '',
|
||||
),
|
||||
|
@ -758,7 +758,7 @@ class WC_REST_System_Status_Controller extends WC_REST_Controller {
|
|||
'option' => 'woocommerce_checkout_page_id',
|
||||
'shortcode' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']',
|
||||
),
|
||||
_x( 'My Account', 'Page setting', 'woocommerce' ) => array(
|
||||
_x( 'My account', 'Page setting', 'woocommerce' ) => array(
|
||||
'option' => 'woocommerce_myaccount_page_id',
|
||||
'shortcode' => '[' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']',
|
||||
),
|
||||
|
|
|
@ -112,17 +112,17 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
|
|||
public function get_tools() {
|
||||
$tools = array(
|
||||
'clear_transients' => array(
|
||||
'name' => __( 'WC Transients', 'woocommerce' ),
|
||||
'name' => __( 'WC transients', 'woocommerce' ),
|
||||
'button' => __( 'Clear transients', 'woocommerce' ),
|
||||
'desc' => __( 'This tool will clear the product/shop transients cache.', 'woocommerce' ),
|
||||
),
|
||||
'clear_expired_transients' => array(
|
||||
'name' => __( 'Expired Transients', 'woocommerce' ),
|
||||
'name' => __( 'Expired transients', 'woocommerce' ),
|
||||
'button' => __( 'Clear expired transients', 'woocommerce' ),
|
||||
'desc' => __( 'This tool will clear ALL expired transients from WordPress.', 'woocommerce' ),
|
||||
),
|
||||
'delete_orphaned_variations' => array(
|
||||
'name' => __( 'Orphaned Variations', 'woocommerce' ),
|
||||
'name' => __( 'Orphaned variations', 'woocommerce' ),
|
||||
'button' => __( 'Delete orphaned variations', 'woocommerce' ),
|
||||
'desc' => __( 'This tool will delete all variations which have no parent.', 'woocommerce' ),
|
||||
),
|
||||
|
@ -137,12 +137,12 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
|
|||
'desc' => __( 'This tool will reset the admin, customer and shop_manager roles to default. Use this if your users cannot access all of the WooCommerce admin pages.', 'woocommerce' ),
|
||||
),
|
||||
'clear_sessions' => array(
|
||||
'name' => __( 'Customer Sessions', 'woocommerce' ),
|
||||
'name' => __( 'Customer sessions', 'woocommerce' ),
|
||||
'button' => __( 'Clear all sessions', 'woocommerce' ),
|
||||
'desc' => __( '<strong class="red">Warning:</strong> This tool will delete all customer session data from the database, including any current live carts.', 'woocommerce' ),
|
||||
),
|
||||
'install_pages' => array(
|
||||
'name' => __( 'Install WooCommerce Pages', 'woocommerce' ),
|
||||
'name' => __( 'Install WooCommerce pages', 'woocommerce' ),
|
||||
'button' => __( 'Install pages', 'woocommerce' ),
|
||||
'desc' => __( '<strong class="red">Note:</strong> This tool will install all the missing WooCommerce pages. Pages already defined and set up will not be replaced.', 'woocommerce' ),
|
||||
),
|
||||
|
@ -152,7 +152,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
|
|||
'desc' => __( '<strong class="red">Note:</strong> This option will delete ALL of your tax rates, use with caution.', 'woocommerce' ),
|
||||
),
|
||||
'reset_tracking' => array(
|
||||
'name' => __( 'Reset Usage Tracking Settings', 'woocommerce' ),
|
||||
'name' => __( 'Reset usage tracking settings', 'woocommerce' ),
|
||||
'button' => __( 'Reset usage tracking settings', 'woocommerce' ),
|
||||
'desc' => __( 'This will reset your usage tracking settings, causing it to show the opt-in banner again and not sending any data.', 'woocommerce' ),
|
||||
),
|
||||
|
@ -353,7 +353,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
|
|||
wc_delete_product_transients();
|
||||
wc_delete_shop_order_transients();
|
||||
WC_Cache_Helper::get_transient_version( 'shipping', true );
|
||||
$message = __( 'Product Transients Cleared', 'woocommerce' );
|
||||
$message = __( 'Product transients cleared', 'woocommerce' );
|
||||
break;
|
||||
case 'clear_expired_transients' :
|
||||
/*
|
||||
|
@ -377,7 +377,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
|
|||
AND b.option_value < %d";
|
||||
$rows2 = $wpdb->query( $wpdb->prepare( $sql, $wpdb->esc_like( '_site_transient_' ) . '%', $wpdb->esc_like( '_site_transient_timeout_' ) . '%', time() ) );
|
||||
|
||||
$message = sprintf( __( '%d Transients Rows Cleared', 'woocommerce' ), $rows + $rows2 );
|
||||
$message = sprintf( __( '%d transients rows cleared', 'woocommerce' ), $rows + $rows2 );
|
||||
break;
|
||||
case 'delete_orphaned_variations' :
|
||||
/**
|
||||
|
@ -387,7 +387,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
|
|||
FROM {$wpdb->posts} products
|
||||
LEFT JOIN {$wpdb->posts} wp ON wp.ID = products.post_parent
|
||||
WHERE wp.ID IS NULL AND products.post_type = 'product_variation';" ) );
|
||||
$message = sprintf( __( '%d Orphaned Variations Deleted', 'woocommerce' ), $result );
|
||||
$message = sprintf( __( '%d orphaned variations deleted', 'woocommerce' ), $result );
|
||||
break;
|
||||
case 'reset_roles' :
|
||||
// Remove then re-add caps and roles
|
||||
|
|
|
@ -126,7 +126,7 @@ class WC_REST_Tax_Classes_Controller extends WC_REST_Controller {
|
|||
// Add standard class.
|
||||
$tax_classes[] = array(
|
||||
'slug' => 'standard',
|
||||
'name' => __( 'Standard Rate', 'woocommerce' ),
|
||||
'name' => __( 'Standard rate', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$classes = WC_Tax::get_tax_classes();
|
||||
|
|
|
@ -90,7 +90,7 @@ class WC_API_Authentication {
|
|||
|
||||
} else {
|
||||
|
||||
throw new Exception( __( 'Consumer Key is missing.', 'woocommerce' ), 404 );
|
||||
throw new Exception( __( 'Consumer key is missing.', 'woocommerce' ), 404 );
|
||||
}
|
||||
|
||||
// Get consumer secret
|
||||
|
@ -106,13 +106,13 @@ class WC_API_Authentication {
|
|||
|
||||
} else {
|
||||
|
||||
throw new Exception( __( 'Consumer Secret is missing.', 'woocommerce' ), 404 );
|
||||
throw new Exception( __( 'Consumer secret is missing.', 'woocommerce' ), 404 );
|
||||
}
|
||||
|
||||
$keys = $this->get_keys_by_consumer_key( $consumer_key );
|
||||
|
||||
if ( ! $this->is_consumer_secret_valid( $keys['consumer_secret'], $consumer_secret ) ) {
|
||||
throw new Exception( __( 'Consumer Secret is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Consumer secret is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
return $keys;
|
||||
|
@ -180,7 +180,7 @@ class WC_API_Authentication {
|
|||
", $consumer_key ), ARRAY_A );
|
||||
|
||||
if ( empty( $keys ) ) {
|
||||
throw new Exception( __( 'Consumer Key is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Consumer key is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
return $keys;
|
||||
|
@ -248,7 +248,7 @@ class WC_API_Authentication {
|
|||
|
||||
// Sort parameters
|
||||
if ( ! uksort( $params, 'strcmp' ) ) {
|
||||
throw new Exception( __( 'Invalid Signature - failed to sort parameters.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - failed to sort parameters.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
// Form query string
|
||||
|
@ -262,7 +262,7 @@ class WC_API_Authentication {
|
|||
$string_to_sign = $http_method . '&' . $base_request_uri . '&' . $query_string;
|
||||
|
||||
if ( 'HMAC-SHA1' !== $params['oauth_signature_method'] && 'HMAC-SHA256' !== $params['oauth_signature_method'] ) {
|
||||
throw new Exception( __( 'Invalid Signature - signature method is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - signature method is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
$hash_algorithm = strtolower( str_replace( 'HMAC-', '', $params['oauth_signature_method'] ) );
|
||||
|
@ -270,7 +270,7 @@ class WC_API_Authentication {
|
|||
$signature = base64_encode( hash_hmac( $hash_algorithm, $string_to_sign, $keys['consumer_secret'], true ) );
|
||||
|
||||
if ( ! hash_equals( $signature, $consumer_signature ) ) {
|
||||
throw new Exception( __( 'Invalid Signature - provided signature does not match.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - provided signature does not match.', 'woocommerce' ), 401 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ class WC_API_Authentication {
|
|||
|
||||
} else {
|
||||
|
||||
throw new Exception( __( 'Consumer Key is missing.', 'woocommerce' ), 404 );
|
||||
throw new Exception( __( 'Consumer key is missing.', 'woocommerce' ), 404 );
|
||||
}
|
||||
|
||||
// Get consumer secret
|
||||
|
@ -106,13 +106,13 @@ class WC_API_Authentication {
|
|||
|
||||
} else {
|
||||
|
||||
throw new Exception( __( 'Consumer Secret is missing.', 'woocommerce' ), 404 );
|
||||
throw new Exception( __( 'Consumer secret is missing.', 'woocommerce' ), 404 );
|
||||
}
|
||||
|
||||
$keys = $this->get_keys_by_consumer_key( $consumer_key );
|
||||
|
||||
if ( ! $this->is_consumer_secret_valid( $keys['consumer_secret'], $consumer_secret ) ) {
|
||||
throw new Exception( __( 'Consumer Secret is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Consumer secret is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
return $keys;
|
||||
|
@ -180,7 +180,7 @@ class WC_API_Authentication {
|
|||
", $consumer_key ), ARRAY_A );
|
||||
|
||||
if ( empty( $keys ) ) {
|
||||
throw new Exception( __( 'Consumer Key is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Consumer key is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
return $keys;
|
||||
|
@ -248,7 +248,7 @@ class WC_API_Authentication {
|
|||
|
||||
// Sort parameters
|
||||
if ( ! uksort( $params, 'strcmp' ) ) {
|
||||
throw new Exception( __( 'Invalid Signature - failed to sort parameters.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - failed to sort parameters.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
// Form query string
|
||||
|
@ -262,7 +262,7 @@ class WC_API_Authentication {
|
|||
$string_to_sign = $http_method . '&' . $base_request_uri . '&' . $query_string;
|
||||
|
||||
if ( 'HMAC-SHA1' !== $params['oauth_signature_method'] && 'HMAC-SHA256' !== $params['oauth_signature_method'] ) {
|
||||
throw new Exception( __( 'Invalid Signature - signature method is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - signature method is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
$hash_algorithm = strtolower( str_replace( 'HMAC-', '', $params['oauth_signature_method'] ) );
|
||||
|
@ -270,7 +270,7 @@ class WC_API_Authentication {
|
|||
$signature = base64_encode( hash_hmac( $hash_algorithm, $string_to_sign, $keys['consumer_secret'], true ) );
|
||||
|
||||
if ( ! hash_equals( $signature, $consumer_signature ) ) {
|
||||
throw new Exception( __( 'Invalid Signature - provided signature does not match.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - provided signature does not match.', 'woocommerce' ), 401 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ class WC_API_Authentication {
|
|||
$keys = $this->get_keys_by_consumer_key( $params['consumer_key'] );
|
||||
|
||||
if ( ! $this->is_consumer_secret_valid( $keys['consumer_secret'], $params['consumer_secret'] ) ) {
|
||||
throw new Exception( __( 'Consumer Secret is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Consumer secret is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
return $keys;
|
||||
|
@ -176,7 +176,7 @@ class WC_API_Authentication {
|
|||
", $consumer_key ), ARRAY_A );
|
||||
|
||||
if ( empty( $keys ) ) {
|
||||
throw new Exception( __( 'Consumer Key is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Consumer key is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
return $keys;
|
||||
|
@ -238,7 +238,7 @@ class WC_API_Authentication {
|
|||
|
||||
// Sort parameters
|
||||
if ( ! uksort( $params, 'strcmp' ) ) {
|
||||
throw new Exception( __( 'Invalid Signature - failed to sort parameters.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - failed to sort parameters.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
// Normalize parameter key/values
|
||||
|
@ -258,7 +258,7 @@ class WC_API_Authentication {
|
|||
$string_to_sign = $http_method . '&' . $base_request_uri . '&' . $query_string;
|
||||
|
||||
if ( 'HMAC-SHA1' !== $params['oauth_signature_method'] && 'HMAC-SHA256' !== $params['oauth_signature_method'] ) {
|
||||
throw new Exception( __( 'Invalid Signature - signature method is invalid.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - signature method is invalid.', 'woocommerce' ), 401 );
|
||||
}
|
||||
|
||||
$hash_algorithm = strtolower( str_replace( 'HMAC-', '', $params['oauth_signature_method'] ) );
|
||||
|
@ -267,7 +267,7 @@ class WC_API_Authentication {
|
|||
$signature = base64_encode( hash_hmac( $hash_algorithm, $string_to_sign, $secret, true ) );
|
||||
|
||||
if ( ! hash_equals( $signature, $consumer_signature ) ) {
|
||||
throw new Exception( __( 'Invalid Signature - provided signature does not match.', 'woocommerce' ), 401 );
|
||||
throw new Exception( __( 'Invalid signature - provided signature does not match.', 'woocommerce' ), 401 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -531,7 +531,7 @@ class WC_API_Taxes extends WC_API_Resource {
|
|||
// Add standard class
|
||||
$tax_classes[] = array(
|
||||
'slug' => 'standard',
|
||||
'name' => __( 'Standard Rate', 'woocommerce' ),
|
||||
'name' => __( 'Standard rate', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$classes = WC_Tax::get_tax_classes();
|
||||
|
|
|
@ -2144,7 +2144,7 @@ class WC_AJAX {
|
|||
$data['consumer_key'] = $consumer_key;
|
||||
$data['consumer_secret'] = $consumer_secret;
|
||||
$data['message'] = __( 'API Key generated successfully. Make sure to copy your new API keys now. You won\'t be able to see it again!', 'woocommerce' );
|
||||
$data['revoke_url'] = '<a style="color: #a00; text-decoration: none;" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke Key', 'woocommerce' ) . '</a>';
|
||||
$data['revoke_url'] = '<a style="color: #a00; text-decoration: none;" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'revoke-key' => $key_id ), admin_url( 'admin.php?page=wc-settings&tab=api§ion=keys' ) ), 'revoke' ) ) . '">' . __( 'Revoke key', 'woocommerce' ) . '</a>';
|
||||
}
|
||||
|
||||
wp_send_json_success( $data );
|
||||
|
|
|
@ -372,7 +372,7 @@ class WC_Auth {
|
|||
} catch ( Exception $e ) {
|
||||
$this->maybe_delete_key( $consumer_data );
|
||||
|
||||
wp_die( sprintf( __( 'Error: %s.', 'woocommerce' ), $e->getMessage() ), __( 'Access Denied', 'woocommerce' ), array( 'response' => 401 ) );
|
||||
wp_die( sprintf( __( 'Error: %s.', 'woocommerce' ), $e->getMessage() ), __( 'Access denied', 'woocommerce' ), array( 'response' => 401 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -922,7 +922,7 @@ class WC_Cart {
|
|||
$in_cart_quantity = $cart_item_key ? $this->cart_contents[ $cart_item_key ]['quantity'] : 0;
|
||||
|
||||
if ( $in_cart_quantity > 0 ) {
|
||||
throw new Exception( sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', wc_get_cart_url(), __( 'View Cart', 'woocommerce' ), sprintf( __( 'You cannot add another "%s" to your cart.', 'woocommerce' ), $product_data->get_title() ) ) );
|
||||
throw new Exception( sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', wc_get_cart_url(), __( 'View cart', 'woocommerce' ), sprintf( __( 'You cannot add another "%s" to your cart.', 'woocommerce' ), $product_data->get_title() ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -957,7 +957,7 @@ class WC_Cart {
|
|||
throw new Exception( sprintf(
|
||||
'<a href="%s" class="button wc-forward">%s</a> %s',
|
||||
wc_get_cart_url(),
|
||||
__( 'View Cart', 'woocommerce' ),
|
||||
__( 'View cart', 'woocommerce' ),
|
||||
sprintf( __( 'You cannot add that amount to the cart — we have %1$s in stock and you already have %2$s in your cart.', 'woocommerce' ), $product_data->get_stock_quantity(), $check_qty )
|
||||
) );
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ class WC_Checkout {
|
|||
'order_comments' => array(
|
||||
'type' => 'textarea',
|
||||
'class' => array( 'notes' ),
|
||||
'label' => __( 'Order Notes', 'woocommerce' ),
|
||||
'label' => __( 'Order notes', 'woocommerce' ),
|
||||
'placeholder' => _x( 'Notes about your order, e.g. special notes for delivery.', 'placeholder', 'woocommerce' ),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -544,21 +544,21 @@ class WC_Countries {
|
|||
public function get_default_address_fields() {
|
||||
$fields = array(
|
||||
'first_name' => array(
|
||||
'label' => __( 'First Name', 'woocommerce' ),
|
||||
'label' => __( 'First name', 'woocommerce' ),
|
||||
'required' => true,
|
||||
'class' => array( 'form-row-first' ),
|
||||
'autocomplete' => 'given-name',
|
||||
'autofocus' => true,
|
||||
),
|
||||
'last_name' => array(
|
||||
'label' => __( 'Last Name', 'woocommerce' ),
|
||||
'label' => __( 'Last name', 'woocommerce' ),
|
||||
'required' => true,
|
||||
'class' => array( 'form-row-last' ),
|
||||
'clear' => true,
|
||||
'autocomplete' => 'family-name',
|
||||
),
|
||||
'company' => array(
|
||||
'label' => __( 'Company Name', 'woocommerce' ),
|
||||
'label' => __( 'Company name', 'woocommerce' ),
|
||||
'class' => array( 'form-row-wide' ),
|
||||
'autocomplete' => 'organization',
|
||||
),
|
||||
|
@ -1013,7 +1013,7 @@ class WC_Countries {
|
|||
// Add email and phone after company or last
|
||||
if ( 'billing_' === $type && ( 'company' === $key || ( ! array_key_exists( 'company', $fields ) && end( $keys ) === $key ) ) ) {
|
||||
$address_fields['billing_email'] = array(
|
||||
'label' => __( 'Email Address', 'woocommerce' ),
|
||||
'label' => __( 'Email address', 'woocommerce' ),
|
||||
'required' => true,
|
||||
'type' => 'email',
|
||||
'class' => array( 'form-row-first' ),
|
||||
|
|
|
@ -459,7 +459,7 @@ class WC_Emails {
|
|||
|
||||
if ( $order->get_billing_email() ) {
|
||||
$fields['billing_email'] = array(
|
||||
'label' => __( 'Email Address', 'woocommerce' ),
|
||||
'label' => __( 'Email address', 'woocommerce' ),
|
||||
'value' => wptexturize( $order->get_billing_email() ),
|
||||
);
|
||||
}
|
||||
|
@ -553,7 +553,7 @@ class WC_Emails {
|
|||
return;
|
||||
}
|
||||
|
||||
$subject = sprintf( '[%s] %s', $this->get_blogname(), __( 'Product Backorder', 'woocommerce' ) );
|
||||
$subject = sprintf( '[%s] %s', $this->get_blogname(), __( 'Product backorder', 'woocommerce' ) );
|
||||
$message = sprintf( __( '%1$s units of %2$s have been backordered in order #%3$s.', 'woocommerce' ), $quantity, html_entity_decode( strip_tags( $product->get_formatted_name() ), ENT_QUOTES, get_bloginfo( 'charset' ) ), $order->get_order_number() );
|
||||
|
||||
wp_mail(
|
||||
|
|
|
@ -106,7 +106,7 @@ class WC_Embed {
|
|||
$button = '<a href="%s" class="wp-embed-more wc-embed-button">%s</a>';
|
||||
|
||||
if ( $_product->is_type( 'simple' ) && $_product->is_purchasable() && $_product->is_in_stock() ) {
|
||||
$buttons[] = sprintf( $button, esc_url( add_query_arg( 'add-to-cart', get_the_ID(), wc_get_cart_url() ) ), esc_html__( 'Buy Now', 'woocommerce' ) );
|
||||
$buttons[] = sprintf( $button, esc_url( add_query_arg( 'add-to-cart', get_the_ID(), wc_get_cart_url() ) ), esc_html__( 'Buy now', 'woocommerce' ) );
|
||||
}
|
||||
|
||||
$buttons[] = sprintf( $button, get_the_permalink(), esc_html__( 'Read more', 'woocommerce' ) );
|
||||
|
|
|
@ -192,9 +192,9 @@ class WC_Form_Handler {
|
|||
|
||||
// Handle required fields
|
||||
$required_fields = apply_filters( 'woocommerce_save_account_details_required_fields', array(
|
||||
'account_first_name' => __( 'First Name', 'woocommerce' ),
|
||||
'account_last_name' => __( 'Last Name', 'woocommerce' ),
|
||||
'account_email' => __( 'Email Address', 'woocommerce' ),
|
||||
'account_first_name' => __( 'First name', 'woocommerce' ),
|
||||
'account_last_name' => __( 'Last name', 'woocommerce' ),
|
||||
'account_email' => __( 'Email address', 'woocommerce' ),
|
||||
) );
|
||||
|
||||
foreach ( $required_fields as $field_key => $field_name ) {
|
||||
|
|
|
@ -309,7 +309,7 @@ class WC_Frontend_Scripts {
|
|||
return array(
|
||||
'ajax_url' => WC()->ajax_url(),
|
||||
'wc_ajax_url' => WC_AJAX::get_endpoint( "%%endpoint%%" ),
|
||||
'i18n_view_cart' => esc_attr__( 'View Cart', 'woocommerce' ),
|
||||
'i18n_view_cart' => esc_attr__( 'View cart', 'woocommerce' ),
|
||||
'cart_url' => apply_filters( 'woocommerce_add_to_cart_redirect', wc_get_cart_url() ),
|
||||
'is_cart' => is_cart(),
|
||||
'cart_redirect_after_add' => get_option( 'woocommerce_cart_redirect_after_add' ),
|
||||
|
|
|
@ -310,7 +310,7 @@ class WC_Install {
|
|||
),
|
||||
'myaccount' => array(
|
||||
'name' => _x( 'my-account', 'Page slug', 'woocommerce' ),
|
||||
'title' => _x( 'My Account', 'Page title', 'woocommerce' ),
|
||||
'title' => _x( 'My account', 'Page title', 'woocommerce' ),
|
||||
'content' => '[' . apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) . ']',
|
||||
),
|
||||
) );
|
||||
|
@ -613,7 +613,7 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
|
|||
) );
|
||||
|
||||
// Shop manager role
|
||||
add_role( 'shop_manager', __( 'Shop Manager', 'woocommerce' ), array(
|
||||
add_role( 'shop_manager', __( 'Shop manager', 'woocommerce' ), array(
|
||||
'level_9' => true,
|
||||
'level_8' => true,
|
||||
'level_7' => true,
|
||||
|
@ -840,7 +840,7 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
|
|||
*/
|
||||
public static function plugin_action_links( $links ) {
|
||||
$action_links = array(
|
||||
'settings' => '<a href="' . admin_url( 'admin.php?page=wc-settings' ) . '" title="' . esc_attr( __( 'View WooCommerce Settings', 'woocommerce' ) ) . '">' . __( 'Settings', 'woocommerce' ) . '</a>',
|
||||
'settings' => '<a href="' . admin_url( 'admin.php?page=wc-settings' ) . '" title="' . esc_attr( __( 'View WooCommerce settings', 'woocommerce' ) ) . '">' . __( 'Settings', 'woocommerce' ) . '</a>',
|
||||
);
|
||||
|
||||
return array_merge( $action_links, $links );
|
||||
|
@ -856,9 +856,9 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
|
|||
public static function plugin_row_meta( $links, $file ) {
|
||||
if ( WC_PLUGIN_BASENAME == $file ) {
|
||||
$row_meta = array(
|
||||
'docs' => '<a href="' . esc_url( apply_filters( 'woocommerce_docs_url', 'https://docs.woocommerce.com/documentation/plugins/woocommerce/' ) ) . '" title="' . esc_attr( __( 'View WooCommerce Documentation', 'woocommerce' ) ) . '">' . __( 'Docs', 'woocommerce' ) . '</a>',
|
||||
'apidocs' => '<a href="' . esc_url( apply_filters( 'woocommerce_apidocs_url', 'https://docs.woocommerce.com/wc-apidocs/' ) ) . '" title="' . esc_attr( __( 'View WooCommerce API Docs', 'woocommerce' ) ) . '">' . __( 'API Docs', 'woocommerce' ) . '</a>',
|
||||
'support' => '<a href="' . esc_url( apply_filters( 'woocommerce_support_url', 'https://woocommerce.com/my-account/tickets/' ) ) . '" title="' . esc_attr( __( 'Visit Premium Customer Support Forum', 'woocommerce' ) ) . '">' . __( 'Premium Support', 'woocommerce' ) . '</a>',
|
||||
'docs' => '<a href="' . esc_url( apply_filters( 'woocommerce_docs_url', 'https://docs.woocommerce.com/documentation/plugins/woocommerce/' ) ) . '" title="' . esc_attr( __( 'View WooCommerce documentation', 'woocommerce' ) ) . '">' . __( 'Docs', 'woocommerce' ) . '</a>',
|
||||
'apidocs' => '<a href="' . esc_url( apply_filters( 'woocommerce_apidocs_url', 'https://docs.woocommerce.com/wc-apidocs/' ) ) . '" title="' . esc_attr( __( 'View WooCommerce API docs', 'woocommerce' ) ) . '">' . __( 'API docs', 'woocommerce' ) . '</a>',
|
||||
'support' => '<a href="' . esc_url( apply_filters( 'woocommerce_support_url', 'https://woocommerce.com/my-account/tickets/' ) ) . '" title="' . esc_attr( __( 'Visit premium customer support', 'woocommerce' ) ) . '">' . __( 'Premium support', 'woocommerce' ) . '</a>',
|
||||
);
|
||||
|
||||
return array_merge( $links, $row_meta );
|
||||
|
|
|
@ -62,17 +62,17 @@ class WC_Post_types {
|
|||
'update_count_callback' => '_wc_term_recount',
|
||||
'label' => __( 'Categories', 'woocommerce' ),
|
||||
'labels' => array(
|
||||
'name' => __( 'Product Categories', 'woocommerce' ),
|
||||
'name' => __( 'Product categories', 'woocommerce' ),
|
||||
'singular_name' => __( 'Category', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Categories', 'Admin menu name', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Categories', 'woocommerce' ),
|
||||
'all_items' => __( 'All Categories', 'woocommerce' ),
|
||||
'parent_item' => __( 'Parent Category', 'woocommerce' ),
|
||||
'parent_item_colon' => __( 'Parent Category:', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Category', 'woocommerce' ),
|
||||
'update_item' => __( 'Update Category', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Category', 'woocommerce' ),
|
||||
'new_item_name' => __( 'New Category Name', 'woocommerce' ),
|
||||
'search_items' => __( 'Search categories', 'woocommerce' ),
|
||||
'all_items' => __( 'All categories', 'woocommerce' ),
|
||||
'parent_item' => __( 'Parent category', 'woocommerce' ),
|
||||
'parent_item_colon' => __( 'Parent category:', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit category', 'woocommerce' ),
|
||||
'update_item' => __( 'Update category', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new category', 'woocommerce' ),
|
||||
'new_item_name' => __( 'New category name', 'woocommerce' ),
|
||||
'not_found' => __( 'No categories found', 'woocommerce' ),
|
||||
),
|
||||
'show_ui' => true,
|
||||
|
@ -96,20 +96,20 @@ class WC_Post_types {
|
|||
apply_filters( 'woocommerce_taxonomy_args_product_tag', array(
|
||||
'hierarchical' => false,
|
||||
'update_count_callback' => '_wc_term_recount',
|
||||
'label' => __( 'Product Tags', 'woocommerce' ),
|
||||
'label' => __( 'Product tags', 'woocommerce' ),
|
||||
'labels' => array(
|
||||
'name' => __( 'Product Tags', 'woocommerce' ),
|
||||
'name' => __( 'Product tags', 'woocommerce' ),
|
||||
'singular_name' => __( 'Tag', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Tags', 'Admin menu name', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Tags', 'woocommerce' ),
|
||||
'all_items' => __( 'All Tags', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Tag', 'woocommerce' ),
|
||||
'update_item' => __( 'Update Tag', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Tag', 'woocommerce' ),
|
||||
'new_item_name' => __( 'New Tag Name', 'woocommerce' ),
|
||||
'popular_items' => __( 'Popular Tags', 'woocommerce' ),
|
||||
'separate_items_with_commas' => __( 'Separate Tags with commas', 'woocommerce' ),
|
||||
'add_or_remove_items' => __( 'Add or remove Tags', 'woocommerce' ),
|
||||
'search_items' => __( 'Search tags', 'woocommerce' ),
|
||||
'all_items' => __( 'All tags', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit tag', 'woocommerce' ),
|
||||
'update_item' => __( 'Update tag', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new tag', 'woocommerce' ),
|
||||
'new_item_name' => __( 'New tag name', 'woocommerce' ),
|
||||
'popular_items' => __( 'Popular tags', 'woocommerce' ),
|
||||
'separate_items_with_commas' => __( 'Separate tags with commas', 'woocommerce' ),
|
||||
'add_or_remove_items' => __( 'Add or remove tags', 'woocommerce' ),
|
||||
'choose_from_most_used' => __( 'Choose from the most used tags', 'woocommerce' ),
|
||||
'not_found' => __( 'No tags found', 'woocommerce' ),
|
||||
),
|
||||
|
@ -133,19 +133,19 @@ class WC_Post_types {
|
|||
apply_filters( 'woocommerce_taxonomy_args_product_shipping_class', array(
|
||||
'hierarchical' => false,
|
||||
'update_count_callback' => '_update_post_term_count',
|
||||
'label' => __( 'Shipping Classes', 'woocommerce' ),
|
||||
'label' => __( 'Shipping classes', 'woocommerce' ),
|
||||
'labels' => array(
|
||||
'name' => __( 'Product Shipping Classes', 'woocommerce' ),
|
||||
'singular_name' => __( 'Shipping Class', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Shipping Classes', 'Admin menu name', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Shipping Classes', 'woocommerce' ),
|
||||
'all_items' => __( 'All Shipping Classes', 'woocommerce' ),
|
||||
'parent_item' => __( 'Parent Shipping Class', 'woocommerce' ),
|
||||
'parent_item_colon' => __( 'Parent Shipping Class:', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Shipping Class', 'woocommerce' ),
|
||||
'update_item' => __( 'Update Shipping Class', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Shipping Class', 'woocommerce' ),
|
||||
'new_item_name' => __( 'New Shipping Class Name', 'woocommerce' ),
|
||||
'name' => __( 'Product shipping classes', 'woocommerce' ),
|
||||
'singular_name' => __( 'Shipping class', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Shipping classes', 'Admin menu name', 'woocommerce' ),
|
||||
'search_items' => __( 'Search shipping classes', 'woocommerce' ),
|
||||
'all_items' => __( 'All shipping classes', 'woocommerce' ),
|
||||
'parent_item' => __( 'Parent shipping class', 'woocommerce' ),
|
||||
'parent_item_colon' => __( 'Parent shipping class:', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit shipping class', 'woocommerce' ),
|
||||
'update_item' => __( 'Update shipping class', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new shipping class', 'woocommerce' ),
|
||||
'new_item_name' => __( 'New shipping class Name', 'woocommerce' ),
|
||||
),
|
||||
'show_ui' => false,
|
||||
'show_in_quick_edit' => false,
|
||||
|
@ -183,7 +183,7 @@ class WC_Post_types {
|
|||
'parent_item_colon' => sprintf( __( 'Parent %s:', 'woocommerce' ), $label ),
|
||||
'edit_item' => sprintf( __( 'Edit %s', 'woocommerce' ), $label ),
|
||||
'update_item' => sprintf( __( 'Update %s', 'woocommerce' ), $label ),
|
||||
'add_new_item' => sprintf( __( 'Add New %s', 'woocommerce' ), $label ),
|
||||
'add_new_item' => sprintf( __( 'Add new %s', 'woocommerce' ), $label ),
|
||||
'new_item_name' => sprintf( __( 'New %s', 'woocommerce' ), $label ),
|
||||
'not_found' => sprintf( __( 'No "%s" found', 'woocommerce' ), $label ),
|
||||
),
|
||||
|
@ -241,18 +241,18 @@ class WC_Post_types {
|
|||
'name' => __( 'Products', 'woocommerce' ),
|
||||
'singular_name' => __( 'Product', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Products', 'Admin menu name', 'woocommerce' ),
|
||||
'add_new' => __( 'Add Product', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Product', 'woocommerce' ),
|
||||
'add_new' => __( 'Add product', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new product', 'woocommerce' ),
|
||||
'edit' => __( 'Edit', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Product', 'woocommerce' ),
|
||||
'new_item' => __( 'New Product', 'woocommerce' ),
|
||||
'view' => __( 'View Product', 'woocommerce' ),
|
||||
'view_item' => __( 'View Product', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Products', 'woocommerce' ),
|
||||
'not_found' => __( 'No Products found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No Products found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent Product', 'woocommerce' ),
|
||||
'featured_image' => __( 'Product Image', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit product', 'woocommerce' ),
|
||||
'new_item' => __( 'New product', 'woocommerce' ),
|
||||
'view' => __( 'View product', 'woocommerce' ),
|
||||
'view_item' => __( 'View product', 'woocommerce' ),
|
||||
'search_items' => __( 'Search products', 'woocommerce' ),
|
||||
'not_found' => __( 'No products found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No products found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent product', 'woocommerce' ),
|
||||
'featured_image' => __( 'Product image', 'woocommerce' ),
|
||||
'set_featured_image' => __( 'Set product image', 'woocommerce' ),
|
||||
'remove_featured_image' => __( 'Remove product image', 'woocommerce' ),
|
||||
'use_featured_image' => __( 'Use as product image', 'woocommerce' ),
|
||||
|
@ -298,17 +298,17 @@ class WC_Post_types {
|
|||
'labels' => array(
|
||||
'name' => __( 'Orders', 'woocommerce' ),
|
||||
'singular_name' => _x( 'Order', 'shop_order post type singular name', 'woocommerce' ),
|
||||
'add_new' => __( 'Add Order', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Order', 'woocommerce' ),
|
||||
'add_new' => __( 'Add order', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new order', 'woocommerce' ),
|
||||
'edit' => __( 'Edit', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Order', 'woocommerce' ),
|
||||
'new_item' => __( 'New Order', 'woocommerce' ),
|
||||
'view' => __( 'View Order', 'woocommerce' ),
|
||||
'view_item' => __( 'View Order', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Orders', 'woocommerce' ),
|
||||
'not_found' => __( 'No Orders found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No Orders found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent Orders', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit order', 'woocommerce' ),
|
||||
'new_item' => __( 'New order', 'woocommerce' ),
|
||||
'view' => __( 'View order', 'woocommerce' ),
|
||||
'view_item' => __( 'View order', 'woocommerce' ),
|
||||
'search_items' => __( 'Search orders', 'woocommerce' ),
|
||||
'not_found' => __( 'No orders found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No orders found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent orders', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Orders', 'Admin menu name', 'woocommerce' ),
|
||||
'filter_items_list' => __( 'Filter orders', 'woocommerce' ),
|
||||
'items_list_navigation' => __( 'Orders navigation', 'woocommerce' ),
|
||||
|
@ -360,17 +360,17 @@ class WC_Post_types {
|
|||
'name' => __( 'Coupons', 'woocommerce' ),
|
||||
'singular_name' => __( 'Coupon', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Coupons', 'Admin menu name', 'woocommerce' ),
|
||||
'add_new' => __( 'Add Coupon', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Coupon', 'woocommerce' ),
|
||||
'add_new' => __( 'Add coupon', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new coupon', 'woocommerce' ),
|
||||
'edit' => __( 'Edit', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Coupon', 'woocommerce' ),
|
||||
'new_item' => __( 'New Coupon', 'woocommerce' ),
|
||||
'view' => __( 'View Coupons', 'woocommerce' ),
|
||||
'view_item' => __( 'View Coupon', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Coupons', 'woocommerce' ),
|
||||
'not_found' => __( 'No Coupons found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No Coupons found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent Coupon', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit coupon', 'woocommerce' ),
|
||||
'new_item' => __( 'New coupon', 'woocommerce' ),
|
||||
'view' => __( 'View coupons', 'woocommerce' ),
|
||||
'view_item' => __( 'View coupon', 'woocommerce' ),
|
||||
'search_items' => __( 'Search coupons', 'woocommerce' ),
|
||||
'not_found' => __( 'No coupons found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No coupons found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent coupon', 'woocommerce' ),
|
||||
'filter_items_list' => __( 'Filter coupons', 'woocommerce' ),
|
||||
'items_list_navigation' => __( 'Coupons navigation', 'woocommerce' ),
|
||||
'items_list' => __( 'Coupons list', 'woocommerce' ),
|
||||
|
@ -401,17 +401,17 @@ class WC_Post_types {
|
|||
'name' => __( 'Webhooks', 'woocommerce' ),
|
||||
'singular_name' => __( 'Webhook', 'woocommerce' ),
|
||||
'menu_name' => _x( 'Webhooks', 'Admin menu name', 'woocommerce' ),
|
||||
'add_new' => __( 'Add Webhook', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add New Webhook', 'woocommerce' ),
|
||||
'add_new' => __( 'Add webhook', 'woocommerce' ),
|
||||
'add_new_item' => __( 'Add new webhook', 'woocommerce' ),
|
||||
'edit' => __( 'Edit', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit Webhook', 'woocommerce' ),
|
||||
'new_item' => __( 'New Webhook', 'woocommerce' ),
|
||||
'view' => __( 'View Webhooks', 'woocommerce' ),
|
||||
'view_item' => __( 'View Webhook', 'woocommerce' ),
|
||||
'search_items' => __( 'Search Webhooks', 'woocommerce' ),
|
||||
'not_found' => __( 'No Webhooks found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No Webhooks found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent Webhook', 'woocommerce' ),
|
||||
'edit_item' => __( 'Edit webhook', 'woocommerce' ),
|
||||
'new_item' => __( 'New webhook', 'woocommerce' ),
|
||||
'view' => __( 'View webhooks', 'woocommerce' ),
|
||||
'view_item' => __( 'View webhook', 'woocommerce' ),
|
||||
'search_items' => __( 'Search webhooks', 'woocommerce' ),
|
||||
'not_found' => __( 'No webhooks found', 'woocommerce' ),
|
||||
'not_found_in_trash' => __( 'No webhooks found in trash', 'woocommerce' ),
|
||||
'parent' => __( 'Parent webhook', 'woocommerce' ),
|
||||
),
|
||||
'public' => false,
|
||||
'show_ui' => true,
|
||||
|
@ -439,12 +439,12 @@ class WC_Post_types {
|
|||
$order_statuses = apply_filters( 'woocommerce_register_shop_order_post_statuses',
|
||||
array(
|
||||
'wc-pending' => array(
|
||||
'label' => _x( 'Pending Payment', 'Order status', 'woocommerce' ),
|
||||
'label' => _x( 'Pending payment', 'Order status', 'woocommerce' ),
|
||||
'public' => false,
|
||||
'exclude_from_search' => false,
|
||||
'show_in_admin_all_list' => true,
|
||||
'show_in_admin_status_list' => true,
|
||||
'label_count' => _n_noop( 'Pending Payment <span class="count">(%s)</span>', 'Pending Payment <span class="count">(%s)</span>', 'woocommerce' ),
|
||||
'label_count' => _n_noop( 'Pending payment <span class="count">(%s)</span>', 'Pending payment <span class="count">(%s)</span>', 'woocommerce' ),
|
||||
),
|
||||
'wc-processing' => array(
|
||||
'label' => _x( 'Processing', 'Order status', 'woocommerce' ),
|
||||
|
@ -455,12 +455,12 @@ class WC_Post_types {
|
|||
'label_count' => _n_noop( 'Processing <span class="count">(%s)</span>', 'Processing <span class="count">(%s)</span>', 'woocommerce' ),
|
||||
),
|
||||
'wc-on-hold' => array(
|
||||
'label' => _x( 'On Hold', 'Order status', 'woocommerce' ),
|
||||
'label' => _x( 'On hold', 'Order status', 'woocommerce' ),
|
||||
'public' => false,
|
||||
'exclude_from_search' => false,
|
||||
'show_in_admin_all_list' => true,
|
||||
'show_in_admin_status_list' => true,
|
||||
'label_count' => _n_noop( 'On Hold <span class="count">(%s)</span>', 'On Hold <span class="count">(%s)</span>', 'woocommerce' ),
|
||||
'label_count' => _n_noop( 'On hold <span class="count">(%s)</span>', 'On hold <span class="count">(%s)</span>', 'woocommerce' ),
|
||||
),
|
||||
'wc-completed' => array(
|
||||
'label' => _x( 'Completed', 'Order status', 'woocommerce' ),
|
||||
|
|
|
@ -88,10 +88,10 @@ class WC_Query {
|
|||
|
||||
switch ( $endpoint ) {
|
||||
case 'order-pay' :
|
||||
$title = __( 'Pay for Order', 'woocommerce' );
|
||||
$title = __( 'Pay for order', 'woocommerce' );
|
||||
break;
|
||||
case 'order-received' :
|
||||
$title = __( 'Order Received', 'woocommerce' );
|
||||
$title = __( 'Order received', 'woocommerce' );
|
||||
break;
|
||||
case 'orders' :
|
||||
if ( ! empty( $wp->query_vars['orders'] ) ) {
|
||||
|
@ -108,19 +108,19 @@ class WC_Query {
|
|||
$title = __( 'Downloads', 'woocommerce' );
|
||||
break;
|
||||
case 'edit-account' :
|
||||
$title = __( 'Account Details', 'woocommerce' );
|
||||
$title = __( 'Account details', 'woocommerce' );
|
||||
break;
|
||||
case 'edit-address' :
|
||||
$title = __( 'Addresses', 'woocommerce' );
|
||||
break;
|
||||
case 'payment-methods' :
|
||||
$title = __( 'Payment Methods', 'woocommerce' );
|
||||
$title = __( 'Payment methods', 'woocommerce' );
|
||||
break;
|
||||
case 'add-payment-method' :
|
||||
$title = __( 'Add Payment Method', 'woocommerce' );
|
||||
$title = __( 'Add payment method', 'woocommerce' );
|
||||
break;
|
||||
case 'lost-password' :
|
||||
$title = __( 'Lost Password', 'woocommerce' );
|
||||
$title = __( 'Lost password', 'woocommerce' );
|
||||
break;
|
||||
default :
|
||||
$title = apply_filters( 'woocommerce_endpoint_' . $endpoint . '_title', '' );
|
||||
|
|
|
@ -431,7 +431,7 @@ class WC_CLI_Tax extends WC_CLI_Command {
|
|||
// Add standard class
|
||||
$items[] = array(
|
||||
'slug' => 'standard',
|
||||
'name' => __( 'Standard Rate', 'woocommerce' ),
|
||||
'name' => __( 'Standard rate', 'woocommerce' ),
|
||||
);
|
||||
|
||||
$classes = WC_Tax::get_tax_classes();
|
||||
|
|
|
@ -122,7 +122,7 @@ class WC_Email_Cancelled_Order extends WC_Email {
|
|||
'desc_tip' => true,
|
||||
),
|
||||
'heading' => array(
|
||||
'title' => __( 'Email Heading', 'woocommerce' ),
|
||||
'title' => __( 'Email heading', 'woocommerce' ),
|
||||
'type' => 'text',
|
||||
'description' => sprintf( __( 'This controls the main heading contained within the email notification. Leave blank to use the default heading: <code>%s</code>.', 'woocommerce' ), $this->heading ),
|
||||
'placeholder' => '',
|
||||
|
@ -130,7 +130,7 @@ class WC_Email_Cancelled_Order extends WC_Email {
|
|||
'desc_tip' => true,
|
||||
),
|
||||
'email_type' => array(
|
||||
'title' => __( 'Email Type', 'woocommerce' ),
|
||||
'title' => __( 'Email type', 'woocommerce' ),
|
||||
'type' => 'select',
|
||||
'description' => __( 'Choose which format of email to send.', 'woocommerce' ),
|
||||
'default' => 'html',
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue