use woocommerce help tip
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user