JimW Posted March 27, 2012 Share Posted March 27, 2012 I need descriptions for each product group. In products.tpl I thought this might work: {$LANG.group$gid} With these lang vars based on the group id: $_LANG['group1'], $_LANG['group2'], $_LANG['group2'] etc. Syntax wrong? However, this works: {$LANG.$gid} With these lang vars: $_LANG['1'], $_LANG['2'], $_LANG['1'] etc. Any any help would be greatly appreciated? I'm used to working with carts and having Category Descriptions, this is really lacking in WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted March 28, 2012 Share Posted March 28, 2012 just make the array multidimensional. in your lang files, define them like this $_LANG['1']['2'] = 'Description for product ID 2 in group id 1'; $_LANG['1']['4'] = 'Description for product ID 4 in group id 1'; Then reference them in your template as: {$LANG.$gid.$pid} 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.