Jump to content

Display WHMCS variables from fetched file


newteks

Recommended Posts

Hello,

 

I am very happy with WHMCS and I started to make my own template.

 

in order to have clean code I use the command FETCH to bring different parts of code into the homepage.tpl for example

<div id="starthere">

<div id="domain_search">
   	{fetch file='../support/templates/newteks/modules/domain_search.html'}
   </div>

   <div id="order_products">
   	{fetch file='../support/templates/newteks/modules/order_products.html'}
   </div>

    <div id="customer_login">
   	{fetch file='../support/templates/newteks/modules/admin_your_account.html'}
   </div>

   <div id="portfolio">
   	{fetch file='../support/templates/newteks/modules/portfolio.html'}
   </div>
</div>


   <div id="slider_content">
   	{fetch file='../support/templates/newteks/modules/slider.html'}
   </div>

 

 

Some of these HTML files that I fetch contain WHMCS variables like {$LANG.clientareahomeorder}

 

When I view the template I don't see the text I suppose to see but I see {$LANG.clientareahomeorder}

 

 

How I can see the value of the variable when the variable is in an HTML file that I fetch into the template ?

 

 

thanks

Link to comment
Share on other sites

thanks for the reply.

 

I change to include instead of fetch so I added for example this

{include file='order_products.tpl'}

 

and order_products.tpl is in the same directory with homepage.tpl and contains

 

<img src="templates/newteks/img/title_new_order.png"/><br /><p style="color:#fff; text-align:justify; font-family:Verdana, Geneva, sans-serif; font-size:10pt;">{$LANG.clientareahomeorder}<br /></p>

<form method="post" action="cart.php">

<p align="center"><input type="submit" value="{$LANG.clientareahomeorderbtn} »" class="btn" /></p>

</form>

 

 

and nothing shows up !!!!

 

strange I don't know what I am doing wrong.

 

 

can you please advice.

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