Home Forums General Issues Hide/show custom field based on order status


Hide/show custom field based on order status

  • Using Woocommerce I have added a custom field to the customers order page to allow them to download a custom doc. After I add the info into their order I would like the field to appear automatically after they have completed payment. This code has been added to the order-details.php page:

    echo do_shortcode($shortcode); 

    Is there something in ACF I can use or do I need woocommerce_payment_complete_order_status? Any examples would be appreciated. Thanks

  • HI @steele

    Thank you for the question.

    ACF only allows you to make use of the predefined set of conditionals to choose where the fields will be displayed. If this is not an option you could have a look at the Woocommerce site for the right hook you can edit to make this happen.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.