I am trying to add a custom text on the checkout form
I have use the following hook but the message actually ended up on top of the product and not after the cart contents And it appeared twice
add_action('woocommerce_review_order_after_cart_contents', 'payable_now'); function payable_now() { echo 'Payable Now'; }
Then I tried the following hook which did not return the message twice but it still added the Payable Now on top of the Product
add_action('woocommerce_review_order_after_cart_contents', 'payable_now'); function payable_now() { if ( ! is_ajax() ) { echo 'Payable Now'; }
}
Any help would be appreciated
https://stackoverflow.com/questions/65418502/woocommerce-review-order-after-cart-contents-custom-text December 23, 2020 at 11:04AM
没有评论:
发表评论