-1

maybe somebody can help me with this.

I have 2 brands working in 1 whmcs, i used a custom field called "Provider" and according to that email designs and template is being loaded now. But!

I need or want that if a customer login to whmcs, if he has selected provider X load template X and if i his profile he has selected provider Y load template Y.

Any idea about how can i do this via hook? thank you!

Alexis
  • 1
  • 1

2 Answers2

0

You can change template on the fly by setting systpl variable in the url to the desired template folder, as mentioned in the Testing docs, for example:

https://example.com/index.php?systpl=template-x

wesamly
  • 1,484
  • 1
  • 16
  • 23
0

thank you for your answer.

My question was focused to this "I need or want that if a customer login to whmcs, if he has selected provider X load template X and if i his profile he has selected provider Y load template Y."

I mean, that i need that template being loaded not via URL, but, detect a custom field and load a determinated template according to that.

Some idea?

Thank you!

Alexis
  • 1
  • 1
  • you should've updated your question to clarify your needs, other developers will think this is an answer and won't read it. Also you can comment under the my answer if you like. Keep this in mind for future questions ;) – wesamly Oct 17 '17 at 15:22
  • Regarding your question, I am not aware of any method besides redirecting to the given URL. – wesamly Oct 17 '17 at 15:25