hypertoast Posted April 5, 2010 Share Posted April 5, 2010 I am trying to get the Domain Pricing from the bulkdomainchecker.php / tpl file.. I am wondering what Do I need to do to get the pricing show up directly as on the same page... Below is the snipped Smarty Template file bulkdomainchecker.tpl <h2>{$LANG.domainspricing}</h2> <table width="100%" border="0" cellpadding="10" cellspacing="0" class="data"> <tr> <th>{$LANG.domaintld}</th> <th>{$LANG.domainminyears}</th> <th>{$LANG.domainsregister}</th> <th>{$LANG.domainstransfer}</th> <th>{$LANG.domainsrenew}</th> </tr> {foreach key=num item=tldpricelist from=$tldpricelist} <tr> <td>{$tldpricelist.tld}</td> <td>{$tldpricelist.period}</td> <td>{if $tldpricelist.register}{$tldpricelist.register}{else}{$LANG.domainregnotavailable}{/if}</td> <td>{if $tldpricelist.transfer}{$tldpricelist.transfer}{else}{$LANG.domainregnotavailable}{/if}</td> <td>{if $tldpricelist.renew}{$tldpricelist.renew}{else}{$LANG.domainregnotavailable}{/if}</td> </tr> {/foreach} </table> Below is the Client area file I created... <?php define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = $_LANG['clientareatitle']; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="test.php">Test</a>'; initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav); if ($_SESSION['uid']) { # User is Logged In - put any code you like here } # To assign variables in Smarty use the following syntax. # This can then be used as {$variablename} in the template $smartyvalues["tldpricelist"] = $tldpricelist; # Define the template filename to be used without the .tpl extension $templatefile = "test"; outputClientArea($templatefile); ?> However, nothing happens, just the table headers show up... Any advise on getting the domain pricing automatically show up.... 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted April 5, 2010 Share Posted April 5, 2010 Just above this line $smartyvalues["tldpricelist"] = $tldpricelist; you need to query the database to get the prices. 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.