Jump to content

How to use php variable code in html block? cart.php hosting package descriptions.


Sfed

Recommended Posts

http://demo.whmcs.com/cart.php

Hosting packages -> Starter and Advanced packages.

 

I want to use language variables in their description since default language is no good for them.

 

I have language.php file with,

$_LANG['mylanguage'] = "Testing";

 

Then usually reading language is simple in .tpl files,

$tblhtml = '<table width="100%" bgcolor="#ccc" cellspacing="1" cellpadding="2" border="0">
   <tr height="30" bgcolor="#efefef" style="font-weight:bold;text-align:center;">
       <td width="100%">'.$_LANG['mylanguage'].'</td>
   </tr>';

 

No problem in .tpl file as this either,

<p>{$LANG.mylanguage}</p>

 

But I can not get it to work for some reason in html block,

{content}

 

Yet HTML code like <br/ > works fine in the HTML block, but not php code.

 

whmcs answer was,

'You cannot use smarty variables in the cart descriptions.

 

You may be able to create a workaround of some form, but we would be unable to support this.'

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