bss42 Posted May 6, 2012 Share Posted May 6, 2012 Hello, Is it possible to get some variable avalaible from all template , for example is it possible to retrieve list of services in the clientareahome template, when i try to add this code , the list is empty, so how could i get the $services variable Thanks Code in clientareahome.tpl that doesn't work : {foreach key=num item=service from=$services} <tr class="clientareatable{$service.class}"> <td>{if $service.product eq 'Licence 1 ClickBackup + 5 Go'}<img src="images/1cb.png" /> {elseif $service.product eq 'Licence InfoBackup Manager + 5 Go'}<img src="images/im.png" /> {elseif $service.product eq 'Produit Test'}Produit Test{/if}</td> <td>{$service.amount}</td> <td>{$service.billingcycle}</td> <td>{$service.nextduedate}</td> <td><form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails"> <input type="hidden" name="id" value="{$service.id}" /> <input type="image" src="images/details_open.png" alt="{$LANG.clientareaviewdetails}" /> </form></td> </tr> {foreachelse} <tr> <td colspan="6">{$LANG.norecordsfound}</td> </tr> {/foreach} 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.