Add custom fields to shopping cart and notification emails

  • Posts: 15
  • Thank you received: 0
  • Hikashop Business
2 months 1 week ago #359309

Hi,

I removed them because when I want to do the checkout, I got this error: 0 - syntax error, unexpected single-quoted string " "

Thanks.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81597
  • Thank you received: 13081
  • MODERATOR
2 months 1 week ago #359311

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.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
  • Hikashop Business
2 months 6 days ago #359355

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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81597
  • Thank you received: 13081
  • MODERATOR
2 months 6 days ago #359356

Hi,

You're missing some dots.
It should be:

<?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.065 seconds
Powered by Kunena Forum