don't display taxes in invoice and shipping invoic

  • Posts: 92
  • Thank you received: 0
11 years 1 month ago #125451

-- HikaShop version -- : 2.1.3
-- Joomla version -- : 2.5
-- PHP version -- : 5.3.13
Hi friends,
in my shop unit prices, prices, subtotal and shipping display without taxes (and this is what I want) in cart and checkout. But invoices and shipping invoices display all prices with taxes.
I think I have to change "invoice" view in administrator template, but I have no idea of php and I'd like you say to me what I have to change to display invoice as cart
thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 month ago #125500

Hi,

Normally there is nothing to do if you have the latest version as the invoice automatically uses the "show taxed prices" option of the configuration to decide whether the prices should be displayed with or without taxes.
I would thus recommend to try an upgrade.
Please make sure you do a backup before updating (or even better test on a copy of your website) as you are several versions behind and might get into trouble updating.
You can also just update the file administrator/components/com_hikashop/views/order/tmpl/invoice.php with the file back/views/order/tmpl/invoice.php of the install package of our website in order to get these modifications without everything else.

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

  • Posts: 92
  • Thank you received: 0
11 years 1 month ago #125646

Hi again,
I updated without any problem to version 2.2.1 (after to do a backup).
On screen prices are all right. The problem is when I print invoice, all prices shown are only with taxes.
In my configuration products display both prices (without and with taxes), cart and checkout display only prices without taxes for unit price, total price, subtotal and shipping, and final total with taxes.
I want to print invoice with both prices (without and with taxes) or just without taxes (as cart and chekout)
What can I do?
thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 month ago #125648

If you edited the "invoice" file via the menu Display>Views please remove your customization and it should be better.

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

  • Posts: 92
  • Thank you received: 0
11 years 1 month ago #125654

I did not edit invoice view

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 month ago #125704

Then I don't know. Please provide a backend access so that we can see that.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #126190

Hi,

I just checked the code of the view invoice, and there is not the option to display the price with and without taxes.
So it will require the edition of the code. Thanks to edit the view "order / invoice" via the menu Display > Views.

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

  • Posts: 92
  • Thank you received: 0
11 years 1 month ago #126196

Hi,
I don't understand so well what you want to say with "Thanks to edit the view "order / invoice" via the menu Display > Views"
I did not edit this view at all.
About the problem: what have I to edit in the code to display prices as in checkout?
thanks for your help

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #126225

Hi,

Like Xavier said, there is no option to display the prices with and without taxes in the same time in the invoice.
If you want to display both, it will just display with but not without.
So if you want to display both, you have to customize the invoice in order to display both.

If you just want to display it with OR without, the invoice is working good, using the option in the configuration.

Or we have a little problem of comprehension.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 92
  • Thank you received: 0
11 years 1 month ago #126305

Hi,
I said to you: "I want to print invoice with both prices (without and with taxes) or just without taxes (as cart and chekout)"
If is not possible to display both prices, can I display prices without taxes only in invoice, but whitout changing the option in configuration (I'd like to continue displaying both prices in products)?
Many thanks and sorry for extra work

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #126329

Hi,

You can add the following code at the top of the file:

<?php
$priceWithTax = $this->config->get('price_with_tax','0');
$this->config->set('price_with_tax','0');
?>
And this one at the end:
$this->config->set('price_with_tax',$priceWithTax);

The following user(s) said Thank You: pymgym

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

  • Posts: 92
  • Thank you received: 0
11 years 1 month ago #126344

thanks,
This code works fine

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

  • Posts: 8
  • Thank you received: 0
9 years 7 months ago #199354

Has this been rectified in the newest version? If not which invoice file will I be adding this code to?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 7 months ago #199384

What do you mean by "rectified" ?
Several things were talked about here and what was proposed by Xavier is not a fix, but a modification that the user could add to have the view look like he wanted, not something that should be by default in HikaShop.
What do you want to do exactly ?

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

  • Posts: 8
  • Thank you received: 0
9 years 6 months ago #200609

I remember doing this for PC Magic Pro a long time ago, I'd like to display Prices on Product pages and invoices with/without taxes.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 6 months ago #200618

Then you should configure the setting "show taxed prices" in the HikaShop configuration so that the prices display like you want.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum