示例#1
0
" href="#"><?php 
        echo _e("Use as regular price", 'woocommerce-molds') . ' (' . get_woocommerce_currency_symbol() . ')';
        ?>
</a></label><br><?php 
    } else {
        ?>
						<input class="css-checkbox" type="checkbox" onclick="base_price();" id="is_base_price" name="is_base_price" value="yes"><label class="css-label" for="is_base_price"><a class="datatips" data-tip="<?php 
        _e('Enabling this option will replace the variations regular price by the one you entered', 'woocommerce-molds');
        ?>
" href="#"><?php 
        echo _e("Use as regular price", 'woocommerce-molds') . ' (' . get_woocommerce_currency_symbol() . ')';
        ?>
</a></label><br><?php 
    }
    ## IS ADD ##
    $is_add = $mold->pm_get_mold_is_add();
    ?>
<input type="hidden" name="is_add" value="no" /><?php 
    if ($is_add == "yes") {
        ?>
						<input class="css-checkbox" type="checkbox" onclick="add_or_sub(true);" id="is_add" name="is_add" value="yes" checked><label class="css-label" for="is_add"><a class="datatips" data-tip="<?php 
        _e('The price you entered will be added to the variations current price', 'woocommerce-molds');
        ?>
" href="#"><?php 
        _e("Add to regular price", 'woocommerce-molds');
        ?>
</a></label><br><?php 
    } else {
        ?>
						<input class="css-checkbox" type="checkbox" onclick="add_or_sub(true);" id="is_add" name="is_add" value="yes"><label class="css-label" for="is_add"><a class="datatips" data-tip="<?php 
        _e('The price you entered will be added to the variations current price', 'woocommerce-molds');