'; echo 'var tpmd_purity_obj = { "1": [' . $this->create_js_obj('purity', '1', $attr) . '], "2": [' . $this->create_js_obj('purity', '2', $attr) . '], "3":[' . $this->create_js_obj('purity', '3', $attr) . '],"4":[' . $this->create_js_obj('purity', '4', $attr) . '] }; '; echo ''; ?>
get_field( 'newProductId' ) != '')? $product->get_field( 'newProductId' ): $product->get_field( 'productId' ); }else{ $product_value = ''; } ?> get_field( 'rest_uploaded' ) ) ? 'readonly' : '' ?> > err_fields['productId'] ) ) : echo '' . $this->err_fields['productId'][0] . ''; endif; ?>
get_field( 'name' ); }else{ $product_name = ''; } ?>
create_select( 'Format', 'format', $product, $attr, true ); ?> create_select( 'Volume', 'volume', $product, $attr, true ); ?>create_select( 'Condition', 'condition', $product, $attr ); ?>
err_fields['purity'] ) ) : echo '' . $this->err_fields['purity'][0] . ''; endif; ?>
err_fields['yearType'] ) ? ' tpmd-error-field' : ''; $year_type_value = ( $product ) ? $product->get_field( 'yearType') : ''; ?> err_fields['yearValue'] ) ? ' tpmd-error-field' : ''; $year_value_from = ( $product && \is_array( $product->get_field( 'yearValue' ) ) ) ? $product->get_field( 'yearValue' )[0] : ''; $year_value_to = ( $product && \is_array( $product->get_field( 'yearValue' ) ) ) ? $product->get_field( 'yearValue' )[1] : ''; $year_value = ( $product && ! \is_array( $product->get_field( 'yearValue' ) ) ) ? $product->get_field( 'yearValue' ) : ''; ?> err_fields['yearType'] ) ) : ?> err_fields['yearType'][0] ?>
create_select('Production Type', 'productionType', $product, $attr); ?> create_select('Strike Type', 'strikeType', $product, $attr); ?> create_select('Mint', 'mint', $product, $attr); ?> create_select('Mint Country', 'mintCountry', $product, $attr); ?>err_fields['mintState'] ) ? ' tpmd-error-field' : ''; if($product->get_field( 'mintCountry' ) != ''){ $mint_state_value = $attr['mintState'][$product->get_field( 'mintCountry' )][$product->get_field( 'mintState' )]; }else{ $mint_state_value = ''; } //$mint_state_value = ( $product ) ? $product->get_field( 'mintState' ) : ''; ?> err_fields['mintState'] ) ) : ?> err_fields['mintState'][0] ?>
get_field( 'mintMark' ); }else{ $product_mintMark = ''; } ?>
err_fields['grade'] ) ? ' tpmd-error-field' : ''; if($product->get_field( 'gradingService' ) != ''){ $grade_value = $attr['grade'][$product->get_field( 'gradingService' )][$product->get_field( 'grade' )]; }else{ $grade_value = ''; } //echo json_encode($attr['grade']['2']); ?> err_fields['grade'] ) ) : ?> err_fields['grade'][0] ?>
err_fields['productUrl'] ) ) : ?> err_fields['productUrl'][0] ?> err_fields['images'] ) ) : ?> err_fields['images'][0] ?>