Home / Tag Archives: create custome filed Woocommerce

Tag Archives: create custome filed Woocommerce

WOO-COMMERCE VARIABLE PRODUCT ADD CUSTOM FIELD IN VARIATIONS FOR VENDOR PRICE AND COMMISSION PRICE ON MRP

WOO-COMMERCE VARIABLE PRODUCT ADD CUSTOM FIELD IN VARIATIONS FOR VENDOR PRICE AND COMMISSION PRICE ON MRP

Code copy and past in them functions.php , its work fine. /*************for variable product**************/ // Add Variation Settings add_action( 'woocommerce_product_after_variable_attributes', 'variation_settings_fields', 10, 3 ); /** * Create new fields for variations * */ function variation_settings_fields( $loop, $variation_data, $variation ) { // Number Field woocommerce_wp_text_input( array( 'id' => '_vendor_price[' . $variation->ID …

Read More »

Woo-commerce simple product add custom field for vendor price and commission price on MRP

Woo-commerce simple product add custom field for vendor price  and commission price on MRP

Code copy and past in them functions.php , its work fine. add_action( 'woocommerce_product_options_pricing', 'wc_vendor_price_product_field' ); function wc_vendor_price_product_field() { woocommerce_wp_text_input( array( 'id' => 'vendor_price', 'class' => 'wc_input_price short', 'label' => __( 'Vendor Price', 'woocommerce' ) . ' (RS) ' ) ); } add_action( 'save_post', 'wc_vendor_price_save_product' ); function wc_vendor_price_save_product( $product_id ) { …

Read More »
0

December 9, 2016

Clear all