Change webkul product folder
This commit is contained in:
parent
4a4c65faef
commit
b2389191f1
|
|
@ -223,7 +223,7 @@ class ProductFlat
|
|||
'locale' => $locale->code,
|
||||
]);
|
||||
}
|
||||
$productFlat->brand_id = $product->brand_id;
|
||||
// $productFlat->brand_id = $product->brand_id;
|
||||
foreach ($familyAttributes[$product->attribute_family->id] as $attribute) {
|
||||
if ($parentProduct && ! in_array($attribute->code, array_merge($superAttributes[$parentProduct->id], $this->fillableAttributeCodes))) {
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class Product extends Model implements ProductContract
|
|||
'attribute_family_id',
|
||||
'sku',
|
||||
'parent_id',
|
||||
'brand_id'
|
||||
// 'brand_id'
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -51,8 +51,11 @@ class ProductMediaRepository extends Repository
|
|||
$previousIds = $this->resolveFileTypeQueryBuilder($product, $uploadFileType)->pluck('id');
|
||||
|
||||
if (isset($data[$uploadFileType]['files']) && $data[$uploadFileType]['files']) {
|
||||
|
||||
|
||||
foreach ($data[$uploadFileType]['files'] as $indexOrModelId => $file) {
|
||||
if ($file instanceof UploadedFile) {
|
||||
\Log::info("messageq: ".$file);
|
||||
$this->create([
|
||||
'type' => $uploadFileType,
|
||||
'path' => $file->store($this->getProductDirectory($product)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue