Page 1 of 1

Add 'Location' to order email

Posted: Thu Jun 21, 2018 12:06 am
by slenhartoc
All,

I want to use the Location field on products, and have it included in the email that gets sent out after an order is made. Any suggestions on how to do this? It looks like location is available in the $products array from cart->getProducts() ??

Re: Add 'Location' to order email

Posted: Thu Jun 21, 2018 11:00 pm
by straightlight
It looks like location is available in the $products array from cart->getProducts() ??
If it is, then it is based on a contribution, not from the core. The location is NOT included in the $this->cart->getProducts() method from the system/library/cart/cart.php file.

In addition, no OC version has been posted. As a new forum user, please read the forum rules before creating a new topic.