• Resolved Syrius00

    (@syrius00)


    Hello everybody

    I am developing a e-commerce website (finessi.lu). In the checkout phase, I customize the order and the nature of the fields using the ‘woocommerce-checkout-fields’ filter. When the page loads, the fields are displayed correctly, but after a few moments the fields are refreshed using ajax to the default state. This happens for both the shipping and billing fields.

    How come this happens?

    Any help would be greatly appreciated.

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Which filter did you use? You’re field changes will be replaced with the country locale fields.

    Thread Starter Syrius00

    (@syrius00)

    Thank you very much for your response! I had an idea that this could be related to the locale, but I was not certain.

    I am hooking to the ‘woocommerce-checkout-fields’ filter right now; how may I modify the locale settings for the addresses?

    Thank you very much for your time and patience 🙂

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter Syrius00

    (@syrius00)

    I used the filters you suggested and I could make my adjustments just fine.

    But the problem persists the moment I try to add the billing_country field. If I add the billing_country to the ‘fields’ array using this snippet:

    $order['billing_country'] = array(
    'type' => 'country',
    'label' => __('Country', 'woocommerce'),
    'placeholder' => __('Country', 'woocommerce'),
    'required' => true,
    'class' => array('form-row', 'form-row-wide', 'address-field', 'update_totals_on_change', 'validate-required', 'woocommerce-validated')
    );

    the fields are once again loaded correctly and then updated via ajax undoing all my modifications.

    If I do not add the following field the checkout form is loaded as I would like it to be.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter Syrius00

    (@syrius00)

    Thank you Mike, I solved my problem.

    I had to add a custom function to the default fields filter and then the functions I used to manage the ordering worked just fine.

    Thank you very much for your time and patience, marking the topic as solved.

    Hello everybody

    I am developing a e-commerce website (cigar.pk). In the checkout phase,
    I customize the order and the nature of the fields using the ‘woocommerce-checkout-fields’
    filter. When the customer complete their order, the order confirmation displayed correctly,
    but after cusmtomer cofirmation the order is sumbit.
    This happens should be after shipping and billing fields completion.

    How come this happens?

    Any help would be greatly appreciated.

    Hello everybody

    I am developing a e-commerce website (cigar.pk). In the checkout phase,

    I want to make this type of checkout form procedures.,,,,,,,,

    I customize the order and the nature of the fields using the ‘woocommerce-checkout-fields’
    filter. When the customer complete their order, the order confirmation displayed correctly,
    but after cusmtomer cofirmation the order is sumbit.
    This happens should be after shipping and billing fields completion.

    How come this happens?

    Any help would be greatly appreciated.

    Hi everybody

    I developing a e-commerce website (cigar.pk). In the checkout,

    I want to make the checkout form nature described below!

    I customize the order and the nature of the fields using the ‘woocommerce-checkout-fields’
    filter. When the customer complete their order, the order confirmation Page displayed correctly,
    and after cusmtomer cofirmation the order is sumbit.
    This happens should be after completion orders.

    How come this happens?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Checkout address fields customization problem’ is closed to new replies.