Jump to content
  • 0

Invoice with "IF" statements for Host Services


Question

Posted

We are trying to accomplish the following...

Within our invoices we ONLY want the following statement to be displayed within invoices IF the invoice is for a service that is RE-curring.

Such as with Web Hosting.
 

Quote

Did you know you can Enroll in "Auto Pay" ?

If you have an on-going service with us, you can schedule your payment to be auto-debited each month, every 6 months, or annually.
Save time and never miss a payment! Enroll in "Auto Pay" and your balance will be paid automatically for you
.


If the invoice is one that is NOT a RE-curring service, or  ONLY requires a "single payment" we would like the above statement NOT to appear in the invoice.

===========


Look forward to your reply.

Thanks in advance

6 answers to this question

Recommended Posts

  • 0
Posted

As an overview, you'd have to clone and modify an invoice template and perform queries on any line items that contain service IDs to see if those services are one-time or recurring to determine whether to display the message. If you only offer recurring services and not one-time services, then you can just check for the presence of a service ID for line items. If any exist, then it is recurring and you shouldn't have to perform any queries.

  • 0
Posted

Thanks Paul,

Can you please provide a sample " IF Statement " and an " ELSE Statement " code of what this would look like ?

When I go to Packages - - > Browse Packages

=================

There is ...

Package ID : 1

Name : VPS Web Host Package

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...