<div class="field"> <label><b><?php echo __('Regular Price:', 'woocommerce'); ?> </b></label> <input type="number" size="5" name="regular_price" value="<?php $regular_price = $mold->pm_get_mold_regular_price(); if ($regular_price) { echo $regular_price; } ?> " step="any" min="0"/><br> <?php // A MOLD PRICE CALCULATION OPTIONS // ## IS BASE PRICE ## $is_base_price = $mold->pm_get_mold_is_base_price(); ?> <input type="hidden" name="is_base_price" value="no" /><?php if ($is_base_price == "yes") { ?> <input class="css-checkbox" type="checkbox" onclick="base_price();" id="is_base_price" name="is_base_price" value="yes" checked><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 } 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');