Product Visibility

'; // Featured apptivo_ecommerce_wp_checkbox( array( 'id' => '_apptivo_featured', 'label' => __('Featured?', 'apptivothemes') ) ); //Enabled apptivo_ecommerce_wp_checkbox( array( 'id' => '_apptivo_enabled', 'label' => __('Enabled?', 'apptivothemes') ) ); echo ''; //Item Code apptivo_ecommerce_wp_text_input( array( 'id' => '_apptivo_item_code','notes' => '   (Item Code should not be empty )' , 'label' => __('Item Code *', 'apptivothemes') ) ); //Suppliers apptivo_ecommerce_wp_select_suppliers(array( 'id' => '_apptivo_suppliers','notes' => 'Select supplier Name' , 'label' => __('Select Supplier', 'apptivothemes') )); //supplier apptivo_ecommerce_wp_text_input( array( 'id' => '_apptivo_supplier','notes' => 'Add new supplier' , 'label' => __('Add New Supplier', 'apptivothemes') ) ); //Regular Price apptivo_ecommerce_wp_text_input( array( 'id' => '_apptivo_regular_price', 'notes' => '   (Regular price should be numeric )' , 'label' => __('Regular Price', 'apptivothemes') . ' ('.get_apptivo_ecommerce_currency_symbol().')' ) ); // Sale Price apptivo_ecommerce_wp_text_input( array( 'id' => '_apptivo_sale_price', 'notes' => '   (Sale price should be numeric)', 'label' => __('Sale Price', 'apptivothemes') . ' ('.get_apptivo_ecommerce_currency_symbol().')' ) ); // Track Size apptivo_ecommerce_wp_text_input( array( 'id' => '_apptivo_track_size', 'notes' => '   ( Add multiple sizes for Tracking sizes by (,) Seprating values. for example: XL,XXL,XXXL )', 'label' => __('Track Size ', 'apptivothemes') ) ); // Track Color apptivo_ecommerce_wp_text_input( array( 'id' => '_apptivo_track_color', 'notes' => '   ( Add multiple colors for Tracking colors by (,) Seprating values. for example: R,G,B )', 'label' => __('Track Color', 'apptivothemes') ) ); do_action('apptivo_ecommerce_add_ons_apply_payments'); ?>
post_title; $itemDescription = $post->post_content; $regularPrice = $regulat_Price; $salePrice = $sale_Price; $itemShortDescription = $post->post_excerpt; $skuNumber = ''; $trackSizes = $_POST['_apptivo_track_size']; $trackColors = $_POST['_apptivo_track_color']; $enabledForSales = ($_POST['_apptivo_enabled'] == 'on')?true:false; $isFeatured = ($_POST['_apptivo_featured'] == 'on')?true:false; $SSubscription = true; $currencyCode = 'USD'; $taxonomy = 'item_cat'; $terms = array(); $terms=get_the_terms($post->ID,$taxonomy); $item_categoryID = array(); if( !empty($terms)) : foreach($terms as $terms_category) { $item_category_id = get_post_meta($terms_category->term_id, '_apptivo_category_id',true); if($item_category_id != ''){ $item_categoryID[] = $item_category_id; } } endif; $response = createorupdateitem($webMethod,$itemId,$itemManufacturerId,$item_code,$itemName,$itemDescription,$regularPrice,$salePrice,$itemShortDescription, $skuNumber,$trackSizes,$trackColors,$enabledForSales,$SSubscription,$currencyCode,$item_categoryID,$supplierName,$isFeatured,$post_id); if($response->return->itemId != '' ) { update_post_meta($post_id, '_apptivo_item_id', $response->return->itemId); update_post_meta($post_id, '_apptivo_item_uom_id', $response->return->itemPrimaryUOMId); update_post_meta($post_id, '_apptivo_item_manufactured_id', $response->return->itemManufacturerId); } }