Jump to content

Override variables in Client Signup Email email template


AAcat

Recommended Posts

Hi whmcslovers,

i'm developing a module with some hooks in whmcs 7.10.x to override some variables in whmcs email template, after some checks in database between two tables, tblclients and custom othern on joined between them.
My goal is try to overrides some $merge_fields whmcs uses normally in its email templates as "whmcs_url". In mine EmailPreSend functions all works great and i can  overrides what i want for all email templates without only  "Client Signup Email", in this email i'm failing my goal and whmcs_url ( for example ) is empty instead override with a custom data.

After a client registration my function check if he comes from a certain state ( for example US ) and assign it to a client group ( i already created in whmcs ), if it is true i need to change whmcs_url with a different value.
Is there a different way  between "Client Signup Email" works with other one and for example "Order Confirmation" email ?
A strange behavior is that if the automatic EmailPreSend ( after client registration ) fail for what i want, if i send this email from his clientarea a second time it works correctly...🙄

Thanks.

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