ID; ?>
slug : 'simple'; echo jigoshop_form::select( 'product-type', __('Product Type', 'jigoshop'), apply_filters('jigoshop_product_type_selector', array( 'simple' => __('Simple', 'jigoshop'), 'downloadable' => __('Downloadable', 'jigoshop'), 'grouped' => __('Grouped', 'jigoshop'), 'virtual' => __('Virtual', 'jigoshop'), 'variable' => __('Variable', 'jigoshop'), 'external' => __('External / Affiliate', 'jigoshop') )), $product_type ); // SKU if ( get_option('jigoshop_enable_sku') !== 'no' ) { echo jigoshop_form::input( 'sku', 'SKU', null, null, 'short', $post->ID ); } ?>
' ('.get_jigoshop_currency_symbol().')') ); // Sale Price echo jigoshop_form::input( 'sale_price', 'Sale Price', 'Schedule', null, 'short', '15% or 19.99', array('after_label' => ' ('.get_jigoshop_currency_symbol().' or %)' )); // Sale Price date range // TODO: Convert this to a helper somehow? $field = array( 'id' => 'sale_price_dates', 'label' => __('On Sale Between', 'jigoshop') ); $sale_price_dates_from = get_post_meta($thepostid, 'sale_price_dates_from', true); $sale_price_dates_to = get_post_meta($thepostid, 'sale_price_dates_to', true); echo '

Cancel

'; ?>
'Taxable', 'shipping' => 'Shipping', 'none' => 'None' ) ); ?>

get_tax_classes(); $selections = (array) get_post_meta($post->ID, 'tax_classes', true); $checked = checked(in_array('*', $selections), true, false); printf('' , !empty($checked) ? 'class="selected"' : '' , '*' , $checked , __('Standard', 'jigoshop')); if( $tax_classes ) { foreach ($tax_classes as $tax_class) { $checked = checked(in_array(sanitize_title($tax_class), $selections), true, false); printf('' , !empty($checked) ? 'class="selected"' : '' , sanitize_title($tax_class) , $checked , __($tax_class, 'jigoshop')); } } ?>  |

' ('.get_option('jigoshop_weight_unit').')') ); // Missing placeholder attribute 0.00 } // Dimensions if( get_option('jigoshop_enable_dimensions', true) !== 'no' ) { echo '

'; } ?>
'Catalog & Search', 'catalog' => 'Catalog Only', 'search' => 'Search Only', 'Hidden' => 'Hidden' ), get_post_meta( $post->ID, 'visibility', true ) ); ?>
'In Stock', 'outofstock' => 'Out of Stock' ) ); echo '
'; // Stock // TODO: Missing default value of 0 echo jigoshop_form::input( 'stock', 'Stock Quantity' ); // Backorders echo jigoshop_form::select( 'backorders', 'Allow Backorders?', array( 'no' => 'Do not allow', 'notify' => 'Allow, but notify customer', 'yes' => 'Allow' ), false, false, 'select' ); echo '
'; ?>
term_id, 'product_type' ); $posts_in = array_unique($posts_in); if( (bool) $posts_in ) { $args = array( 'post_type' => 'product', 'post_status' => 'publish', 'numberposts' => -1, 'orderby' => 'title', 'order' => 'asc', 'post_parent' => 0, 'include' => $posts_in, ); $grouped_products = get_posts($args); $options = array( null => '– Pick a Product Group –' ); if( $grouped_products ) foreach( $grouped_products as $product ) { if ($product->ID==$post->ID) continue; $options[$product->ID] = $product->post_title; } // Only echo the form if we have grouped products echo jigoshop_form::select( 'parent_id', 'Product Group', $options, $post->post_parent, false, 'select' ); } // Ordering echo jigoshop_form::input( 'menu_order', 'Sort Order', false, $post->menu_order ); ?>
ID, 'file_path', true); $field = array( 'id' => 'file_path', 'label' => __('File Path', 'jigoshop') ); echo '

'; // Download Limit echo jigoshop_form::input( 'download_limit', 'Download Limit', 'Leave blank for unlimited re-downloads' ); do_action( 'additional_downloadable_product_type_options' ); ?>
ID, 'product_attributes', true); ?>

Size

attribute_name); if (isset($attributes[$attribute_taxonomy_name])) $attribute = $attributes[$attribute_taxonomy_name]; $position = (isset($attribute['position'])) ? $attribute['position'] : 0; $allterms = get_the_terms( $post->ID, 'pa_'.$attribute_taxonomy_name ); $has_terms = ( is_wp_error( $allterms ) || !$allterms || sizeof( $allterms ) == 0 ) ? 0 : 1; $term_slugs = array(); if ( !is_wp_error( $allterms ) && $allterms ) : foreach ($allterms as $term) : $term_slugs[] = $term->slug; endforeach; endif; ?>
>

attribute_label) ? $tax->attribute_label : $tax->attribute_name; echo esc_attr ( $label ); ?>

attribute_type!="select") : // always disable variation for select elements ?>
attribute_type=="select") : ?> attribute_type=="multiselect") : ?>
'slug', 'hide_empty' => '0' ) ); if ($terms) : foreach ($terms as $term) : $checked = checked(in_array($term->slug, $term_slugs), true, false); printf('' , !empty($checked) ? 'class="selected"' : '' , $i , $term->slug , $checked , $term->name); endforeach; endif; endif; ?>
 |  |  |
attribute_type=="text") : ?>

attribute_type!="select") : // always disable variation for select elements ?>