attempt to fake 4 instead of 2 decimals in price
This commit is contained in:
parent
5e89baf4e9
commit
e83917a2e6
|
|
@ -210,7 +210,7 @@ class Laravel5Helper extends Laravel5
|
|||
|
||||
$I->createAttributeValues($product->id, $configs['attributeValues'] ?? []);
|
||||
|
||||
$I->createInventory($product->id, $configs['productInventory']);
|
||||
$I->createInventory($product->id, $configs['productInventory'] ?? []);
|
||||
|
||||
return $product->refresh();
|
||||
}
|
||||
|
|
@ -227,7 +227,7 @@ class Laravel5Helper extends Laravel5
|
|||
|
||||
$I->createAttributeValues($product->id, $configs['attributeValues'] ?? []);
|
||||
|
||||
$I->createInventory($product->id, $configs['productInventory']);
|
||||
$I->createInventory($product->id, $configs['productInventory'] ?? []);
|
||||
|
||||
return $product->refresh();
|
||||
}
|
||||
|
|
@ -311,7 +311,7 @@ class Laravel5Helper extends Laravel5
|
|||
'special_price_from' => null,
|
||||
'special_price_to' => null,
|
||||
'special_price' => null,
|
||||
'price' => $faker->randomFloat(2, 1, 1000),
|
||||
'price' => $faker->randomFloat(4, 0, 1000),
|
||||
'weight' => '1.00', // necessary for shipping
|
||||
'brand' => AttributeOption::firstWhere('attribute_id', $brand->id)->id,
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue