add translations for sell product
This commit is contained in:
@@ -64,6 +64,21 @@ class ProductSaleForm extends Model
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id_product' => Yii::t("frontend/product", "Product"),
|
||||
'count' => Yii::t("frontend/product", "Count"),
|
||||
'id_currency' => Yii::t("frontend/product", "Currency"),
|
||||
'id_account' => Yii::t("frontend/product", "Account"),
|
||||
'id_discount' => Yii::t("frontend/product", "Discount"),
|
||||
'comment' => Yii::t("frontend/product", "Comment"),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
public function validateProduct($attribute,$params){
|
||||
$this->product = Product::findOne($this->id_product);
|
||||
@@ -104,16 +119,6 @@ class ProductSaleForm extends Model
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'verifyCode' => 'Verification Code',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
public function save(){
|
||||
if ( $this->validate() ){
|
||||
|
||||
Reference in New Issue
Block a user