if($recipient) {
$message->to($recipient);
}
- /*if (null === $page->form_destination || empty($page->form_destination)) {
+ if (null === $page->form_destination || empty($page->form_destination)) {
foreach (Settings::getData()->form_default_recipients as $recipient) {
$message->to($recipient);
}
foreach ($page->form_destination as $item) {
$message->to($item);
}
- }*/
+ }
$subject = '';
if ($page->form_prefix) {
$subject = '[';
$productsMessage[] = 'Référence : ' . $cartData_[$index]['ref'] . "\n";
$productsMessage[$indexMessage] .= 'Qté : ' . $_data . "\n";
- foreach ($optionsPrices[1] as $v) {
- $productsMessage[$indexMessage] .= $v . "\n";
- }
-
$labelPrice = 'Prix unitaire HT : ';
if($optionsPrices) {
+ foreach ($optionsPrices[1] as $v) {
+ $productsMessage[$indexMessage] .= $v . "\n";
+ }
$totalOptionPrice = Product::totalOptionPrice($optionsPrices[0],$cartData_[$index]['ref']);
$data['products'][$index]['price'] = floatval($basicSellingPrice + $totalOptionPrice);
$labelPrice = 'Prix unitaire HT (avec options) : ';