- Posts: 156
- Thank you received: 4
[solved]Hide custom field if empty on invoice pdf?
- Baptiste
- Topic Author
- Offline
- Premium Member
-
Less
More
10 years 4 months ago - 10 years 4 months ago #53599
by Baptiste
[solved]Hide custom field if empty on invoice pdf? was created by Baptiste
Hi!
I'm using a custom field (in fact, 3 custom fields depending on the category concerned).
In my invoice, i entered custom field code : [CUSTOM1] [CUSTOM2] [CUSTOM3]. Depending on the categoy choosen, only custom1 custom2 or custom3 has a value.
so, here is what is displayed in the invoice, is custom2 is used :
Labelcustom : [CUSTOM1] mycustom [CUSTOM3]
Is there a way to hide CUSTOM1 and CUSTOM3 if they are empty? or another approach?
Thanks a lot!
Baptiste
I'm using a custom field (in fact, 3 custom fields depending on the category concerned).
In my invoice, i entered custom field code : [CUSTOM1] [CUSTOM2] [CUSTOM3]. Depending on the categoy choosen, only custom1 custom2 or custom3 has a value.
so, here is what is displayed in the invoice, is custom2 is used :
Labelcustom : [CUSTOM1] mycustom [CUSTOM3]
Is there a way to hide CUSTOM1 and CUSTOM3 if they are empty? or another approach?
Thanks a lot!
Baptiste
Last edit: 10 years 4 months ago by Baptiste. Reason: solved
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 4 months ago #53668
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
Hi Baptiste
I am sorry. At the moment, we don't have a solution for this problem, so I am afraid of you will need to find a different option. There is not a different approach you can use
Regards,
Tuan
I am sorry. At the moment, we don't have a solution for this problem, so I am afraid of you will need to find a different option. There is not a different approach you can use
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Baptiste
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 156
- Thank you received: 4
10 years 4 months ago #53713
by Baptiste
Replied by Baptiste on topic Hide cutsom field code if empty on invoice pdf?
Thanks for your answer... i will think of that...
have a good day!
have a good day!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 4 months ago #53767
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
I think I can customize the code for you to make it works this case. However, this week I am busy, so we will come back to this next week
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Baptiste
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 156
- Thank you received: 4
10 years 4 months ago #53807
by Baptiste
Replied by Baptiste on topic Hide cutsom field code if empty on invoice pdf?
Thank you very much for this answer, Tuan, this is a real good news for me!
As i have another subject ( here ) and you told me to send a ticket, i think it's better that you work on the two subjects in the same time. Let me tell you if you want me to open a ticket for that work (I understood you can't work on that this week)?
Of course, you can charge me with a bill for this work!
Have a good day,
Baptiste
As i have another subject ( here ) and you told me to send a ticket, i think it's better that you work on the two subjects in the same time. Let me tell you if you want me to open a ticket for that work (I understood you can't work on that this week)?
Of course, you can charge me with a bill for this work!
Have a good day,
Baptiste
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 4 months ago #53817
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
Hi Baptiste
Yes. Please just use a support ticket. As I mentioned, this week I am very busy, so we will work on it next week
Regards,
Tuan
Yes. Please just use a support ticket. As I mentioned, this week I am very busy, so we will work on it next week
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Baptiste
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 156
- Thank you received: 4
10 years 4 months ago #53852
by Baptiste
Replied by Baptiste on topic Hide cutsom field code if empty on invoice pdf?
wow, concerning this subject, i solved the problem! i discover that different fields (custom1, custom2, custom3) can have the same name, so i simply have to name them "custom", and to call them [CUSTOM] it doesn't matter if they are different fields. Great!
Concerning the second point ( here ) as you suggest, il will open a ticket.
Great tool, indeed!
Concerning the second point ( here ) as you suggest, il will open a ticket.
Great tool, indeed!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
10 years 4 months ago #53868
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide cutsom field code if empty on invoice pdf?
Great. Thanks for the update !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.