Merge branch 'max-cost-margin-tooltip' into 'development'
show tooltip for max cost margin See merge request saburly/wiaas/new-wiaas!83
This commit was merged in pull request #83.
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
|
||||
|
||||
|
||||
@@ -187,7 +187,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<input type="hidden" name="id" value="<?php esc_attr_e($package->get_id(), 'wiaas') ?>">
|
||||
|
||||
<div class="form-field">
|
||||
<label><?php esc_html_e('Max cost margin:', 'wiaas') ?></label>
|
||||
<label><?php esc_html_e('Max cost margin :', 'wiaas') ?>
|
||||
<?php echo wc_help_tip('Product deactivation limit (total cost)') ?>
|
||||
</label>
|
||||
<input
|
||||
id="wiaas_pricing_rules_max_cost_margin"
|
||||
name="wiaas_max_cost_margin"
|
||||
|
||||
Reference in New Issue
Block a user