• Resolved fabio323ti

    (@fabio323ti)


    Someone know if its possible to edit Main template of Woocommerce billing/shipping addresses?
    User have custom fields and i wish to know if its possible to edit the template so everytime billing or shipping addresses is displayd contains users custom field.

    This is to avoid to edit single php files for each functions, for ex, email template, order ect ect..
    i mean one for all.

    hope its clear.
    Thanks for support

    • This topic was modified 3 years ago by fabio323ti.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You can edit templates and put your edited copy in your child theme. That’s a method to be avoided if possible because your templates may become out-dated by updates to WooCommerce, so you make yourself an ongoing burden.

    The better way is to use filters. The checkout fields are passed through filters where you can change or add fields. This page explains how:
    https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/#
    Your custom code goes in functions.php for your child theme. Some PHP skills will be needed.

    For an easier method, have a look for checkout field editor plugins at www.ads-software.com/plugins, woocommerce.com and codecanyon.net. Changing checkout fields is a common requirement and I would expect there to be a plugin which is suitable for what you have described.

    Thread Starter fabio323ti

    (@fabio323ti)

    Thanks Lorro, i already know about how copy template to theme child , but as you know exsist many template and many files to mod
    im also using a checkout editor field but email and thankyou page doesn’t show extra custom field .. very strange, i can edit them only in checkout page.
    After the order is submitted, email and thankyou page have missing of them..

    so.. i understand what you mean, but not know if exsist a hook or function to add these field on all address template.. really not know.

    the plugin im using for it is “woocommerce checkout field editor (from woocommerce)”

    thanks

    p.s. the link you’re linked before have error 404.

    The link is working now. The 404 must have been temporary. The page details the filters that you need.

    MayKato

    (@maykato)

    Hi @fabio323ti

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

    Thread Starter fabio323ti

    (@fabio323ti)

    Hi maykato, no i don’t solved yet .

    Mirko P.

    (@rainfallnixfig)

    Hi @fabio323ti

    I understand that your email notifications and the order received page do not show those extra fields that you have on your checkout page.

    Since you’re using Checkout Field Editor premium extension you have access to our support team at WooCommerce.com.

    Please contact us at WooCommerce.com > My Account > Support.

    You may need to log into your WooCommerce.com account before you can access that page.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Field on All addresses’ is closed to new replies.