Home > Mobile >  check if the payment is for renewing the order in woocommerce subscriptions
check if the payment is for renewing the order in woocommerce subscriptions

Time:08-19

i use the woocommerce subscriptions plugin

when the user wants to renew their subscription, a text will be displayed on the checkout page, display the text only for the user who is renewing the subscription, do not display it for the user who registers the order for the first time

thank you for taking the time to answer my question

CodePudding user response:

if ( wcs_get_order_type_cart_items( 'renewal' ) ) {
 // write your text here
}
  • Related