WOOCOMMERCE SHIPPING METHOD
# WOOCOMMERCE SHIPPING METHOD
function name_1() {
// Add a new class here
}
add_action( 'woocommerce_shipping_init', 'name_1' );
Check on source site for more update and method
WOOCOMMERCE SHIPPING METHOD
# WOOCOMMERCE SHIPPING METHOD
function name_1() {
// Add a new class here
}
add_action( 'woocommerce_shipping_init', 'name_1' );
Check on source site for more update and method
woocommerce display shipping cost on product page
add_action('woocommerce_single_product_summary', 'display_specific_shipping_class', 15 );
function display_specific_shipping_class(){
global $product;
// HERE define your targeted shipping class name
$defined_shipping_class = "Estimated Delivery in 7-15 days";
$product_shipping_class = $product->get_shipping_class();
// Get the product shipping class term name
$term_name = get_term_by( 'slug', $product_shipping_class, 'product_shipping_class' );
if( $term_name == $defined_shipping_class ){
echo '<p class="product-shipping-class">' . $term_name . '</p>';
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us