Show Prices in the back purchases including taxes

  • Posts: 39
  • Thank you received: 1
10 years 7 months ago #151021

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.7
-- PHP version -- : 5.4.25

Hello,
In the front of the site is configured to display the price including tax and this properly. But in the back as shown in the attached image appear without taxes.
In the Price column appears without taxes.
As can be configured to display the list prices with taxes included?

Thank you,

Attachments:

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 7 months ago #151048

Hi,

There is no option for that. That would require to modify the code of the file "listing" of the view "cart" of your backend via the menu Display>Views

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

  • Posts: 39
  • Thank you received: 1
10 years 7 months ago #151217

Hello,
Ok, that part of the code I need to change? I could provide the code that have changed.

thanks

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 7 months ago #151228

Hi,

You'll want to change that line:

echo $this->currencyHelper->format($cart->price,$cart->currency);
So if you always have a 20% tax on all your products, you could simply do like that:
echo $this->currencyHelper->format($cart->price*1.2,$cart->currency);

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

  • Posts: 39
  • Thank you received: 1
10 years 7 months ago #151407

ok, taxes are 21% as I put it?
Thank you,

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #151509

Hi,

In the example given by Nicolas the taxes are 20%.
To have 21% you have to multiply by "1.21".

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

Time to create page: 0.075 seconds
Powered by Kunena Forum