Skip to main content

Display subtotal without VAT

More
12 years 5 months ago #152265 by Nicole Lewin
Hello,
I have the problem that the subtotal in the bill contains the VAT.
How I can correct this failure?

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #152290 by Xavier
Replied by Xavier on topic Display subtotal without VAT
Hi,

You have to edit hte view "order / show" via the menu display > views and replace:
Code:
<?php if($this->config->get('price_with_tax')){ echo $this->currencyHelper->format($this->order->order_subtotal,$this->order->order_currency_id); }else{ echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); } ?>
By:
Code:
echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id);

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #152402 by Nicole Lewin
Hi,

in which file I must change the code?

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #152406 by Xavier
Replied by Xavier on topic Display subtotal without VAT
Hi,

You have to edit hte view "order / show" via the menu display > views and replace:

hikashop.com/support/support/documentati...ize-the-display.html

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183719 by dashmalta
Hi Xavier,

I am doing exactly as you suggested in this thread however whatever I do, it does not seem to effect the subtotal.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183761 by Xavier
Replied by Xavier on topic Display subtotal without VAT
Hi,

Are you sure that you are editing the view in the correct template ?

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183762 by dashmalta
Yes of course...I actually selected my template from the dropdown menu so not to have mistakes etc ;)

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183767 by Xavier
Replied by Xavier on topic Display subtotal without VAT
Where exactly do you want to display the subtotal without VAT ?

Because for the invoice you can have to edit the view "order / invoice" of the backend template too.
And replace:
Code:
<?php if($this->config->get('price_with_tax')){ echo $this->currencyHelper->format($this->order->order_subtotal,$this->order->order_currency_id); }else{ echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); } ?>
By:
Code:
<?php echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); ?>
The following user(s) said Thank You: dashmalta

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183770 by dashmalta
I will check that again.

I want to display the subtotal without VAT during the checkout process. In my opinion it does not make much sense to put sub total with VAT, the VAT under neath it and finally the total amount (same exact amount as the subtotal) :)

Thanks

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183773 by Xavier
Replied by Xavier on topic Display subtotal without VAT
So if it's during the checkout process, you have to edit the view "checkout / cart" of the frontend template.
And replace:
Code:
$this->row = $this->total; echo $this->loadTemplate();
By:
Code:
$origTaxConfig = $this->params->get('price_with_tax'); $this->params->set('price_with_tax','0'); $this->row = $this->total; echo $this->loadTemplate(); $this->params->set('price_with_tax',$origTaxConfig);
The following user(s) said Thank You: dashmalta

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183846 by dashmalta
Works perfectly!! So the change in code further up in the thread is to change the subtotal without VAT in the invoice that is sent to the client, right? :)

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183854 by nicolas
No.
The change on this message www.hikashop.com/forum/customers/867456-...hout-vat.html#152290 is to change that on the invoice page of the frontend (that the customer can access via his orders history page).
The change on this message www.hikashop.com/forum/customers/867456-...hout-vat.html#183767 is to change that on the invoice page that can be printed in the backend of the website.
The following user(s) said Thank You: dashmalta

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago - 11 years 1 month ago #212331 by sps2i
Replied by sps2i on topic Display subtotal without VAT
Cette solution ne fonctionne pas chez moi. Par contre si je modifie le fichier invoice.php du plugin "AttachPdf", ça marche :cheer:
Last edit: 11 years 1 month ago by sps2i. Reason: Solution found

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #212333 by nicolas
Merci de ne pas créer plusieurs message pour la même question:
www.hikashop.com/forum/orders-management...-sur-la-facture.html

Et de poster en anglais sur le forum anglais.

Please Log in or Create an account to join the conversation.

Time to create page: 0.415 seconds
Powered by Kunena Forum