- Posts: 27
- Thank you received: 2
Add custom fields to shopping cart and notification emails
2 years 7 months ago #359309
by omnitron
Replied by omnitron on topic Add custom fields to shopping cart and notification emails
Hi,
I removed them because when I want to do the checkout, I got this error: 0 - syntax error, unexpected single-quoted string " "
Thanks.
I removed them because when I want to do the checkout, I got this error: 0 - syntax error, unexpected single-quoted string " "
Thanks.
Please Log in or Create an account to join the conversation.
2 years 7 months ago #359311
by nicolas
Replied by nicolas on topic Add custom fields to shopping cart and notification emails
Hi,
You must have made a mistake. Please try again. If you still get the error, please provide a screenshot of the code you have added.
You must have made a mistake. Please try again. If you still get the error, please provide a screenshot of the code you have added.
Please Log in or Create an account to join the conversation.
2 years 7 months ago #359355
by omnitron
Replied by omnitron on topic Add custom fields to shopping cart and notification emails
Hi,
This is the code I used:
<?php $mail->subject = 'Omnitron Quote List Requested from: ' . $data->cart->billing_address->company ' ' . $data->cart->billing_address->address_state ' ' . $data->cart->billing_address->address_country; ?>
Thanks.
This is the code I used:
<?php $mail->subject = 'Omnitron Quote List Requested from: ' . $data->cart->billing_address->company ' ' . $data->cart->billing_address->address_state ' ' . $data->cart->billing_address->address_country; ?>
Thanks.
Please Log in or Create an account to join the conversation.
2 years 7 months ago #359356
by nicolas
Replied by nicolas on topic Add custom fields to shopping cart and notification emails
Hi,
You're missing some dots.
It should be:
You're missing some dots.
It should be:
Code:
<?php $mail->subject = 'Omnitron Quote List Requested from: ' . $data->cart->billing_address->company . ' ' . $data->cart->billing_address->address_state . ' ' . $data->cart->billing_address->address_country; ?>
The following user(s) said Thank You: omnitron
Please Log in or Create an account to join the conversation.
Time to create page: 0.205 seconds