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

#   Show discount amount in invoice

##

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 2 weeks ago [\#175113](#175113) by [ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")  *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#175113 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")* was created by *[ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.4

Hi,

I've just upgraded to Hikashop Business to benefit from the discount per user group feature.

The prices in the invoice and email creation order are the discounted prices.
I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.

How to get it? I set "Show discounted price" to no but that doesn't change anything.

This is really important for the customer to see in the invoice the amount of discount.

Thanks
François

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 weeks ago [\#175132](#175132) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#175132 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,

You will have to edit the views "order / show" in frontend template and "order / invoice" in backend template to edit the invoice content.
And the emails via the menu System &gt; Emails.

This require PHP knowledges.

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 2 weeks ago [\#175361](#175361) by [ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")  Replied by *[ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#175361 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,
Alright, thank you for your reply.
I also use the PDF invoice plugin. Does this plugin independent from theses views?
I actually use HS as a quote generator (for now). Customers don't see any prices on the checkout process. The only prices they see will be on the PDF invoice.
So here is my question: can I only customize the file invoice.php?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 weeks ago [\#175367](#175367) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#175367 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,

Yes the PDF invoice plugin is independent from the views.
You can edit the content of the PDF file by editing the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.php"

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 1 week ago [\#175712](#175712) by [ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")  Replied by *[ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#175712 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,
I created a category for options called "options" in the "Products" category.
My discount must apply on all products. So in the discount panel I set the restrictions to "Category: Products Including Sub categories".
But the discount is not apply on the options.
Is there a reason why? Or is it a bug?
Thanks

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 week ago [\#176206](#176206) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#176206 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,

The discount should be applied on the options too, I just tried on my end and it's working fine.
On the product page, the option price is well discounted.

Please give us a screenshot of your categories tree and the settings of your discount.

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 1 week ago [\#176215](#176215) by [ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")  Replied by *[ip-studio](/forum/user/33508-ip-studio "View ip-studio's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#176215 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,
Please see the screenshots.
I don't know why the discount is not applied on the option.
This is not a big deal as I solved this "issue" by adding 2 unpublished categories for 2 different discount amounts. So each product/options is either in "discount tranche A" or "discount tranche B". Now my discounts only apply to these categories and that works fine for options too.
Thanks any way.

- [ ![Screenshot&#95;from&#95;2014-10-20&#95;123439.png](/forum/attachment/20233) ](/forum/attachment/20233 "...-20&#95;123439.png") [ ](/forum/attachment/20233?download=1 "...-20&#95;123439.png")
- [ ![Screenshot&#95;from&#95;2014-10-20&#95;123509.png](/forum/attachment/20234) ](/forum/attachment/20234 "...-20&#95;123509.png") [ ](/forum/attachment/20234?download=1 "...-20&#95;123509.png")

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 7 months ago [\#195171](#195171) by [msala](/forum/user/31239-msala "View msala's Profile")  Replied by *[msala](/forum/user/31239-msala "View msala's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#195171 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

How to include "price before discount" in the order notification email (the mail received by admin)?

thanks

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 7 months ago [\#195189](#195189) by [msala](/forum/user/31239-msala "View msala's Profile")  Replied by *[msala](/forum/user/31239-msala "View msala's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#195189 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

How to include "price before discount" in the order notification email (the mail received by admin)?

thanks

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#195186](#195186) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#195186 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,

The discount data is not stored in the order for each products.
When a product is added to the cart, we take the already discounted price, so it is not possible to get the desired information.

This will require to add a column in the order_product table in order to store all the discount informations per product.
Which one has been used, it's amount or percentage, etc.

But for now, sorry, it is not possible.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 2 months ago [\#212041](#212041) by [joomer13](/forum/user/34042-joomer13 "View joomer13's Profile")  Replied by *[joomer13](/forum/user/34042-joomer13 "View joomer13's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#212041 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hello,
can you please tell me, what code/variables I have to insert in 'invoice.php' to show the coupon amount?

Thank you!
André

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzIyMzItc2hvdy1kaXNjb3VudC1hbW91bnQtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 months ago [\#212062](#212062) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show discount amount in invoice](/forum/46-discount-coupon/872232-show-discount-amount-in-invoice#212062 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.4  Hi,  I've just upgraded to Hikashop Business to benefit from the discount per user group feature.  The prices in the invoice and email creation order are the discounted prices. I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.  How to get it? I set &quot;Show discounted price&quot; to no but that doesn't change anything.  This is really important for the customer to see in the invoice the amount of discount.  Thanks François")*

Hi,

The coupon amount is already displayed in the invoice thanks to the code:
[ take.ms/DDdmR](http://take.ms/DDdmR)

So you can use $this-&gt;order-&gt;order_discount_price but that should not be necessary.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzIyMzItc2hvdy1kaXNjb3VudC1hbW91bnQtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) 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.421 seconds

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

[](#top)
