foreach ($specifications as $product => $specification) {
$data[$product]['json'] = json_encode($specification);
}
-
+
$product = Product::find($id);
if($product) {
$changes = $this->storeAndReturnChanges($data);
'label' => 'Adresse',
'type' => 'BunchOfFieldsMultiple',
'bunch' => 'App\SubForms\Address',
- 'column' => true,
+ 'column' => false,
'tab' => 'Informations client',
'edit_label' => 'Éditer « %city »'
]);
$this->addField([
'name' => 'remember_token',
'label' => 'remember_token',
- 'type' => 'Text',
- 'column' => true,
- 'tab' => 'Informations client'
+ 'type' => 'Hidden',
+ 'column' => false,
]);
}
$discount_array = array_combine($discount_array_save_keys,$discount_array);
+ dump($categoryProduct);
+
+ if(!in_array($categoryProduct, $discount_array)) {
+ $categoryProduct = 'A';
+ }
+
if($categoryProduct && $categoryClient) {
return $discount_array[$categoryProduct][$categoryClient];
}