attempt to fake 4 instead of 2 decimals in price

This commit is contained in:
Herbert Maschke 2020-03-31 14:50:54 +02:00
parent 5e89baf4e9
commit e83917a2e6
1 changed files with 3 additions and 3 deletions

View File

@ -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,
];