From 2081122fd0cbf3a495ba1c9aaa56ff3a077684bf Mon Sep 17 00:00:00 2001 From: merdan Date: Sat, 14 May 2022 19:57:59 +0500 Subject: [PATCH] atrr option translation --- packages/Sarga/Shop/src/Repositories/ProductRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index 1780b8162..a13683f08 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -953,7 +953,7 @@ class ProductRepository extends WProductRepository $option = $this->optionRepository->findOneWhere(['attribute_id'=>$attribute_id,'admin_name'=>$value]); if(! $option){ - $option =$this->optionRepository->create(['attribute_id'=>$attribute_id,'admin_name'=>$value]); + $option =$this->optionRepository->create(['attribute_id'=>$attribute_id,'admin_name'=>$value,'sort_order'=>1000]); $this->optionTranslationRepository->create(['attribute_option_id'=>$option->id,'label'=>$value,'locale'=>'tm']); }