Jump to content

Domain Pricing....


hypertoast

Recommended Posts

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....

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