Modify email to show product options

  • Posts: 9
  • Thank you received: 0
12 years 3 months ago #59489

Hi,

I'm trying to add the options to the email templates. I've got this:

[order_product_options] => Array
       (
           [Colour] => Blue
       )

And added a modified template - it's all working, except I can't show the options...
if($item->order_product_options) {
	$options = $item->order_product_options;
	echo " (" . $options->Colour . ")";
}

I also tried:
if($item->order_product_options) {
	echo " (" . $item->order_product_options->Colour . ")";
}


All it displays is an empty bracket. How can I display the options?

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #59558

It's an array, so you need to do like that:
echo " (" . $item->order_product_options . ")";

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

Time to create page: 0.051 seconds
Powered by Kunena Forum