Jump to content

Why are the orderform paths hardcoded in Standard_Cart template files?


AndyW

Recommended Posts

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?

Link to comment
Share on other sites

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???

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated