I would like display conditionally a specific Custom text for 'Terms and conditions' on my proforma invoice. In practice that mean I would like display this text only when the invoice is unpaid (normally when using offline payment mode). When is paid I would like hide this text.
I suppose is possible using substitution with conditions but I don't know how to set the paid/unpaid condition in my substitution.
any suggestion please?
thank
I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
All invoice text can be customized at CBSubs > Settings > Display > Invoices. Scroll to the bottom to see custom substitutions available. I believe what you'll need is [DATE_PAID], but I don't know if it'll work in an IF statement or not. It's worth a shot however; usage would be as follows.
You may want to output the substitution first to see what its empty value would be though as it maybe null or just blank. Again, I don't know if this will work or not. Your alternative would be to use CB Query Field to grab their subscription and check if it is paid and output either 1 or 0 depending on its status then use the query field in an IF statement.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Unfortunately IF statement seem to be not taken in consideration. I tried also with [cb:if PAYMENT_STATUS="Completed"]Paid![/cb:if] but without success.
So I will see to use CB query but is a bit annoying to setup. Too bad conditions don't work in invoice..I suggest to you to implement this in future release...
thank
I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins