use woocommerce help tip

This commit is contained in:
Bilal Catic
2018-12-05 15:27:44 +01:00
parent 4aed08a96b
commit e4da6c7d45
2 changed files with 8 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ class Wiaas_Admin_Package_Pricing {
add_action('woocommerce_product_options_general_product_data', array(__CLASS__, 'render_edit_prices_link'));
add_filter('woocommerce_bundle_price_html', array( __CLASS__, 'get_package_price_html' ), 10, 2);
add_filter('woocommerce_screen_ids', array(__CLASS__, 'add_package_pricing_page_to_woocommerce_screens'), 10, 1);
}
public static function get_package_price_html($price_html, $package) {
@@ -116,6 +119,10 @@ class Wiaas_Admin_Package_Pricing {
include 'views/html-package-pricing-page.php';
}
public static function add_package_pricing_page_to_woocommerce_screens( $screens ){
$screens[] = 'product_page_wiaas-package_price_editor';
return $screens;
}
// PRIVATE HELPERS

View File

@@ -188,7 +188,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="form-field">
<label><?php esc_html_e('Max cost margin :', 'wiaas') ?>
<span class="dashicons dashicons-editor-help" title="Product deactivation limit (total cost)"></span>
<?php echo wc_help_tip('Product deactivation limit (total cost)') ?>
</label>
<input
id="wiaas_pricing_rules_max_cost_margin"