hebergeni Posted August 19, 2015 Share Posted August 19, 2015 Hi, I need to add this code in hompage.tpl but nothing is showing up <div class="block-s2"> <!--Pricing Tables--> <div class="row"> {foreach key=num item=product from=$products} <div class="col-lg-3 col-sm-6"> <div class="pricing-table-3 {if $num == 1}active position-relative{/if}"> <h3>{$product.name}</h3> <div class="rate"> {if $product.bid}{$LANG.bundledeal}{if $product.displayprice} {$product.displayprice}{/if} {else}{if $product.pricing.hasconfigoptions}{$LANG.startingfrom}:<br />{/if} {if $product.paytype eq "free"} <label class="label label-success label-xlg arrowed-in-right arrowed-in">{$LANG.orderfree}</label> {elseif $product.paytype eq "onetime"} <div class="price"> <div class="amount"> {$product.pricing.onetime} </div> <br /><label class="label label-success label-xlg arrowed-in-right arrowed-in">{$LANG.orderpaymenttermonetime}</label> </div> {else} <div class="price"> <div class="amount">{$product.pricing.minprice.price}</div> <div class="term"><br />{if $product.pricing.minprice.cycle eq "monthly"}{$LANG.orderpaymenttermmonthly}{elseif $product.pricing.minprice.cycle eq "quarterly"}{$LANG.orderpaymenttermquarterly}{elseif $product.pricing.minprice.cycle eq "semiannually"}{$LANG.orderpaymenttermsemiannually}{elseif $product.pricing.minprice.cycle eq "annually"}{$LANG.orderpaymenttermannually}{elseif $product.pricing.minprice.cycle eq "biennially"}{$LANG.orderpaymenttermbiennially}{elseif $product.pricing.minprice.cycle eq "triennially"}{$LANG.orderpaymenttermtriennially}{/if}</div> </div> {/if} {/if}<br /> </div> {if $product.featuresdesc}<div class="desc">{$product.featuresdesc}</div>{else}{/if} <ul> {foreach from=$product.features key=feature item=value} <li>{$value} {$feature}</li> {/foreach} </ul> {if $product.qty!=""}<small><em>({if $product.qty eq "0"}{$LANG.outofstock}{else}{$product.qty} {$LANG.orderavailable}{/if})</em></small>{/if}<br /> <button type="button" value="{$LANG.ordernowbutton}"{if $product.qty eq "0"} disabled{/if} onclick="window.location='{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}'" class="btn {if $num == 1} btn-success {/if}btn-primary" />{if $product.pricing.hasconfigoptions}{$LANG.orderconfigure}{else}{$LANG.ordernowbutton}{/if} <i class="fa fa-chevron-right icon-on-right"></i></button> {if $num == 1} <div class="ribbon-wrapper"> <div class="ribbon bg-success">-10%</div> </div> {/if} </div></div> {/foreach} </div> Can you please help me Thank you 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 20, 2015 Share Posted August 20, 2015 it won't work because the variables/arrays that you are trying to use do not exist with homepage.tpl - it would be easier to use Data Feeds if you want to display product descriptions and prices on that page. http://docs.whmcs.com/Data_Feeds 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.