checkout price for mutiple order incorrect

  • Posts: 37
  • Thank you received: 0
10 years 11 months ago #136696

-- url of the page with the problem -- : greenmole.de
-- HikaShop version -- : Business 2.2.3
-- Joomla version -- : 3.2.0
Hi,
Sorry I imagine others must have had the same problem but I haven't found it by searching.

Please see the 2 attached screenshots. Problem is that during the checkout process, when a buyer purchases 2 or more of the same product (which is very likely), the total amount is shown wrongly during checkout. Just by a few cents. It looks like hikashop is taking the pre-tax price, multiplying it by the number ordered and then adding the tax back on, rather than just multiplying the tax-included price. (see screenshot 1). It's only out by a few cents, but it looks stupid, like I don't know how to calculate. Strangely, the e-mail confirmation of the order (see screenshot 2) is fine. How can I get the price shown during checkout to look the same as the correct price on the confirmation e-mail?
Thanks!

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 11 months ago #136767

Hi,

Change the "Round prices during calculations" option of the configuration and it will work like you want.

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

  • Posts: 37
  • Thank you received: 0
10 years 11 months ago #136873

Hi Nicolas,
If you mean in the HikaShop / System / Configuration / Taxes section -
"Round prices during calculations" was already checked to Yes. (Sorry, I should have mentioned this in yesterday's post)
Was this correct, should I have done this somewhere else as well? I assume Yes is the correct setting?
I had also - in the Products section -
1. First set the Product tax category
2. Then entered the Price with tax
3. And let HikaShop calculate the price before tax.
And I still got the inexact sum during checkout. I assume I am missing something - some other place to round the prices maybe?

Thanks ... it's a small thing but it's driving me demented because it will look so unprofessional.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 11 months ago #136920

Hi,

So what is the exact price without tax of your products (the ones in the screenshot) in the backend ?

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

  • Posts: 37
  • Thank you received: 0
10 years 11 months ago #136977

Hi Nicolas,

For the first tea (Reiche Fülle) which will cost €6,70 including 7% tax I gave in the price with tax as 6.7 (I tried to enter 6.70 / 6.7000 / 6.70000 in the hope that multiple zeros would help) ... hikashop automatically calculates this at 6.26168 and sets the after tax price as 6.7. (see screenshot).

On the list of products in the Product category Tea, price before tax of this tea is set to €6,26 (see screenshot product list) which is fine.

For the Rosenkonfitüre I gave in the after tax price of 8.5 (8.50 / 8.500 / 8.5000 / 8.50000) which hikashop calculates as 7.94393 and shows on the category Jam product list as €7,94 before tax.

For the Beerentee I entered the price of 7.6 after tax which hiksahop calculates as 7.1028 before tax. This shows up as 7,10 on the product list.

Thanks for your help! It's not super urgent, because I am about to go on a trip for several days without my computer.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 11 months ago #137067

Hi,

I did a test on my end with the same prices and don't get the same results.
That's with the rounding option turned on:


And that's with it turned off:

So I'm not able to reproduce the problem.

Are you sure that you have the 2.2.3 installed ? Did you modify some of the views like the "cart" view ?

Attachments:

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

  • Posts: 37
  • Thank you received: 0
10 years 10 months ago #139502

Thanks Nicolas. I've been away and then working on other stuff but now I returned to this problem:
I still have the problem although I have the rounding option turned on so I must have done something wrong somewhere. It's possible as you say that it's to do with the Display - Views - cart :

Are you sure that you have the 2.2.3 installed ? Yes, Extension mananger shows 2.2.3 and Components-Hikashop-Update/About says: You have the latest stable version of HikaShop Business: 2.2.3
However - when I look at the text in the Display-Views-product-cart text (see rtf attachment) it starts <?php
/**
* @package HikaShop for Joomla!
* @version 2.2.2
...
could this be the problem? Did I update to the latest version of Hikashop but some parts didn't get updated automatically?

Did you modify some of the views like the "cart" view ? I don't remember doing so. However when I look at Display-Views ... there does seem to be something odd about product - cart since there's a very faded icon to the right of the product cart row under the Remove customization column. (see screenshot) I (almost) assume that I should click on this icon to remove customization I must have added without realizing. However when I click on the icon I get an Are you sure you want to delete the selected Items? message. Help! i don't want to delete the view entirely, just get rid of any incorrect customization? Should I click on delete? The second attached file shows the text in the view. Can you see the problem there?

Thanks.

Attachments:

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

  • Posts: 37
  • Thank you received: 0
10 years 10 months ago #139653

Update to my post from yesterday:

I assume the problem is in some way connected - as Nicolas suggested - to the Hikashop_Display_Views
The attached screenshot from a few minutes ago shows what happens when I filter via cart .
As you can see, there are actually 3 lines which show the icon which seems to mean delete under the Remove customization column.
When I look inside the text of each file, the 4 files without the delete icon all start:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3
While the 3 files with the delete icon all start:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.2

Question is: what happens when I delete the 3 files? I'm a bit scared to just go ahead and try it. Maybe I should :( delete these files, then re-install Hikashop?

Thanks!

Attachments:

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

  • Posts: 37
  • Thank you received: 0
10 years 10 months ago #140351

Despite my worries that "Are you sure you want to delete?" does not mean the same as "Remove customization" (at least to a native British English speaker) I decided to go ahead and click on delete. Which didn't lose half my files, as I had feared! Which then got me file data starting:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.2.3

So it seemed as if I would be okay now. I cleared caches, switched off my computer, came back an hour later and :-
no difference: I am still getting odd totals, like 3x 6,70 = 20,09 or 2x 8,50 = 16,99.
So now I am really stuck!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #141032

Hi,

Please provide a screenshot of your product (price) configuration.
Just one will be necessary (like the one which cost 6.70).

Thanks


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: 37
  • Thank you received: 0
10 years 9 months ago #141043

Thanks for getting back to me! I was beginning to feel like a total idiot.
The page is very long, screenshot _below shows the relevant part of the product price configuration; _above isn't so interesting, just the top part of the page but I included it anyway. And also the Tax Configuration (round prices during calculations) section.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #141222

Hi,

Ok. I see that you have the 'detailed tax display' option of the configuration turned off while it is turned on by default. Is there a reason you changed it ? Can you try with that option activated ?
Also, if you have the custom tax system plugin of HikaShop turned on in the joomla plugins manager, please turn it off and try again.

Regarding the views, I was talking about the "cart" file of the view "checkout". If you have an override for it (with the remove customization icon displayed), you can try removing it and see if that helps.

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

  • Posts: 37
  • Thank you received: 0
10 years 9 months ago #141272

Most important:
Also, if you have the custom tax system plugin of HikaShop turned on in the joomla plugins manager, please turn it off and try again.
That was it. Finally! It was this plugin that was causing the problem. Now I turned it off, and the problem is finally solved. I guess it was turned on because, after all, I am using German taxes within Germany.

Not so important, but to answer your question:
I see that you have the 'detailed tax display' option of the configuration turned off while it is turned on by default. Is there a reason you changed it ? As I remember, previously 'detailed tax display' turned on showed price both with and without tax and displayed in a slightly messy way. Can you try with that option activated ? But now it's okay turned on, must have been a problem with an earlier version of Hikashop.

whew ... I am so glad we finally solved this ... a stupid problem that seemed unsolvable for so long.

Thanks for your help!

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

Time to create page: 0.089 seconds
Powered by Kunena Forum