|
|
@ -61,11 +61,11 @@ if($stmt->execute()) { |
|
|
|
<span style=\"color: #92704F\">PRODOTTI ORDINATI:</span><br> |
|
|
|
</td></tr>"; |
|
|
|
|
|
|
|
$body .= '<tr style="margin: 0; padding: 10px 20px"> |
|
|
|
<td style="font-weight: bold">Prodotto</td> |
|
|
|
$body .= '<tr> |
|
|
|
<td style="font-weight: bold; padding-left: 20px">Prodotto</td> |
|
|
|
<td style="font-weight: bold">Prezzo</td> |
|
|
|
<td style="font-weight: bold">Quantità</td> |
|
|
|
<td style="font-weight: bold">Totale</td> |
|
|
|
<td style="font-weight: bold; padding-right: 20px">Totale</td> |
|
|
|
</tr>'; |
|
|
|
|
|
|
|
foreach($data->cart as $item) { |
|
|
@ -74,8 +74,8 @@ if($stmt->execute()) { |
|
|
|
$stmtp->execute(); |
|
|
|
$p = $stmtp->fetch(PDO::FETCH_ASSOC); |
|
|
|
|
|
|
|
$body .= '<tr style="margin: 0; padding: 10px 20px"> |
|
|
|
<td style="border-bottom: 1px solid #323232;"><b style="color: #92704F; font-style: italic">'.$p['name'].'</b><br> |
|
|
|
$body .= '<tr> |
|
|
|
<td style="border-bottom: 1px solid #323232; padding-left: 20px"><b style="color: #92704F; font-style: italic">'.$p['name'].'</b><br> |
|
|
|
<span style="font-size: 10px">'.$p['type'].'</span> </td> |
|
|
|
<td style="border-bottom: 1px solid #323232; width: 90px">'.money_format('%.2n', $item->price).' </td> |
|
|
|
<td style="border-bottom: 1px solid #323232; width: 90px">'.$item->qty.' </td> |
|
|
@ -88,7 +88,7 @@ if($stmt->execute()) { |
|
|
|
|
|
|
|
$body .= emailFooter(); |
|
|
|
|
|
|
|
$sent = sendEmail($toEmail, $toName, $subject, $body); |
|
|
|
$sent = sendEmail($toEmail, $toName, $subject, $body, 'ordini'); |
|
|
|
if($sent === true) { |
|
|
|
http_response_code(200); |
|
|
|
echo json_encode( |
|
|
|