sonuyos Posted April 14, 2015 Share Posted April 14, 2015 Hey guys, I want to redirect my cart.php to my website... example my website is https://mydomain.com and whmcs is in https://mydomain.com/billing I want users to order from my website only... not to see cart or able to select in cart...direct order...I have seen some people doing it...please help, thank you TLDR : want to redirect /billing/cart.php to / and still clients be able to order certain stuff!! 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted May 12, 2015 Share Posted May 12, 2015 You would need to edit the TPL files in the WHMCS orderform template you are using. The products.tpl file is the one that controls the display of your products on the WHMCS cart.php page. So you could remove all code from that TPL file and replace it with this: <meta http-equiv="refresh" content="0;url=http://mydomain.com/products/" /> This would ensure that the only way to view your products in on your websites product page (e.g. http://mydomain.com/products/ ) Then if you want to allow your users to view the contents of their cart in WHMCS (so that they can checkout/order), you would need to direct them to this link: https://mydomain.com/billing/cart.php?a=view If you don't have a products page (e.g. if you are using direct product links on a range of pages), you could use this code instead: <meta http-equiv="refresh" content="0;url=https://mydomain.com/billing/cart.php?a=view" /> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 12, 2015 Share Posted May 12, 2015 http://forum.whmcs.com/showthread.php?99794-Redirect-cart-php-to-main-website!!&p=414835#post414835 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.