</div> <?php // SELECT PRODUCT PARENT // ## This useful lil' button will open the modal window fully loaded with the products list ## ?> <label class="field"><b><?php _e('Parent product', 'woocommerce-molds'); ?> :</b> <button name="modal" type="button" class="button" onclick="show_it('products');"> <?php ## The product name has been save in the temporary table and loaded into the object ## ## Now we can get it simply ## $the_name = $mold->pm_get_product_name(); ## Display it if it contains user value ## if ($the_name != "Product") { echo $the_name; ## Or display default value } else { _e('Select a product', 'woocommerce-molds'); } ?> </button> </label> <?php // SELECT ATTRIBUTE // ?> <label class="field"><b><?php