Greystoke Posted May 23, 2011 Share Posted May 23, 2011 Hi, If a customer has javascript disabled in their browser and you are using the Ajaxcart Template, they don't get any error or warning telling them that they need to enable javascript. Should this be there or is there a way to redirect them to a non javascript template. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted May 23, 2011 Share Posted May 23, 2011 I think every template uses Javascript even for example web20cart: onclick="window.location='/clients/cart.php?a=add&pid=25'" It would be nice if the cart didn't require javascript but too be honest the number of users without javascript enabled must be small. Then when you think about those without javascript but interested in hosting it must be tiny 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted May 24, 2011 Share Posted May 24, 2011 As far as I know, WHMCS should automatically re-direct them to an alternative order form. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 24, 2011 Share Posted May 24, 2011 (edited) You would add something like this to either your header or footer templates <noscript>Sorry, your browser does not support JavaScript!</noscript> I actually didn't have it in mine so I just added this in my header.tpl just under the <body> tag <noscript><div align="center" class="errorbox">Sorry, your browser does not support JavaScript!<br /><br />To be able to order products you will need to enable JavaScript in your browser.</div></noscript> Edited May 24, 2011 by sparky 0 Quote Link to comment Share on other sites More sharing options...
hostleet Posted May 24, 2011 Share Posted May 24, 2011 You would add something like this to either your header or footer templates I actually didn't have it in mine so I just added this in my header.tpl just under the <body> tag Thanks for sharing! 0 Quote Link to comment Share on other sites More sharing options...
Greystoke Posted May 25, 2011 Author Share Posted May 25, 2011 As far as I know, WHMCS should automatically re-direct them to an alternative order form. It doesn't look like WHMCS does this. You would add something like this to either your header or footer templates I actually didn't have it in mine so I just added this in my header.tpl just under the <body> tag Thanks for this. 0 Quote Link to comment Share on other sites More sharing options...
Lawrence Posted May 25, 2011 Share Posted May 25, 2011 Nobody in their right mind disabled JavaScript nowadays, considering how much of the web depends on it being enabled. I've never seen it disabled anywhere, except by the few paranoid users who you wouldn't want to deal with in the first place 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 25, 2011 Share Posted May 25, 2011 Well if those few paranoid ones do happen to browse to a site with this in it then they will at least get warned that it is needed. 0 Quote Link to comment Share on other sites More sharing options...
steven300 Posted May 31, 2011 Share Posted May 31, 2011 Hi, I think that day by day the java script working is enable.Then when you think about those without javascript but interested in hosting it must be tiny. 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.