Created
December 30, 2015 02:25
-
-
Save bentasm1/83c16e90024fd18ac23c to your computer and use it in GitHub Desktop.
Disable International Shipping WC Vendors Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WC Vendors Pro - Disable International Shipping on Pro Vendor Dashboard */ | |
/* Code written by Arvid V - Thanks! */ | |
add_filter ('wcv_product_shipping_fee_international', 'ta_bort_internationell_frakt'); //Internaionell frakt, produkt | |
add_filter ('wcv_product_shipping_fee_international_qty', 'ta_bort_internationell_frakt'); //Checkruta 1, produkt | |
add_filter ('wcv_product_shipping_fee_international_disable', 'ta_bort_internationell_frakt'); //Checkruta 2, produkt | |
add_filter ('wcv_product_shipping_fee_international_free', 'ta_bort_internationell_frakt'); //Chckruta 3, produkt | |
add_filter ('wcv_shipping_international_fee', 'ta_bort_internationell_frakt'); //Internaionell frakt, butik | |
add_filter ('wcv_shipping_international_qty', 'ta_bort_internationell_frakt'); //Checkruta 1, butik | |
add_filter ('wcv_shipping_international_free', 'ta_bort_internationell_frakt'); //Checkruta 2, butik | |
add_filter ('wcv_shipping_international_disable', 'ta_bort_internationell_frakt'); //Checkruta 3, butik | |
function ta_bort_internationell_frakt() { | |
$fraktArray = array( | |
'id' => '_shipping_fee_international', | |
//'label' => __( 'International shipping fee', 'wcvendors-pro' ), | |
//'placeholder' => __( 'Change to override store defaults.', 'wcvendors-pro' ), | |
'desc_tip' => 'true', | |
//'description' => __( 'The cost to ship this product outside your country.', 'wcvendors-pro' ), | |
'type' => 'hidden', | |
'value' => $value, | |
'class' => 'wcv-disable-international-input', | |
'wrapper_start' => '<div class="all-50 small-100">', | |
'wrapper_end' => '</div></div>' | |
); | |
return $fraktArray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment