Gears Posted October 9, 2009 Share Posted October 9, 2009 Hi there, Is it possible to pass some parameters in the URL to invoke a different frontend template? I want to keep my current template, but I have another website that I'd like to use a different template for (so that it matches the site design). Not asking to have two different instances for two different domains... just a different template. Any thoughts on this? * Did a quick search and couldn't find an answer to my question 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 9, 2009 Share Posted October 9, 2009 yes, you can pass the template to use as part of the URL ?systpl=(template) 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted October 9, 2009 Author Share Posted October 9, 2009 yes, you can pass the template to use as part of the URL?systpl=(template) This is great, thanks for letting me know 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted October 9, 2009 Author Share Posted October 9, 2009 It looks like once the template is changed, it stays that way... I suppose something is set in the user's cookie? 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted October 9, 2009 Author Share Posted October 9, 2009 And can this not be done with direct shopping cart links? http://www.domain.com/cart.php?a=add&pid=2 http://www.domain.com/cart.php?a=add&pid=2?systpl=portal Doesn't seem to work for me 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 9, 2009 WHMCS CEO Share Posted October 9, 2009 Yes it can be done on any page, look @ http://wiki.whmcs.com/Linking_to_WHMCS for more examples Matt 0 Quote Link to comment Share on other sites More sharing options...
slig Posted October 29, 2009 Share Posted October 29, 2009 (edited) Hi, I need to do this in a prepend script or override it in $configuration.php. It doesn't look to use either $_GET or $_REQUEST vars. ie: $_REQUEST['systpl'] = $_GET['systpl'] = 'mytemplate'; is ignored. which server variable does whmcs grab systpl from? If it's all super secret squirrel then a mod_rewrite would probably fix it also right? cheers. Edited October 29, 2009 by slig 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted October 29, 2009 Share Posted October 29, 2009 Do you use 4.1.1 ? 0 Quote Link to comment Share on other sites More sharing options...
slig Posted October 29, 2009 Share Posted October 29, 2009 Running 4.0.1 at present 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted October 29, 2009 Share Posted October 29, 2009 You must upgrade to 4.1.1 to get this to work. 0 Quote Link to comment Share on other sites More sharing options...
slig Posted October 29, 2009 Share Posted October 29, 2009 yeah an upgrade isn't an option atm, do you mean 4.1.1 will solve the $_REQUEST override? I'll try the mod_rewrite option otherwise, no problem. thanks 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted October 29, 2009 Share Posted October 29, 2009 The direct shopping cart links works in 4.1.1 For the $_REQUEST override, I don`t know. 0 Quote Link to comment Share on other sites More sharing options...
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.