Post by bogdangergov1 » Mon May 29, 2017 5:55 pm

opencart 1.5.6
http://moto-akumulatori.com/opencart/in ... duct_id=55

In the category products are VAT included
I want the product to be without VAT added on the Invoice. Only in Total to have the price with VAT

see attachment

Can this be corrected?
(I searched for a Extension but did not find one)

Attachments

Untitled-2.gif

Untitled-2.gif (21.65 KiB) Viewed 3626 times


Newbie

Posts

Joined
Mon May 29, 2017 5:48 pm

Post by chrisranjana.com » Mon May 29, 2017 8:07 pm

bogdangergov1 wrote:
Mon May 29, 2017 5:55 pm
...
I want the product to be without VAT added on the Invoice. Only in Total to have the price with VAT
...
In admin panel If you want to show product prices without tax in the ORDER detail page only then

in file admin/controller/sale/order.php

change lines 1670, 1671 from

Code: Select all

'price'    		   => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
					'total'    		   => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']),
					

to

Code: Select all

'price'    		   => $this->currency->format($product['price'] , $order_info['currency_code'], $order_info['currency_value']),
					'total'    		   => $this->currency->format($product['total'] , $order_info['currency_code'], $order_info['currency_value'])
,

Chris, Opencart Developers and Programmers,
www.chrisranjana.com


User avatar
Active Member

Posts

Joined
Thu Feb 26, 2009 2:23 am
Location - chennai, India

Post by bogdangergov1 » Mon May 29, 2017 8:44 pm

thanks, perfect, ....in Admin panel OK.

and in Invoices template how to do it ?!

Newbie

Posts

Joined
Mon May 29, 2017 5:48 pm

Post by chrisranjana.com » Mon May 29, 2017 11:13 pm

bogdangergov1 wrote:
Mon May 29, 2017 8:44 pm
...
and in Invoices template how to do it ?!
The same changes in lines 335,336 to the file

catalog/controller/account/order.php would change the user account -> order information view

Chris, Opencart Developers and Programmers,
www.chrisranjana.com


User avatar
Active Member

Posts

Joined
Thu Feb 26, 2009 2:23 am
Location - chennai, India

Post by zediks » Fri Sep 29, 2017 8:24 am

thx that helped to edit the admin and the customers side.
But do you have any idea how to affect the invoice template?
Can't see anything on the order_invoice.tpl side

Newbie

Posts

Joined
Wed Jan 13, 2016 8:17 pm
Who is online

Users browsing this forum: No registered users and 14 guests