Cain72 Posted November 12, 2014 Share Posted November 12, 2014 Hi guys, just a quick one, I want to preview certain pages within the system that i have edited, eg: /cart.php?a=complete (just fyi, its the page after a CC purchase etc ..) currently im doing it the hardway, literally going through the steps creating and order using the CC proccess.. i guess hitting two birds with one stone, testing and editing at the same time.. i dont know if thats just plain dumb or im being overly efficient .. lol i did try the following info from the doc's, perhaps im doing it wrong You can preview your new template by specifying it using an url "on the fly" such as http://www.yourdomain.com/whmcs/?systpl=xxxxx where xxxxx is the name of your new template. Can someone please point this over tired muppet in the right direction .. lol Cain 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 12, 2014 Share Posted November 12, 2014 the "systpl" parameter used to change WHMCS client area template on the fly and "carttpl" also used to change the template of shopping cart "cart.php" what exactly you need to do? 0 Quote Link to comment Share on other sites More sharing options...
Cain72 Posted November 12, 2014 Author Share Posted November 12, 2014 hey sent, just trying to view complete.tpl its the page after purchase with a CC, "Order complete here is your order number & invoice etc ..." just cant seem to doit the usual way though.. i know for sure im doin something retarded lol tried the /?systpl=complete and /?carttpl=complete no love.. Cain 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 12, 2014 Share Posted November 12, 2014 you mean this page: https://demo.whmcs.com/cart.php?a=complete if you tried to open it directly it will redirect you to "/cart.php" even if you logged in and have products in shopping cart, i think it expect some POST data to proceed! if you need to stay in the same window without being redirected to the Gateway website you can Disable Javascript in your browser or comment out the redirection function (JS code) in complete.tpl file of your cart template. i hope this help 0 Quote Link to comment Share on other sites More sharing options...
Cain72 Posted November 12, 2014 Author Share Posted November 12, 2014 hmm yeah JS, never even thought of that variable.. definately helps, ill take a look sentq, thanks mate, Cain 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.