ID, 'product_data', true) ); $featured = (string) get_post_meta( $post->ID, 'featured', true ); $visibility = (string) get_post_meta( $post->ID, 'visibility', true); if (!isset($data['weight'])) $data['weight'] = ''; if (!isset($data['regular_price'])) $data['regular_price'] = ''; if (!isset($data['sale_price'])) $data['sale_price'] = ''; $thepostid = $post->ID; ?>
slug; else $product_type = 'simple'; $field = array( 'id' => 'product-type', 'label' => 'Product Type' ); echo '

'; // Summary echo '

'; // SKU $field = array( 'id' => 'sku', 'label' => 'SKU:' ); $SKU = get_post_meta($thepostid, 'SKU', true); echo '

Leave blank to use product ID

'; // Weight $field = array( 'id' => 'weight', 'label' => 'Weight ('.get_option('jigoshop_weight_unit').'):' ); echo '

'; // Featured $field = array( 'id' => 'featured', 'label' => 'Featured?' ); echo '

'; // Visibility $field = array( 'id' => 'visibility', 'label' => 'Visibility:' ); echo '

'; ?>
'regular_price', 'label' => 'Regular Price ('.get_jigoshop_currency_symbol().'):' ); echo '

'; // Special Price $field = array( 'id' => 'sale_price', 'label' => 'Sale Price ('.get_jigoshop_currency_symbol().'):' ); echo '

'; // Special Price date range $field = array( 'id' => 'sale_price_dates', 'label' => 'Sale Price Dates:' ); $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 '

Date format: YYYY-MM-DD

'; // Tax $_tax = new jigoshop_tax(); $field = array( 'id' => 'tax_status', 'label' => 'Tax Status:' ); echo '

'; $field = array( 'id' => 'tax_class', 'label' => 'Tax Class:' ); echo '

'; ?>
'manage_stock', 'label' => 'Manage stock?' ); echo '

'; // Stock status $field = array( 'id' => 'stock_status', 'label' => 'Stock status:' ); echo '

'; echo '
'; // Stock $field = array( 'id' => 'stock', 'label' => 'Stock Qty:' ); echo '

'; // Backorders? $field = array( 'id' => 'backorders', 'label' => 'Allow Backorders?' ); echo '

'; echo '
'; ?>
ID, 'product_attributes', true) ); $i = -1; // Taxonomies if ( $attribute_taxonomies ) : foreach ($attribute_taxonomies as $tax) : $i++; $attribute_nicename = strtolower(sanitize_title($tax->attribute_name)); if (isset($attributes[$attribute_nicename])) $attribute = $attributes[$attribute_nicename]; if (isset($attribute['visible']) && $attribute['visible']=='yes') $checked = 'checked="checked"'; else $checked = ''; $values = wp_get_post_terms( $thepostid, 'product_attribute_'.strtolower(sanitize_title($tax->attribute_name)) ); $value = array(); if (!is_wp_error($values) && $values) : foreach ($values as $v) : $value[] = $v->slug; endforeach; endif; ?>> 0) foreach ($attributes as $attribute) : if (isset($attribute['is_taxonomy']) && $attribute['is_taxonomy']=='yes') continue; $i++; if ($attribute['visible']=='yes') $checked = 'checked="checked"'; else $checked = ''; ?>
attribute_name; ?> attribute_type=="select" || $tax->attribute_type=="multiselect") : ?> attribute_type=="text") : ?> name="attribute_visibility[]" value="1" />
name="attribute_visibility[]" value="1" />