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

#   Discount &amp; Minimum Quantity

##

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 2 months ago -  15 years 2 months ago [\#24086](#24086) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  *[Discount &amp; Minimum Quantity](/forum/3-bug-report/24086-discount-minimum-quantity#24086 "I created a discount for a product for 15$ and his original price was 93$, means now it is 78$ per item. I elso created minimun quantity for 2 items for 75$ instad of 93$ minus the 15$ discount = 60$ from 2 items. In the product page it displays good, but when i add to cart 2 products it calculate the price wrong.  It calculate like this: 150$ (2 items worth 75$ each) - 15$ discount (ONE TIME) = 135$  Which suppose to be like this: 120$ (2 items worth 75$ each - 2 times 15$ discount).  Reply fast please. Thank you.  EDIT: found another thing wrong.. At the final stage (confirm order) and the cart total the cart is displaying tax free while the cart description is displaying the 135$, the cart total is -taxes. The final stage is tax free - discount and the final comes like 110$ or something like that... I do not recall messing with the code there.  Importent to mention that only products with discount act like this.  Thank you agian")* was created by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")*

I created a discount for a product for 15$ and his original price was 93$, means now it is 78$ per item.
I elso created minimun quantity for 2 items for 75$ instad of 93$ minus the 15$ discount = 60$ from 2 items.
In the product page it displays good, but when i add to cart 2 products it calculate the price wrong.

It calculate like this:
150$ (2 items worth 75$ each) - 15$ discount (ONE TIME) = 135$

Which suppose to be like this:
120$ (2 items worth 75$ each - 2 times 15$ discount).

Reply fast please.
Thank you.

EDIT: found another thing wrong..
At the final stage (confirm order) and the cart total the cart is displaying tax free while the cart description is displaying the 135$, the cart total is -taxes.
The final stage is tax free - discount and the final comes like 110$ or something like that...
I do not recall messing with the code there.

**Importent to mention that only products with discount act like this.**

Thank you agian

Last edit: 15 years 2 months ago by [bars92](/forum/user/3048-bars92 "View bars92's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDA4Ni1kaXNjb3VudC1taW5pbXVtLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

15 years 2 months ago [\#24106](#24106) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount &amp; Minimum Quantity](/forum/3-bug-report/24086-discount-minimum-quantity#24106 "I created a discount for a product for 15$ and his original price was 93$, means now it is 78$ per item. I elso created minimun quantity for 2 items for 75$ instad of 93$ minus the 15$ discount = 60$ from 2 items. In the product page it displays good, but when i add to cart 2 products it calculate the price wrong.  It calculate like this: 150$ (2 items worth 75$ each) - 15$ discount (ONE TIME) = 135$  Which suppose to be like this: 120$ (2 items worth 75$ each - 2 times 15$ discount).  Reply fast please. Thank you.  EDIT: found another thing wrong.. At the final stage (confirm order) and the cart total the cart is displaying tax free while the cart description is displaying the 135$, the cart total is -taxes. The final stage is tax free - discount and the final comes like 110$ or something like that... I do not recall messing with the code there.  Importent to mention that only products with discount act like this.  Thank you agian")*

Hi,

I just tried the reproduce the exact same setup on one of our test servers and I got a total of 120 and not 135, so it's working properly for us.
Could you do a screenshot of your product and discount setups ? Are you sure that the system isn't picking up another discount for some reason ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDA4Ni1kaXNjb3VudC1taW5pbXVtLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 2 months ago [\#24114](#24114) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: Discount &amp; Minimum Quantity](/forum/3-bug-report/24086-discount-minimum-quantity#24114 "I created a discount for a product for 15$ and his original price was 93$, means now it is 78$ per item. I elso created minimun quantity for 2 items for 75$ instad of 93$ minus the 15$ discount = 60$ from 2 items. In the product page it displays good, but when i add to cart 2 products it calculate the price wrong.  It calculate like this: 150$ (2 items worth 75$ each) - 15$ discount (ONE TIME) = 135$  Which suppose to be like this: 120$ (2 items worth 75$ each - 2 times 15$ discount).  Reply fast please. Thank you.  EDIT: found another thing wrong.. At the final stage (confirm order) and the cart total the cart is displaying tax free while the cart description is displaying the 135$, the cart total is -taxes. The final stage is tax free - discount and the final comes like 110$ or something like that... I do not recall messing with the code there.  Importent to mention that only products with discount act like this.  Thank you agian")*

Thanks for the replay.
Ok i ran a check with all the changes i have made and it seems like listing_price modification changed the value of the discount apparently this line:

echo $this-&gt;currencyHelper-&gt;format(-1*$this-&gt;row-&gt;discount-&gt;discount_flat_amount,$price-&gt;price_currency_id);

I have changed this line to display full price with strike on it:
echo '&lt;strike&gt;' . $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax + $this-&gt;row-&gt;discount-&gt;discount_flat_amount,$price-&gt;price_currency_id) . '&lt;/strike&gt;';

So i guess format save the value somehow.
How can i display the full price instad of this - discount without damaging the value?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDA4Ni1kaXNjb3VudC1taW5pbXVtLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

15 years 2 months ago [\#24134](#24134) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Discount &amp; Minimum Quantity](/forum/3-bug-report/24086-discount-minimum-quantity#24134 "I created a discount for a product for 15$ and his original price was 93$, means now it is 78$ per item. I elso created minimun quantity for 2 items for 75$ instad of 93$ minus the 15$ discount = 60$ from 2 items. In the product page it displays good, but when i add to cart 2 products it calculate the price wrong.  It calculate like this: 150$ (2 items worth 75$ each) - 15$ discount (ONE TIME) = 135$  Which suppose to be like this: 120$ (2 items worth 75$ each - 2 times 15$ discount).  Reply fast please. Thank you.  EDIT: found another thing wrong.. At the final stage (confirm order) and the cart total the cart is displaying tax free while the cart description is displaying the 135$, the cart total is -taxes. The final stage is tax free - discount and the final comes like 110$ or something like that... I do not recall messing with the code there.  Importent to mention that only products with discount act like this.  Thank you agian")*

The code is already there for that in that file. You just need to change the "Show discounted price" option of your menu/module/config to "Display the price before the discount is applied" and that will show the price before discount which will be stroked.
The code used is this in that same file:
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_without_discount_with_tax,$price-&gt;price_currency_id);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDA4Ni1kaXNjb3VudC1taW5pbXVtLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 2 months ago [\#24140](#24140) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  Replied by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")* on topic *[Re: Discount &amp; Minimum Quantity](/forum/3-bug-report/24086-discount-minimum-quantity#24140 "I created a discount for a product for 15$ and his original price was 93$, means now it is 78$ per item. I elso created minimun quantity for 2 items for 75$ instad of 93$ minus the 15$ discount = 60$ from 2 items. In the product page it displays good, but when i add to cart 2 products it calculate the price wrong.  It calculate like this: 150$ (2 items worth 75$ each) - 15$ discount (ONE TIME) = 135$  Which suppose to be like this: 120$ (2 items worth 75$ each - 2 times 15$ discount).  Reply fast please. Thank you.  EDIT: found another thing wrong.. At the final stage (confirm order) and the cart total the cart is displaying tax free while the cart description is displaying the 135$, the cart total is -taxes. The final stage is tax free - discount and the final comes like 110$ or something like that... I do not recall messing with the code there.  Importent to mention that only products with discount act like this.  Thank you agian")*

Great, done.
Thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNDA4Ni1kaXNjb3VudC1taW5pbXVtLXF1YW50aXR5P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.114 seconds

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

[](#top)
