Jump to content
  • 0

Theme alteration via GET


RS 🏴

Question

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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