- Posts: 23
- Thank you received: 0
Show discount amount in invoice
12 years 2 weeks ago #175113
by ip-studio
Show discount amount in invoice was created by ip-studio
-- 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
-- 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 or Create an account to join the conversation.
12 years 2 weeks ago #175132
by Xavier
Replied by Xavier on topic Show discount amount in invoice
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 > Emails.
This require PHP knowledges.
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 > Emails.
This require PHP knowledges.
Please Log in or Create an account to join the conversation.
12 years 2 weeks ago #175361
by ip-studio
Replied by ip-studio on topic Show discount amount in invoice
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?
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 or Create an account to join the conversation.
12 years 1 week ago #175367
by Xavier
Replied by Xavier on topic Show discount amount in invoice
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"
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 or Create an account to join the conversation.
12 years 1 week ago #175712
by ip-studio
Replied by ip-studio on topic Show discount amount in invoice
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
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 or Create an account to join the conversation.
12 years 1 week ago #176206
by Xavier
Replied by Xavier on topic Show discount amount in invoice
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.
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 or Create an account to join the conversation.
12 years 1 week ago #176215
by ip-studio
Replied by ip-studio on topic Show discount amount in invoice
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.
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.
Please Log in or Create an account to join the conversation.
11 years 7 months ago #195171
by msala
Replied by msala on topic Show discount amount in invoice
How to include "price before discount" in the order notification email (the mail received by admin)?
thanks
thanks
Please Log in or Create an account to join the conversation.
11 years 7 months ago #195189
by msala
Replied by msala on topic Show discount amount in invoice
How to include "price before discount" in the order notification email (the mail received by admin)?
thanks
thanks
Please Log in or Create an account to join the conversation.
11 years 7 months ago #195186
by Xavier
Replied by Xavier on topic Show discount amount in invoice
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.
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 or Create an account to join the conversation.
11 years 2 months ago #212041
by joomer13
Replied by joomer13 on topic Show discount amount in invoice
Hello,
can you please tell me, what code/variables I have to insert in 'invoice.php' to show the coupon amount?
Thank you!
André
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 or Create an account to join the conversation.
11 years 2 months ago #212062
by nicolas
Replied by nicolas on topic Show discount amount in invoice
Hi,
The coupon amount is already displayed in the invoice thanks to the code:
take.ms/DDdmR
So you can use $this->order->order_discount_price but that should not be necessary.
The coupon amount is already displayed in the invoice thanks to the code:
take.ms/DDdmR
So you can use $this->order->order_discount_price but that should not be necessary.
Please Log in or Create an account to join the conversation.
Time to create page: 0.392 seconds