Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Theme alteration via GET

$
0
0
Hi folks,

Once I've purchased my license the plan is to have a central WHMCS installation being fed by a number of sub-brand websites which form the face of my operation. What I'm wondering is, if when someone clicks a link to order from one of the sub-brand sites (all of which I'll be hand coding), can I include info in the GET query string in order to manipulate the theme on the WHMCS installation?

For instance:
  1. Someone clicks a link taking them to domain.com/order/?ref=brandA (hypothetical URL)
  2. The theme then runs a conditional based on $_GET['ref']
  3. If the conditional meets any of the criteria in my switch statement, it loads some extra style info and the logo on the page is altered


I won't be going out of my way to make it appear seamless as each sub-brand site is going to look quite different, it'll just be a logo adjustment.

Is this possible? I'm assuming the I can insert raw PHP into my custom theme files.


Cheers,
Robert

Viewing all articles
Browse latest Browse all 13458

Trending Articles