$form_state->setError($pane_form,$this->t('Curently you have @totalUsablePoints point(s) in your account. You can utilize points after you reached to @thresholdValue points.',['@totalUsablePoints'=>$totalUsablePoints,'@thresholdValue'=>$thresholdValue]));
$form_state->setError($pane_form,$this->t('Curently you have @totalUsablePoints point(s) in your account. You can utilize points after you reached to @thresholdValue points.',
[
'@totalUsablePoints'=>$totalUsablePoints,
'@thresholdValue'=>$thresholdValue,
]));
}
if($this->order->hasItems()){
@@ -214,7 +243,11 @@ class CommerceUserPoints extends CheckoutPaneBase implements CheckoutPaneInterfa
$form_state->setError($pane_form,$this->t('Curently you have @totalUsablePoints point(s) in your account. You can utilize points after you reached to @thresholdValue points.',['@totalUsablePoints'=>$totalUsablePoints,'@thresholdValue'=>$thresholdValue]));
$form_state->setError($pane_form,$this->t('Curently you have @totalUsablePoints point(s) in your account. You can utilize points after you reached to @thresholdValue points.',