Serenade Posted April 13, 2015 Share Posted April 13, 2015 I'm looking for a way to prevent direct access to the cart.php file. I use a custom signup page that basically has custom cart links to automatically add all the different configurations and template settings. If I could get cart.php to redirect to my domain.com/signup link when there's nothing past cart.php/ I think that would be ideal. Any thoughts or ideas? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 13, 2015 Share Posted April 13, 2015 so you need to redirect access to /cart.php to /somethingelse.php all the time, or only if the Shopping cart is empty? 0 Quote Link to comment Share on other sites More sharing options...
Serenade Posted April 15, 2015 Author Share Posted April 15, 2015 so you need to redirect access to /cart.php to /somethingelse.php all the time, or only if the Shopping cart is empty? Basically only if it's not accessed through a custom link. All the links on my custom signup page are formatted like this: https://domain.com/cart?a=add&pid=1&carttpl=template1&billingcycle=quarterly&skipconfig=1&cc=1 So I suppose yes, redirect if the cart is empty would make sense. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 15, 2015 Share Posted April 15, 2015 try this: http://forum.whmcs.com/showthread.php?99794-Redirect-cart-php-to-main-website!!&p=414834#post414834 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.