Untitled

mail@pastecode.io avatar
unknown
php
2 months ago
660 B
2
Indexable
Never
$data = [
	'company' => [
		'id' => $id_erp,
		'country' => $country,
		'name' => ($company && $company != '') ? $company : $firstname . ' ' . $lastname,
		'address' => $street . ' ' . $number,
		'postal_code' => $postcode,
		'city' => $city,
		'vat' => substr($tva_number, 0, 15),
		'contact' => $firstname . ' ' . $lastname,
		'email' => $email,
		'phone' => $mobile_phone ?? $phone_fix,
		'lang' => $lang
	],
	'files' => $filesErp ?? null,
	'customizations' => $customs ?? null,
	'id_product' => isset($product) && $product['product_erp_id'] ? $product['product_erp_id'] : 2430, 
	'id_color' => 0,
	'id_size' => 0,
	'amount' => 1,
	'remarks' => $remarks
];
Leave a Comment