Show price without TAX in subtotal

  • Posts: 71
  • Thank you received: 0
4 years 3 months ago #314357

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.3

Hi

I want to show in checkout prices without tax in subtotal field and total price field with tax. How I can do it?


Thanks

Attachments:

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

  • Posts: 81515
  • Thank you received: 13068
  • MODERATOR
4 years 3 months ago #314398

Hi,

You'll have to edit the file "show_block_cart" via the menu Display>Views and change the line:

echo $this->currencyClass->format(@$cart->total->prices[0]->price_value_with_tax,@$cart->total->prices[0]->price_currency_id);
to:
echo $this->currencyClass->format(@$cart->total->prices[0]->price_value,@$cart->total->prices[0]->price_currency_id);

The following user(s) said Thank You: vaughan

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

  • Posts: 71
  • Thank you received: 0
4 years 3 months ago #314435

Great!

Thanks a lot

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

  • Posts: 31
  • Thank you received: 1
  • Hikashop Business
4 years 20 hours ago #317985

Not seeing that code in the show_block_cart view. Has this changed in 3 months?

I'd like no tax to show in checkout product list in either unit price or total price, the tax listed on its own line after subtotal with Label "Taxes", and then below that add the subtotal and taxes for the Total line. I'm guessing I'm missing something simple since this is a pretty standard format.

Is it possible to do that?

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

  • Posts: 81515
  • Thank you received: 13068
  • MODERATOR
4 years 9 hours ago #317995

Hi,

It didn't change, that code is still there. Please check again.

Note that if you turn off the "show taxed prices" setting in the HikaShop configuration, it will display without taxes in either the unit price column, the total column nor the subtotal cell.

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

  • Posts: 31
  • Thank you received: 1
  • Hikashop Business
4 years 1 hour ago #318023

Found it, thanks.

The checkout now displays the tax and subtotal, however the unit price in the list above that still includes price with tax (see attachment). Is there a way to display unit price in the list without the tax, then just add it at the bottom (as it is now) with subtotal and tax for total? Do I need to edit the view again for that?


Here is the cart screenshot where taxes are not included in the unit price:


Appreciate your help and responsiveness!

Attachments:

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

  • Posts: 81515
  • Thank you received: 13068
  • MODERATOR
3 years 11 months ago #318027

Hi,

You don't need to edit any code for that.
In fact, you could even remove the code change that you did already.
You just need to deactivate the "Price with tax" of the "cart" view in the "Checkout workflow" section under the "Checkout" tab of the HikaShop configuration page.

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

  • Posts: 31
  • Thank you received: 1
  • Hikashop Business
3 years 11 months ago #318041

Perfecto! Thanks Nick! I left the edit as it appears to display as intended.

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

  • Posts: 31
  • Thank you received: 1
  • Hikashop Business
3 years 11 months ago #319056

I'd like to do the same thing with HikaShop Cart Module, by showing total with tax included.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
3 years 11 months ago #319057

Hello,

To do that you'll just have to go to your module configuration page and use the "Show taxed prices" option through the "Hikashop options" tab.

Kind regards,
Mohamed.

The following user(s) said Thank You: nickk

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

Time to create page: 0.108 seconds
Powered by Kunena Forum