-
AuthorPosts
-
September 16, 2015 at 9:56 am #390724
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
RichSeptember 16, 2015 at 10:46 am #390792Hey 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.
September 16, 2015 at 11:45 am #392919The checkout fields pre-populate client data.. I cant have this as this changes every time the client checks out (Big cooperation)
September 16, 2015 at 11:46 am #392923This reply has been marked as private.September 16, 2015 at 1:53 pm #393077Hi 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!
September 16, 2015 at 2:15 pm #393103Here is the problem..
I did that already
And its not working 🙁
September 16, 2015 at 4:38 pm #393240Hey 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!
-
AuthorPosts