__( 'WSE ACS Sync for WooCommerce', 'weship-acs-sync-for-woocommerce' ),
'target' => 'weship_acs_sync_product_data',
'class' => array(),
'priority' => 80,
);
return $tabs;
}
/**
* Render the Product Data tab panel.
*/
public function render_panel() {
global $post;
$product_id = $post->ID;
?>
self::META_PRODUCT_TYPE,
'label' => __( 'Product Type', 'weship-acs-sync-for-woocommerce' ),
'desc_tip' => true,
'description' => __( 'Sent as orderItems[].productType in the 800 Program order feed.', 'weship-acs-sync-for-woocommerce' ),
'value' => get_post_meta( $product_id, self::META_PRODUCT_TYPE, true ),
)
);
woocommerce_wp_text_input(
array(
'id' => self::META_CCP_PRODUCT_TYPE,
'label' => __( 'CCP Product Type', 'weship-acs-sync-for-woocommerce' ),
'desc_tip' => true,
'description' => __( 'Sent as orderItems[].ccpProductType in the 800 Program order feed.', 'weship-acs-sync-for-woocommerce' ),
'value' => get_post_meta( $product_id, self::META_CCP_PRODUCT_TYPE, true ),
)
);
woocommerce_wp_text_input(
array(
'id' => self::META_PCT_ALCOHOL,
'label' => __( 'Alcohol %', 'weship-acs-sync-for-woocommerce' ),
'desc_tip' => true,
'description' => __( 'Alcohol by volume, e.g. 13.5. Sent as orderItems[].pctAlcohol.', 'weship-acs-sync-for-woocommerce' ),
'value' => get_post_meta( $product_id, self::META_PCT_ALCOHOL, true ),
'type' => 'number',
'custom_attributes' => array(
'step' => '0.1',
'min' => '0',
),
)
);
woocommerce_wp_text_input(
array(
'id' => self::META_BOTTLE_SIZE,
'label' => __( 'Bottle Size', 'weship-acs-sync-for-woocommerce' ),
'desc_tip' => true,
'description' => __( 'E.g. 750ml. Sent as orderItems[].bottleSize.', 'weship-acs-sync-for-woocommerce' ),
'value' => get_post_meta( $product_id, self::META_BOTTLE_SIZE, true ),
)
);
?>
ID;
?>