Answer the question
In order to leave comments, you need to log in
How to save custom fields in Woocommerce account?
Using the Advanced Custom Fields plugin, I created a small questionnaire and placed it in my Woocommerce account, on the my-account endpoint page. The dashboard.php file is responsible for this page.
But I need all the data when filling out this form to be saved and displayed in the same place. Tell me how can this be done?
Maybe it's possible to remake the button from the edit-account endpoint page?
<p class="adress-button">
<?php wp_nonce_field( 'save_account_details', 'save-account-details-nonce' ); ?>
<button type="submit" class="woocommerce-Button button" name="save_account_details" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ); ?>"><?php esc_html_e( 'Save changes', 'woocommerce' ); ?></button>
<input type="hidden" name="action" value="save_account_details" />
</p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question