Usunięto Od Nieznany 17 lis 2020 03:29 Hi tim could you add a Variable for the FIRST comment? Eg. the comment thats made with the order first time. I would love to include that in the supplier ordering mail on demand. Or any hint? Alex
tim Founder Od Sweden Użytkownik od maj 2013 tim 18 lis 2020 19:41 You mean like this? $first_comment = array_shift(array_values($order->data['comments'])); or $first_comment = array_values($order->data['comments'])[0]; var_dump($first_comment);
Usunięto Od Nieznany 19 lis 2020 10:52 Not really working straigt forward... $first_comment = var_dump(array_values($this->data['comments'])[0]); $first_comment is empty- Unsing it at supplier_order_forwarding.xml $first_comment = var_dump(array_values($this->data['comments'])[0]); '%customer_comments' => $first_comment,
tim Founder Od Sweden Użytkownik od maj 2013 tim 19 lis 2020 14:57 Remove var_dump. That's only for your debug.
tim Founder Od Sweden Użytkownik od maj 2013 tim 19 lis 2020 18:07 So it's $order->data['comments'] outside the order object and $this->data['comments'] inside.
Usunięto Od Nieznany 20 lis 2020 10:46 Both objects dont contain any data inside supplier_order_forwarding.xml... Anyway. For now im happy that everything with priority works, will investigate that a bit later :)