Ask Billing / Shipping Field
Updated on September 27, 2017 in Plugin Ongkos Kirim
1 on September 27, 2017

Setelah checkout barang, field/form jadi berantakan contoh:

Country :
Address1 :
Address2 :
Town/City :
Province :
Postcode/Zip :
District :

Custom fieldnya yg diedit di mana klo boleh tau? dari woocommerce nya / plugin ini thx.
nb:woocommerce v.2.6.14

kalo memang bisa rencana minggu depan mau beli ini plugin

  • Liked by
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

0 on September 27, 2017

/* WooCommerce < 3.0.4 */
add_filter(‘woocommerce_checkout_fields’,’reorder_fields’);
function reorder_fields($fields) {
$billing_field_order = array(
‘billing_first_name’,
‘billing_last_name’,
‘billing_address_1’,
‘billing_email’,
‘billing_phone’,
‘billing_country’,
‘billing_state’,
‘billing_city’,
‘billing_district’,
‘billing_postcode’
);
$shipping_field_order = array(
‘shipping_first_name’,
‘shipping_last_name’,
‘shipping_address_1’,
‘shipping_email’,
‘shipping_phone’,
‘shipping_country’,
‘shipping_state’,
‘shipping_city’,
‘shipping_district’,
‘shipping_postcode’
);
$ordered_billing_fields = array();
$ordered_shipping_fields = array();
foreach ($billing_field_order as $field) {
$ordered_billing_fields[$field] = $fields[‘billing’][$field];
}
foreach ($shipping_field_order as $field) {
$ordered_shipping_fields[$field] = $fields[‘shipping’][$field];
}
$fields[‘billing’] = $ordered_billing_fields;
$fields[‘shipping’] = $ordered_shipping_fields;

return $fields;
}

sudah add hook di function.php urutannya tinggal field postcode masih nyelip di bawah field provinsi..

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off
Sorry, our support is not available at this time. We will reply at the next working hour.

By using the forum you are agree with tonjoo studio license agreement

Message :
Loading more replies
You are not logged in

Please login here or simply sign up here .