@@ 463-473 (lines=11) @@ | ||
460 | ||
461 | $contents = array(); |
|
462 | ||
463 | foreach ($order->products as $product) { |
|
464 | $product_name = $product['name']; |
|
465 | ||
466 | if (isset($product['attributes'])) { |
|
467 | foreach ($product['attributes'] as $att) { |
|
468 | $product_name .= '; ' . $att['option'] . '=' . $att['value']; |
|
469 | } |
|
470 | } |
|
471 | ||
472 | $contents[] = str_replace(array(':', "\n", "\r", '&'), '', $product_name) . ':' . $product['qty'] . ':' . $this->format_raw($product['final_price']) . ':' . $this->format_raw(($product['tax'] / 100) * $product['final_price']) . ':' . $this->format_raw((($product['tax'] / 100) * $product['final_price']) + $product['final_price']) . ':' . $this->format_raw(((($product['tax'] / 100) * $product['final_price']) + $product['final_price']) * $product['qty']); |
|
473 | } |
|
474 | ||
475 | foreach ($order_totals as $ot) { |
|
476 | $contents[] = str_replace(array(':', "\n", "\r", '&'), '', strip_tags($ot['title'])) . ':---:---:---:---:' . $this->format_raw($ot['value']); |
@@ 180-190 (lines=11) @@ | ||
177 | ||
178 | $contents = array(); |
|
179 | ||
180 | foreach ($order->products as $product) { |
|
181 | $product_name = $product['name']; |
|
182 | ||
183 | if (isset($product['attributes'])) { |
|
184 | foreach ($product['attributes'] as $att) { |
|
185 | $product_name .= '; ' . $att['option'] . '=' . $att['value']; |
|
186 | } |
|
187 | } |
|
188 | ||
189 | $contents[] = str_replace(array(':', "\n", "\r", '&'), '', $product_name) . ':' . $product['qty'] . ':' . $this->format_raw($product['final_price']) . ':' . $this->format_raw(($product['tax'] / 100) * $product['final_price']) . ':' . $this->format_raw((($product['tax'] / 100) * $product['final_price']) + $product['final_price']) . ':' . $this->format_raw(((($product['tax'] / 100) * $product['final_price']) + $product['final_price']) * $product['qty']); |
|
190 | } |
|
191 | ||
192 | foreach ($this->getOrderTotalsSummary() as $ot) { |
|
193 | $contents[] = str_replace(array(':', "\n", "\r", '&'), '', strip_tags($ot['title'])) . ':---:---:---:---:' . $this->format_raw($ot['value']); |
@@ 198-208 (lines=11) @@ | ||
195 | ||
196 | $contents = array(); |
|
197 | ||
198 | foreach ($order->products as $product) { |
|
199 | $product_name = $product['name']; |
|
200 | ||
201 | if (isset($product['attributes'])) { |
|
202 | foreach ($product['attributes'] as $att) { |
|
203 | $product_name .= '; ' . $att['option'] . '=' . $att['value']; |
|
204 | } |
|
205 | } |
|
206 | ||
207 | $contents[] = str_replace(array(':', "\n", "\r", '&'), '', $product_name) . ':' . $product['qty'] . ':' . $this->format_raw($product['final_price']) . ':' . $this->format_raw(($product['tax'] / 100) * $product['final_price']) . ':' . $this->format_raw((($product['tax'] / 100) * $product['final_price']) + $product['final_price']) . ':' . $this->format_raw(((($product['tax'] / 100) * $product['final_price']) + $product['final_price']) * $product['qty']); |
|
208 | } |
|
209 | ||
210 | foreach ($order_totals as $ot) { |
|
211 | $contents[] = str_replace(array(':', "\n", "\r", '&'), '', strip_tags($ot['title'])) . ':---:---:---:---:' . $this->format_raw($ot['value']); |