Jump to content

Add products Detail in Homepage


hebergeni

Recommended Posts

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

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