• Resolved Daniel Lerch

    (@daniellerch)


    For the checkout page: I’ve seen other posts here about how to change the “Billing Details” heading (e.g. to “Your Information”). But what I want to do is have it say “Billing Details” if checkout involves a purchase, but “Your Information” if it’s a free checkout. What code can I use to do this? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    It doesn’t look like there is an available filter for that to allow changing it via a snippet, so you would need to override the /woocommerce/templates/checkout/form-billing.php template file and add a conditional statement to check whether the order requires payment — it looks like you can use $order->needs_payment() for that. We have information about overriding template files via a Child theme here:
    https://docs.woocommerce.com/document/template-structure/

    If you need assistance with coding or custom development, we recommend reaching out to a developer from one of the services at https://woocommerce.com/customizations/

    I hope that helps!

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @daniellerch

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change “Billing Details” heading ONLY if $0 purchase’ is closed to new replies.