ĐĂNG TIN
logo
Online:
Visits: 1,685,749,294
Stories: 8,383,743
Profile image
0
0
Tác giả: fcwordpress
Trang tin cá nhân | Bài đã đăng
Lượt xem

Hiện tại:
1h trước: 1
24h trước: 1
Tổng số: 57
Hướng dẫn custom woocommerce – phần 10
Monday, February 29, 2016 8:54
% of readers think this story is Fact. Add your two cents.


Mời anh chị xem video:

Code liên quan tới video:(thêm phương thức chuyển fax nhanh trong phần chi phí giao nhận)

add_action( 'woocommerce_flat_rate_shipping_add_rate', 'add_another_custom_flat_rate', 10, 2 ); function add_another_custom_flat_rate( $method, $rate ) { $new_rate = $rate; $new_rate['id'] .= ':' . 'chuyen_fax_thuong'; // Append a custom ID $new_rate['label'] = 'Chuyển fax thường'; // Rename to 'Rushed Shipping' $new_rate['cost'] = 4000; // Add $2 to the cost // Add it to WC $method->add_rate( $new_rate ); }

Tin nổi bật trong ngày
Tin mới nhất

Register

Newsletter

Email this story
If you really want to disable all recommended stories, click on OK button. After that, you will be redirect to your options page.