Jump to content
Sign in to follow this  
CCSupport

Ability to Change Logo per client?

Recommended Posts

Hello,

 

Is there any way of changing the picture that appears on the top of the email/invoice that gets sent to the client on a per client basis?

 

I know this can be done permanently however I want the ability to change the picture per group of clients. Not to change the business name but for instance change the picture if it's a Web Hosting Client compared to Dedicated Hosting Client.

 

I was thinking I could just create a new Email Template however I cannot see a way of changing the picture.

 

Any advice would be appreciated.

Share this post


Link to post
Share on other sites

I don't know if this would work, but you could modifying the Global Email Header Content...

 

setup -> general settings -> mail -> Global Email Header Content

 

I think by default it contains the following:

 

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>

I don't think you can use PHP or Smarty in this box, so one option would be to delete the above and copy & paste it to the start of your email templates...

 

you could then either specify the logo URL in each template, or use {if} statements to change the logo based on the order content... perhaps something along the lines of...

 

{if $service_id eq "1"}
<p><a href="{$company_domain}" target="_blank"><img  src="hosting_logo.png" alt="{$company_name}" border="0" /></a></p>
{else}
{if $service_domain}
<p><a href="{$company_domain}" target="_blank"><img  src="domain_logo.png" alt="{$company_name}" border="0" /></a></p>
{else}
<p><a href="{$company_domain}" target="_blank"><img  src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>
{/if}

now you'd have to sort out the path to the logo images, but I think it should work - though you might need to send a few test emails to sort out the options!

 

if your using client groups, then that would make the coding slightly easier...

 

{if $client_group_id eq "1"}
<p><a href="{$company_domain}" target="_blank"><img   src="hosting_logo.png" alt="{$company_name}" border="0" /></a></p>
{else}
{if $client_group_id eq "2"}
<p><a href="{$company_domain}" target="_blank"><img   src="domain_logo.png" alt="{$company_name}" border="0" /></a></p>
{else}
<p><a href="{$company_domain}" target="_blank"><img   src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>
{/if}

I think a similar solution might work with the invoice pdf, but that would be much more complicated - it'd have to use PHP to modify the logo if statements and I suspect would also have to query the database to find the user's client group... hmm perhaps you could get around querying the db by adding a custom field mirroring the content of the client group - that field would be passed to the pdf and I think you could use conditional if statements with it...

 

but as I say, this is more complex than modifying the email template - so it might be a good idea to search the forums/appstore to see if anyone has done it.

Share this post


Link to post
Share on other sites
On 1/3/2014 at 1:08 PM, brian! said:

<p><a href="{$company_domain}" target="_blank"><img src="{$company_logo_url}" alt="{$company_name}" border="0" /></a></p>

 

 

can't find this in my global email header
i understand this solution is from 2014, is it still compactable with the v8

Share this post


Link to post
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.

Sign in to follow this  

  • Similar Content

    • By ocastaned
      How can I make WHMCS logo bigger. I currently have it this one, but I need it a little bigger:
      https://sersegu.com/31612j.png
       
       
    • By waltr100
      How do you resize the logo on the header? My logo is way too small I've tried editing some lines in my theme's (twenty-one) css file but nothing seemed to work.
      Thanks for any help!
    • By MarcoD
      Is there a way to choose the emails being sent to clients at a certain client action?
      When a new client places an order, (Hosting + Domain) in WHMCS, the client gets 6 emails.
      Client sign up email
      Order Confirmation
      Invoice Created
      Invoice Payment Confirmation
      Hosting account welcome e-mail
      Domain Registration Confirmation

      I like to minimize this. Disabling email(s) at the System settings > Email Templates does not seem to be the right way.

      When I, for example, disable the “Invoice created” email, so the new customer won't get this email at the ordering action.
      Then, I guess other existing customers do not receive the “Invoice created” email when there is a service or product due.

      I oversee something  inside WHMCS to send chosen emails on certain actions on auto pilot...
       
    • By web2008
      I thought the current calendar year {$ date_year} should work in email templates, but it does not.
      Does anyone know anything more about this?
    • By zitu4life
      Hello there
      I have   4   Mail in payment gayeway and soon 3rd payment gateway to get it active...    I created them using default WHMCS one´s and just editing  names. I was thinking   if i could have them with  logo.
      I saw an old   @brian! post  from 2018   related to paypal, but  after  look    deeper I guess it do not aply   for mail in payment.
      There any other post outthere   to pointing me on the right direction, any inputs where to look at?
  • 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