简体   繁体   中英

Add a custom row in Woocommerce edit order pages

I am looking to insert a custom string in the order page but only for certain products. I have a subscription with a sign-up fee which is payable immediately and then a recurring monthly payment which the user can choose when to start.

I would like to add a custom string for all recurring products with a sign up fee on the "your order page. (if possible otherwise per product - one of the products's product Id '11349')

Currently I feel it is going to be confusing for the clients. By adding a Payable now string the client will know exactly what they need to pay now and what will be reccuring See image on link https://fundance.co.za/order-page-string/ as to where I would like to add my custom string.

Any help would be appreciated

"woocommerce_review_order_before_cart_contents" refer this hook to add custom string before cart content of order page.

"woocommerce_review_order_after_cart_contents" refer this hook to add custom string after cart content of order page.

"woocommerce_checkout_cart_item_quantity" Using this filter we can update quantity in order page and we can append string also, Kindly refer the hook for custom string in you mentioned area in order page.

For More checkout hook for reference., https://www.wpdesk.net/blog/woocommerce-checkout-hooks/#lightbox/0/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM