AndyW Posted August 5, 2018 Share Posted August 5, 2018 I find the standard_cart template files have paths hardcoded such as css paths <link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/standard_cart/css/all.min.css?v={$versionHash}" /> <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/standard_cart/js/scripts.min.js?v={$versionHash}"></script> include paths {include file="orderforms/standard_cart/sidebar-categories.tpl"} {include file="orderforms/standard_cart/common.tpl"} When modifying the order form templates its a nightmare if you follow convention and rename the orderform template directory! What am I missing here? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 5, 2018 Share Posted August 5, 2018 they've been that way since SC was introduced in v6.1 - off the top of my head, I can't see any obvious reason why they coded to SC instead of {$carttpl}. 0 Quote Link to comment Share on other sites More sharing options...
AndyW Posted August 5, 2018 Author Share Posted August 5, 2018 Why would they recommend renaming the template directories used, from the standard, even have a security check for that and then make changes so difficult by leaving about +30 hardcoded URL in the files? If this has been there since 6.1 why am I the first person to raise this issue... I'm sure I'm missing something here... almost everyone modifies orderforms.... do they ignore WHMCS recommendations or is there more to this??? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 5, 2018 Share Posted August 5, 2018 35 minutes ago, AndyW said: If this has been there since 6.1 why am I the first person to raise this issue... 35 minutes ago, AndyW said: I'm sure I'm missing something here... almost everyone modifies orderforms.... but do they rename them? and how likely would it be that they modified common.tpl or sidebar-categories... they probably never notice that they're still using SC. 35 minutes ago, AndyW said: do they ignore WHMCS recommendations or is there more to this??? probably more the former than the latter... 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.