- Posts: 157
- Thank you received: 2
Add total quantity of products in invoice
-- HikaShop version -- :2.3.0
-- Joomla version -- : 2.5.20
Hello again
My client wants that the invoice that is sent to the customer shows in the subtotal row the quantity of products that is sent.
Is that possible?
So the customer can see in the subtotal row the quantity of products that is sent to him.
Thank you.
(attached view)
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
If you want to show the quantity of products in your order in the subtotal row, you'll have to edit the ''Invoice" file of the "order" view of your back-end template through "Hikashop->Display->Views" and change this line :My client wants that the invoice that is sent to the customer shows in the subtotal row the quantity of products that is sent.
And these lines :
Please Log in or Create an account to join the conversation.
Do you have an idea why?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
The solution will be directly edit the code of the "preload version" of your email through "Hikashop->System->Emails->Your emails"
Please Log in or Create an account to join the conversation.
Thanks!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
The solution will just be to edit the "preload version" of your email and change these lines :
And these lines :
Please Log in or Create an account to join the conversation.
I should do the same thing for my customer but could't find these lines anywhere in the «preload version».
It is also a rather old post so maybe this isn't done the same way anymore.
The idea is to show the total quantity of products in the mails to admin and customer.
Is there a way to do that?
regards
Please Log in or Create an account to join the conversation.
While the code changed, it's still roughly the same. If you look carefully in the preload, you'll see the pieces of code, with slight differences and you can apply the changes.
For example, for the first piece of code, it is now:
So you can apply the same changes and you'll get:
And it's the same for the second code. It is now:
Please Log in or Create an account to join the conversation.
Thank you.
I got this to work with your code and it calculates the total quantity of ordered items correctly.
However, it puts the value in the Discount (Rabatt), and it is also labeled Discount (Rabatt).
Is it not possible to make a separate line for this: i.e. Total Items 25
The customer gets the mail correctly with the proper discount.
regards
Please Log in or Create an account to join the conversation.
If you have it added to the discount it means that you didn't do the last change properly.
So revert that last change.
Instead, you can add:
Please Log in or Create an account to join the conversation.
thanks! That worked now.
The customer would like to show that value somewhere near the top. Is it even possible to show it somewhere else or can that only be done in the footer?
regards
Please Log in or Create an account to join the conversation.
It would be great if you could explain precisely what you want from the start next time.
It can be done yes.
Before the line:
Please Log in or Create an account to join the conversation.
I'm trying to avoid this with my customers and in this case I couldn't avoid it.
It works great now!
regards
Please Log in or Create an account to join the conversation.