Jump to content

Conditional Formatting for Invoice based on Client Group


Recommended Posts

Hello,

 

I was wondering if anyone ever tried to change the logo being displayed on the invoice based on a predetermined condition. I two different client classes and I created 2 logo variations that have a different symbol next to them to reflect the service.

 

Has anyone ever done the following:

 

If client group = "client group 1" then

display logo 1

Else

display logo 2

 

Providing any insight, sharing your experience, or pointing me in the right direction is much appreciated.

 

Best,

 

Matt

Link to comment
Share on other sites

Matt,

 

it's something that I thought about a while back - I think it is possible, but it would be a little more involved than your {if} statement because, by the time you get to the invoice (html or pdf) page, you don't have direct access to the client group value.

 

therefore, you'd likely have to first query the database to get the value and then you could use your {if} statement.

 

also, you would need to possibly modify your emails to show the correct logo too.

 

http://forum.whmcs.com/showthread.php?83746-Ability-to-Change-Logo-per-client

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated