[Skip to main content](#vessel-content)

#   Price Calculation Is Inaccurate

##

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago [\#262674](#262674) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  *[Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262674 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")* was created by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")*

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7
-- Error-message(debug-mod must be tuned on) -- : Calculation Error

Hi,
I have 3 products connected to each other as related and as options.

The shopping cart calculates works correctly only when i have 1 on the cart.
As soon as I add more than one I am getting incorrect number of Options on the shopping cart.

EXAMPLE:
I selected Apples As Main product to make a Fruit Salad.

I added options:
- Orange
- Kivi

and increased to 2 on the cart and press button Added to the Cart.
RESULT:
On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi
Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?

Please see attachment screenshot for the Main product with Options and also Crt Calculations

Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation?
Looking forward, Thank you.

[ ![hika&#95;calculation&#95;error1.png](/forum/attachment/36411) ](/forum/attachment/36411 "...ion&#95;error1.png")

- [ ![hika&#95;calculation&#95;error1.png](/forum/attachment/36411) ](/forum/attachment/36411 "...ion&#95;error1.png") [ ](/forum/attachment/36411?download=1 "...ion&#95;error1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 9 months ago -  9 years 9 months ago [\#262683](#262683) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262683 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hello,

Can you give us the **build version number** and a **screenshot** of your **product** part ?
You will get these **2** things, in **Components** =&gt; **HikaShop** =&gt; **Configuration**, in **Main** tab and **Main** part for **build version** and in **Product** part for the second.
This look like a **fixed** bug, but before we have to be sure of it.
Awaiting news from you.

Regards

Last edit: 9 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago [\#262724](#262724) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262724 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

- Build Version: HikaShop Business 3.0.0 [1702071822]
- Product settings Image attached:

[ ![hika&#95;product&#95;settings1.png](/forum/attachment/36422) ](/forum/attachment/36422 "...&#95;settings1.png")

- [ ![hika&#95;product&#95;settings1.png](/forum/attachment/36422) ](/forum/attachment/36422 "...&#95;settings1.png") [ ](/forum/attachment/36422?download=1 "...&#95;settings1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#262727](#262727) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262727 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hi,

Thanks.
Please re-download HikaShop 3.0.0 ; Nicolas added a patch in the "product / cart" in order to improve the display of products with options.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago -  9 years 9 months ago [\#262761](#262761) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262761 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Here is a good News:
- Yes, the calculation of product cost for products as options is fixed - awesome. - LEFT SIDE OF THE IMAGE

Here is NOT so good news:
- The Cart calculation with added discount is INCORRECT. - RIGHT SIDE OF THE IMAGE

Explanation:
I added $10 discount one time for EACH product and as you can see on the right Discount amount is NOT consistent on the Cart.
Settings for the discount is added to the image.

Please advise.
Looking Forward

[ ![Hika&#95;Discnt&#95;calck2.png](/forum/attachment/36425) ](/forum/attachment/36425 "...cnt&#95;calck2.png")

- [ ![Hika&#95;Discnt&#95;calck2.png](/forum/attachment/36425) ](/forum/attachment/36425 "...cnt&#95;calck2.png") [ ](/forum/attachment/36425?download=1 "...cnt&#95;calck2.png")

Last edit: 9 years 9 months ago by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 9 months ago -  9 years 9 months ago [\#262931](#262931) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262931 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hello,

Does this tax issue come with the new **3.0** version or it was **already** here ?
When I have a look on your first screenshot there is no discount on products...

Does your discount is **applied** on required products ?
Can you provide **full** discount configuration page **screenshot** please ?
Awaiting news from you.

Regards

Last edit: 9 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago -  9 years 9 months ago [\#262967](#262967) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#262967 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

This test is done based on the very last version. After you fixed the previous bug with calculation.

What is being fixed - is on the left and what I added that is Not fixed - on the right side of the image.

It is not Tax, it is discount and the setting image posted above on the top right. (Actually two images for the settings)

Last edit: 9 years 9 months ago by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 9 months ago -  9 years 9 months ago [\#263025](#263025) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263025 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hello,

Yes, you're right I mean **Discount** Tax... My point was to understand if you noticed that the discount issue **was still there** (before first fix) **OR** if it appears **with the new** version.
Anyway, I need the **WHOLE** configuration Discount page and not just a part of it.
Awaiting news from you.

Regards

Last edit: 9 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago -  9 years 9 months ago [\#263088](#263088) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263088 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

That is funny that you say Discount Tax.... No it is NOt a Tax discount.I don't use taxes. It is pure discount. In discount settings only.

This error with calculating Discount was there BEFORE of what you fixed, meaning there were both errors present at the time I started this post. and so far only one error i mentioned at the beginning is fixed.

I really surprise you are asking me for screenshots - it takes you a few minutes to recreate the scenario.

It is all screenshots i have for Discount settings. There is nothing more to add. It is 100% of the information i can provide.

**Discount settings is $10 for Each product**. That is it.
Screenshot1:
[ ![HikaDiscount&#95;A.png](/forum/attachment/36517) ](/forum/attachment/36517 "...Discount&#95;A.png")

Screenshot 2
[ ![HikaDiscount&#95;B.png](/forum/attachment/36518) ](/forum/attachment/36518 "...Discount&#95;B.png")

Screenshot 3 - RESULTS IN THE CART:

[ ![HikaDiscount&#95;C.png](/forum/attachment/36519) ](/forum/attachment/36519 "...Discount&#95;C.png")

Please let me know if you need anything else to fix it.
Thank you.
Looking Forward.

- [ ![HikaDiscount&#95;A.png](/forum/attachment/36517) ](/forum/attachment/36517 "...Discount&#95;A.png") [ ](/forum/attachment/36517?download=1 "...Discount&#95;A.png")
- [ ![HikaDiscount&#95;B.png](/forum/attachment/36518) ](/forum/attachment/36518 "...Discount&#95;B.png") [ ](/forum/attachment/36518?download=1 "...Discount&#95;B.png")
- [ ![HikaDiscount&#95;C.png](/forum/attachment/36519) ](/forum/attachment/36519 "...Discount&#95;C.png") [ ](/forum/attachment/36519?download=1 "...Discount&#95;C.png")

Last edit: 9 years 9 months ago by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 9 months ago -  9 years 9 months ago [\#263186](#263186) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263186 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hello,

If we ask you more elements it's because we can't reproduce your issue... And so basically if you want be helped, you must help us.
Let's be more precise, I need this kind of screenshots :

[ ![discountConfig.png](/forum/attachment/36551) ](/forum/attachment/36551 "...ountConfig.png")

Without these, that will be more difficult or worse we won't be able to help.
Awaiting news from you to move forward.

Regards

- [ ![discountConfig.png](/forum/attachment/36551) ](/forum/attachment/36551 "...ountConfig.png") [ ](/forum/attachment/36551?download=1 "...ountConfig.png")

Last edit: 9 years 9 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: typo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago [\#263233](#263233) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263233 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Settings for product: Notice: Related and Notice Options

Product : notice Options - Yes -Yes
notice amount - ( more than one) = 2

Discount settings: $10

Restrictions - selected
product1
product2
product3

Shopping cart calculations: First product -$10 x 2 = $20 - that is correct
Second product -$20 x 2 = $40 - the initial number -$20 is incorrect - it should remain -$10
Third product -$40 x 2 = $80 - the initial number -$40 is incorrect - it should remain -$10
Screenshots are below. Thank you.

[ ![hika&#95;product&#95;settings.png](/forum/attachment/36564) ](/forum/attachment/36564 "...t&#95;settings.png")

[ ![hika&#95;cart2.png](/forum/attachment/36565) ](/forum/attachment/36565 "hika&#95;cart2.png")

[ ![hika&#95;disc&#95;settings.png](/forum/attachment/36566) ](/forum/attachment/36566 "...c&#95;settings.png")

[ ![hika&#95;cart&#95;total.png](/forum/attachment/36567) ](/forum/attachment/36567 "...cart&#95;total.png")

- [ ![hika&#95;product&#95;settings.png](/forum/attachment/36564) ](/forum/attachment/36564 "...t&#95;settings.png") [ ](/forum/attachment/36564?download=1 "...t&#95;settings.png")
- [ ![hika&#95;cart2.png](/forum/attachment/36565) ](/forum/attachment/36565 "hika&#95;cart2.png") [ ](/forum/attachment/36565?download=1 "hika&#95;cart2.png")
- [ ![hika&#95;disc&#95;settings.png](/forum/attachment/36566) ](/forum/attachment/36566 "...c&#95;settings.png") [ ](/forum/attachment/36566?download=1 "...c&#95;settings.png")
- [ ![hika&#95;cart&#95;total.png](/forum/attachment/36567) ](/forum/attachment/36567 "...cart&#95;total.png") [ ](/forum/attachment/36567?download=1 "...cart&#95;total.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#263235](#263235) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263235 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hi,

Original prices for "Orange" and "Kivi" are right $200 and $300, right ?
So the processed prices are correct, each time just $10 are removed for the product prices, right ?

But there is just a displaying problem regarding the checkout cart, the final price is correct, right ?
Do you also have the displaying issue in the cart module ?
Do you have a view override for the "checkout / listing_price" view ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 9 months ago -  9 years 9 months ago [\#263713](#263713) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263713 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Yes, correct, apple - 100, oranges 200 and kivi 300 - is the original prices and the calculation for the Product is working correctly, you already fixed it .
It is the only calculations for discounts - they are multiplied by 2 in Unit column on each line after first line and that makes discount amount on each product incorrect.
I set -10 discount on no others. That means each product get -10 X time of product

Here is **UNIT** COLUMN:

Apples are correct discount -10
Oranges - incorrect - -20 ( should be -10)
Kivi - incorrect - 40 ( should be -10)
So, I believe that Unit Column is effected and produced errors for calculations.
2) I **do not have** override for the "checkout / listing_price" view ?
Thank you, Looking Forward.

Last edit: 9 years 9 months ago by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

9 years 8 months ago -  9 years 8 months ago [\#263773](#263773) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263773 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hello,

There is something strange with checkout display, can you provide an **Url link** to your website, **OR** (maybe you've already told it) if your website is on a **localhost**, is it possible to **create a copy** on the web in order to process some tests directly on your website with **frontend**/**backend** access ?

Because for now, it's **impossible** to reproduce the issue on our side, and so it's seems that we are stocked...
Awaiting news from you ?

Regards

Last edit: 9 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 8 months ago -  9 years 8 months ago [\#263834](#263834) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263834 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Code:

Credentials removed by a moderator

Attention: select each option and ad product more than 1 , so make it 2, 3 before pressing on add to cart button. thank you.

Last edit: 9 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: removing credentials

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 8 months ago [\#263886](#263886) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263886 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Hi,

Thanks !
Please download the install package again on our website and install it again on yours and that should fix the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

9 years 8 months ago [\#263961](#263961) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  Replied by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")* on topic *[Discount - Price Calculation Is Inaccurate](/forum/27-checkout/888913-price-calculation-is-inaccurate#263961 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7 -- Error-message(debug-mod must be tuned on) -- : Calculation Error  Hi, I have 3 products connected to each other as related and as options.  The shopping cart calculates works correctly only when i have 1 on the cart. As soon as I add more than one I am getting incorrect number of Options on the shopping cart.  EXAMPLE: I selected Apples As Main product to make a Fruit Salad.  I added options: - Orange - Kivi  and increased to 2 on the cart and press button Added to the Cart. RESULT: On the cart I am getting 2 Apples, but 4 Oranges and 4 Kivi Is'nt should be only 2 Oranges and 2 Kivi instead of 4 for each?  Please see attachment screenshot for the Main product with Options and also Crt Calculations  Please advise, is it error in the calculations or it is not? Can it be fixed if it is error in the calculation? Looking forward, Thank you.")*

Thank you. It is fixed and working properly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4ODkxMy1wcmljZS1jYWxjdWxhdGlvbi1pcy1pbmFjY3VyYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.101 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
