0

I have a template override of the woocommerce checkout page in my child theme. However, I only want to override on specific conditions. Is there an easy way to do that?

Let's say I only want to override the template (mytheme/woocommerce/checkout/form-checkout.php) if the user is logged in, so something like this:

if (is_user_logged_in()_ {
// OVERRIDE
}
else {
// DO NOT OVERRIDE
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.