• Currently on our woocommerce site we have used the “woocommerce_proceed_to_checkout” hook to display message to customers using the action..

    add_action( 'woocommerce_proceed_to_checkout', 'order_notice_for_shipping' );
    
    function order_notice_for_shipping() {
    echo '<p class="shipping-info-text">You have until 2pm Central to place your order for same day shipping.</p>';
    }

    Now this is static, and what I really want is for it to say “You have 4 hours 41 minutes 32 seconds to place your order with same day shipping.</p>’; }

    How do I combine these to work together to accomplish this?

  • The topic ‘How to use with other hooks’ is closed to new replies.