Post by skip » Tue Feb 20, 2018 8:26 pm

Hi,
In which file is email variables 'price' and 'total' for 3.0.2.0 (image in attachement)
For 2.3.0.2 version is in catalog/model/checkout/order.php but something is changed for 3.0.x.
Thanks

Attachments

tax1.jpg

email view - tax1.jpg (148.41 KiB) Viewed 635 times


Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by Wid » Tue Feb 20, 2018 9:05 pm

it's in
catalog/controller/mail/order.php
$data['products'][] = array(
'name' => $order_product['name'],
'model' => $order_product['model'],
'option' => $option_data,
'quantity' => $order_product['quantity'],
'price' => $this->currency->format($order_product['price'] + ($this->config->get('config_tax') ? $order_product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
'total' => $this->currency->format($order_product['total'] + ($this->config->get('config_tax') ? ($order_product['tax'] * $order_product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value'])
);
and data is comming from
public function getOrderProducts($order_id)
which is in catalog/model/checkout/order.php

take a visit to My Modules !


Wid
New member

Posts

Joined
Fri Feb 02, 2018 9:19 pm
Location - Athens/Greece

Post by skip » Tue Feb 20, 2018 10:18 pm

@wid Thank You very much, solved !

Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm
Who is online

Users browsing this forum: Axlagusti, niagato and 565 guests