Shipment price incorrectly shown with taxes before taxes calculation

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #263800

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Any

Hi,
I've have a problem about shipment and taxes.

Unfortunately the site is still in development but I can give you info to reproduce the problem (com_hikashop_business_v3.0.0_2017-03-01_14-31-32):

- Create a manual shipping with cost of 5.00 € + taxes (22%)

- Create a product priced as 500.00 € + taxes (22%)

- Set Hikashop to display prices both with and without taxes (in Italy it is mandatory to show taxed price or, at least, taxed price beside non-taxed one)

- At checkout you'll see:
Subtotal: 500.00 €
Shipment: 6.10 € (WRONG: it should show price without taxes if they are calculated later, just like products price are)
Taxes: 111.10 € (correct but confusing because it seems that the total should be 500.00 + 6.10 + 111.10 = 617.2 while it is...)
Total: 616,10 €

It could be better to have:
Subtotal: 500.00 € (+ TaxName)
Shipment: 5.00 € (+ TaxName)
TaxName: 111.10 €
Total: 616.10 €

OR

Subtotal: 500.00 € (+ TaxName)
TaxName: 111.10 €
Shipment: 6.10 € (5.00 € + TaxName)
Total: 616.10 €


Everything works fine if Hikashop is set to display prices without taxes but here, in Italy, it is forbidden.

Please find attached demo screenshots (in italian)

Thank you very much
Kind regards

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #263827

Hi,

That's not what I see on my end. I have:
Subtotal: 610.00 €
Shipping: 6.10 €
TaxName: 111.10 €
Total: 616.10 €

Which is logical. The subtotal is displayed with the taxes, since the products prices are also with tax, and the shipping fee is also with tax since the prices are set to display with the taxes.
The total tax fee row is just informative there and should be ignored when you do the sum.

If you want something else, you can always change the code in the file "show_block_cart" of the view "checkout" via the menu Display>Views.
It's quite easy even without being a programmer. For the shipping for example, just change shipping_price_with_tax to shipping_price in the file and you'll get the shipping fee without tax regardless of how you setup the display of the tax prices.

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

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #263915

Hi, thank you for you reply.

Yes, I've already customized show_block_cart.php to obtain something similar to what I want, but I think it was better to have a "native, natural" behavior :-)

But I've not been able to customize prices that appear in the checkout cart ($this->getDisplayProductPrice($product, true); and this->getDisplayProductPrice($product, false)). How to change those values from taxed to taxed and vice-versa?

There's another problem: if I set HS to display both prices (with and without tax) and Bank transfer payment discount, it doesn't calculate non-taxed price correctly and it shows always the taxed one, ignoring tax category set in HikaShop bank transfer payment plugin.
Example of what happens (translated):

* Bank transfer -12,32 € (-12,32 € + VAT): this is with tax category set to "Default tax category" which is 22%
* Bank transfer -12,32 € (-12,32 € + VAT): this is with tax category set to "None" which should be 0%

I'd like to see:

* Bank transfer -12,32 € (-10,10 € + VAT): with tax category set to "Default tax category" which is 22%
* Bank transfer -10,10 €: with tax category set to "None" which should be 0%

Is it my mistake or there's a problem with plugin?
Thank you
Regards

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #263930

Hi,

1.
You can add such code before the call of the getDisplayProductPrice function :

$this->options['price_with_tax'] = 0;

2.
I must say it's the first time someone contact us regarding taxes on a payment fee being negative.
I've reproduced the problem. That's indeed a bug introduced with HikaShop 3.0.0's new cart system. I've added a patch on our end.
Download again the install package on our website and install it on yours and that will add the patches for that.

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

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #263975

Eh eh! :)
That's because it is better to offer a discount for unexpensive (to seller) payment methods than apply a fee on expensive ones. It looks "more friendly". It's a kind of marketing strategy :)

Anyway, I've just downloaded and installed the new package but the problem is still there (please find attached pic)

)

Thank you again
Regards

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 8 months ago #263980

Hi,

Can you please confirm us your HikaShop Build number ?
www.hikashop.com/support/documentation/5...onfig.html#main_main

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: 32
  • Thank you received: 1
7 years 8 months ago #263993

HikaShop Business 3.0.0 [1703021730]
Is it correct?
Thanks

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

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #264007

I've just re-downloaded it: HikaShop Business 3.0.0 [1703022313]

Most probably the file was not update yet when I downloaded it yesterday, just after you told me to do that.

But... the problem is still there...

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #263995

Hi,

Yes, but I'm not able to reproduce the problem with that build: monosnap.com/file/QPN4Go0Nyu7Kpl24rlC60PRktQGQmZ
So that means that your problem is coming from something else than the bug we found and fixed.
We would need more information in order to be able to reproduce the problem as it seems to work fine on our end now.
Could you provide a screenshot of the settings of your payment method, of your tax rules, of the taxes section of the HikaShop configuration ?
Could you also provide a link to the shop and the steps to reproduce the problem ?

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

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #264075

Hi,
please, try to set Bank Transfer "Tax category" to "None".

If this doesn't reproduce the problem on your side I'll setup a test site for you.
In this case, please, tell me how I can comunicate to you url, login and password privately

Thank you!
Regards

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #264105

Hi,

As I said, it works fine, regardless of what we test:
monosnap.com/file/xGz7BsHsPguUSTABCp5DpD48s3Mtqf
monosnap.com/file/H7WuVf7BPRizM2XRwS9hsuBJ3HUzt4
So as far as I can see, the problem is not a bug but with something wrongly configured, or maybe there is really a bug but which can only happen in some really specific case. So first, please double check your setttings. And if you don't see any issue, please use our contact form, and include a link to this thread:
www.hikashop.com/support/contact-us.html

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

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #264113

Hi, I've sent test site url and login using support contact form.

Thank you!

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #264116

Hi,

I don't see the problem on your website either. The payment fee is calculated without tax added to it:
monosnap.com/file/ItEgZpfuMmK4dn6OKOmKcmVxqXoNpu
2% of taxed total : 21.60 *0.02 = 0.53
And you can see that the tax on the total of the order correspond to the difference between the price with tax and the price without tax of the product. The payment fee doesn't add any tax to the tax amount of the order.
As you set a percentage of 2% in the payment method, the payment fee is 2% of the total with tax before the payment fee is added, but no tax is added on top of that.
I suppose that what you want is actually to have the payment fee percentage calculation based on the total without tax.
There is actually no option to do that, but then, you could change the percentage to take that into account.

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

  • Posts: 32
  • Thank you received: 1
7 years 8 months ago #264149

Hi,
first let me thank you for the time you've dedicated to me.

The problem is not about "mathematics", it is about "logics", just like the order in which prices, taxes and discounts are shown at the bottom of page we already talked about.

In particular, It makes no sense to me to show payment price before tax if tax=0.

It "sounds" much more "nosense" especially if the text is "-0,53 € (-0,53 € + IVA)", just like it is in my case, because brain "automatically" replaces the "+ IVA" part with "+ 22%" and 0,53 + 22% is NOT = 0,53.

That's why there's no evidence that IVA is 0% for payment in the checkout screen.

So, "-0,53 € (-0,53 € excl VAT)" should be simply "-0,53 €" if no taxes are applied.

Is there a way to do that, a way to show only the payment PRICE, without PRICE + TAX in brackets, if no tax is applied?

This is the last question from me for this thread. I swear! :-)
Thank you again.
Regards

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #264158

Hi,

Sure, a small modification to the view displaying the payments. You can edit the file "show_block_payment" via the menu Display>Views and add such code:
$this->config->set('price_with_tax', ( $payment->payment_price_with_tax == $payment->payment_price ? 0 : 2));
before the line:
echo $this->checkoutHelper->getDisplayPrice($payment, 'payment', $this->options);

The following user(s) said Thank You: altrasoluzione

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

Time to create page: 0.091 seconds
Powered by Kunena Forum