Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // definir metodo de entrega
- add_filter( 'woocommerce_shipping_rate_method_id', 'custom_rate_method_id', 80, 2 );
- function custom_rate_method_id( $rate_id, $rate ) {
- if ( 'wc_table_shipping' === $rate_id) {
- $rate_id = 'wcts_' . $rate->get_instance_id();
- }
- return $rate_id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement