Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #390724

    Richard R
    Participant

    Hello,

    I have already edited the woocommerce file that would pre-populate the information in the checkout field and it is still doing it. My last option would be your theme that is doing it.

    Please provide me the ability to stop pulling data from the users file and pre-populating the checkout fields

    Thank you
    Rich

    #390792

    Rupok
    Member

    Hey Rich,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #392919

    Richard R
    Participant

    View post on imgur.com

    The checkout fields pre-populate client data.. I cant have this as this changes every time the client checks out (Big cooperation)

    #392923

    Richard R
    Participant
    This reply has been marked as private.
    #393077

    Zeshan
    Member

    Hi Richard,

    Thank you for clarification!

    As this is a custom development, that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

    If you want to stop auto-populating fields, you may follow this article: https://www.remicorson.com/how-to-not-pre-populate-woocommerce-checkout-fields/

    The file form-shipping.php is located in /woocommerce/checkout/ directory in your parent X theme. You can copy it to the same level in your child theme, so it will be /x-child/woocommerce/checkout/form-shipping.php. Then you can replace all instances of following line as per suggested in the article:

    <?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?>
    

    With following:

    <?php woocommerce_form_field( $key, $field ); ?>
    

    Thanks!

    #393103

    Richard R
    Participant

    Here is the problem..

    I did that already

    And its not working 🙁

    #393240

    Nabeel A
    Moderator

    Hey Richard,

    In that case you’ll need to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!