| @@ -175,10 +175,9 @@ | ||
| 175 | 175 | $order_item_id = get_post_meta( $expired, '_subscrpt_order_item_id', true ); |
| 176 | 176 | $item_quantity = (int) wc_get_order_item_meta( $order_item_id, '_qty', true ); |
| 177 | 177 | if ( $item_quantity !== $quantity ) { |
| 178 | 178 | WC()->cart->set_quantity( $cart_item_key, $item_quantity ); |
| 179 | - /* translators: %d: the number of items allowed in the cart. */ | |
| 180 | - wc_add_notice( sprintf( _n( 'You can only add %d item to the cart.', 'You can only add %d items to the cart.', $item_quantity, 'subscription' ), $item_quantity ), 'error' ); | |
| 179 | + wc_add_notice( 'You can only add ' . $item_quantity . ' ' . ( $item_quantity > 1 ? 'items' : 'item' ) . ' on cart!', 'error' ); | |
| 181 | 180 | } |
| 182 | 181 | } |
| 183 | 182 | } |
| 184 | 183 | |
| @@ -217,10 +216,9 @@ | ||
| 217 | 216 | $order_item_id = get_post_meta( $expired, '_subscrpt_order_item_id', true ); |
| 218 | 217 | $item_quantity = (int) wc_get_order_item_meta( $order_item_id, '_qty', true ); |
| 219 | 218 | if ( $item_quantity !== $quantity ) { |
| 220 | 219 | WC()->cart->set_quantity( $cart_item_key, $item_quantity ); |
| 221 | - /* translators: %d: the number of items allowed in the cart. */ | |
| 222 | - wc_add_notice( sprintf( _n( 'You can only add %d item to the cart.', 'You can only add %d items to the cart.', $item_quantity, 'subscription' ), $item_quantity ), 'error' ); | |
| 220 | + wc_add_notice( 'You can only add ' . $item_quantity . ' ' . ( $item_quantity > 1 ? 'items' : 'item' ) . ' on cart!', 'error' ); | |
| 223 | 221 | } |
| 224 | 222 | } |
| 225 | 223 | } |
| 226 | 224 | |