Merged in feature/MAW-855-import-code-into-aws (pull request #2)
code import from pantheon * code import from pantheon
This commit is contained in:
@@ -1022,7 +1022,7 @@ class WC_Coupon extends WC_Legacy_Coupon {
|
||||
case self::E_WC_COUPON_USAGE_LIMIT_COUPON_STUCK:
|
||||
if ( is_user_logged_in() && wc_get_page_id( 'myaccount' ) > 0 ) {
|
||||
/* translators: %s: myaccount page link. */
|
||||
$err = sprintf( __( 'Coupon usage limit has been reached. If you were using this coupon just now but order was not complete, you can retry or cancel the order by going to the <a href="%s">my account page</a>.', 'woocommerce' ), wc_get_endpoint_url( 'orders', '', wc_get_page_permalink( 'myaccount' ) ) );
|
||||
$err = sprintf( __( 'Coupon usage limit has been reached. If you were using this coupon just now but your order was not complete, you can retry or cancel the order by going to the <a href="%s">my account page</a>.', 'woocommerce' ), wc_get_endpoint_url( 'orders', '', wc_get_page_permalink( 'myaccount' ) ) );
|
||||
} else {
|
||||
$err = $this->get_coupon_error( self::E_WC_COUPON_USAGE_LIMIT_REACHED );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user