示例#1
0
    } else {
        ?>
						<input class="css-checkbox" type="checkbox" id="sale_price_is_percent" name="sale_price_is_percent" value="yes"><label class="css-label" for="sale_price_is_percent"><?php 
        _e("Calculate in %", 'woocommerce-molds');
        ?>
</label><?php 
    }
    ?>
				</div><br/>
				
				<?php 
    // A MOLD WEIGHT AND DIMENSIONS //
    $length = $mold->pm_get_mold_length();
    $width = $mold->pm_get_mold_width();
    $height = $mold->pm_get_mold_height();
    $weight = $mold->pm_get_mold_weight();
    ?>
				<?php 
    if (get_option('woocommerce_enable_weight', true) !== 'no' || get_option('woocommerce_enable_dimensions', true) !== 'no') {
        ?>
						<?php 
        if (get_option('woocommerce_enable_weight', true) !== 'no') {
            ?>
							<div class="field">
							<label><a class="datatips" data-tip="<?php 
            _e('Enter a weight for this variation or leave blank to use the parent product weight.', 'woocommerce');
            ?>
" href="#">[?]</a> <b><?php 
            _e('Weight', 'woocommerce') . ' (' . esc_html(get_option('woocommerce_weight_unit')) . '):';
            ?>
:</b></label>