View Single Post
  #29  
Old 03-11-2013, 08:25 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default Re: Introducing... xBanners for X-Cart

Quote:
Originally Posted by Will Hayes
Hi Albert,

When you say "the sample code for the insert" - do you mean the xBanners template tag?
If so, then this code is generated automatically when you create a template position tag.
The tag should look something like this (maybe with a different number appended to it)
{$txs_xb_pos_1}

Simply copy & paste this code into your x-cart smarty template file - the file you pate it into will determine where exactly the xBanners will appear on your website.

If you have any more questions, try sending to our support helpdesk
http://support.thexcartstore.com
- they will be responded to much quicker there.

regards
W.


hi, wil, it doesn't work, i tried to insert into home.tpl and /busy-kitchen/customer/menu_cart.tpl, both are not working, below is my /busy-kitchen/customer/menu_cart.tpl

{if $config.General.ajax_add2cart eq 'Y' and $main ne 'cart' and $main ne 'checkout'}
{include file="customer/ajax.minicart.tpl" _include_once=1}
{/if}
{capture name=menu}
<!-- Header Information Box, Navigation & Search Begin -->
<div id="info-box-holder" class="menu-minicart ajax-minicart full-mini-cart"> <!-- Info Box Holder Open -->

<div class="h-left"> <!-- Header Panel Left Open -->

<!-- Info Navigation Begin -->
<ul id="info-box-navi">
{foreach from=$speed_bar item=sb name=tabs}
<li {if $smarty.foreach.tabs.last} class="last"{/if}><a href="{$sb.link|amp}">{$sb.title}</a></li>
{/foreach}
</ul>
<!-- Info Navigation End -->

{include file="customer/search.tpl"}

<!-- Header Controls Begin -->
{include file="customer/cart_checkout_links.tpl"}
<ul class="h-controls2">
<li class="hc-link-a"><a href="help.php" title="{$lng.lbl_help_zone|escape}">{$lng.lbl_help _zone|escape}</a></li>
{if $all_languages|@count gt 1}
<li class="hc-link-b">

{foreach from=$all_languages item=l name=languages}
{if $store_language eq $l.code}
{assign var="lng_dspl" value=$l.language}
{/if}
{/foreach}

<a id="info-lang">{$lng_dspl|default:$store_language}</a>
<div id="languages">
<ul>
{if $config.Appearance.line_language_selector eq 'F'}
{foreach from=$all_languages item=l name=languages}
{if $store_language eq $l.code}
<li>
<strong class="language-code lng-{$l.code}{if $smarty.foreach.languages.last} language-last{/if}"><img src="{if not $l.is_url}{$current_location}{/if}{$l.tmbn_url|amp}" alt="{$l.language|escape}" width="{$l.image_x}" height="{$l.image_y}" title="{$l.language|escape}" /></strong>
</li>
{else}
<li>
<a href="home.php?sl={$l.code}" class="language-code lng-{$l.code}{if $smarty.foreach.languages.last} language-last{/if}">
<img class="language-code-out" src="{if not $l.is_url}{$current_location}{/if}{$l.tmbn_url|amp}" alt="{$l.language|escape}" title="{$l.language|escape}" width="{$l.image_x}" height="{$l.image_y}" onmouseover="javascript:$(this).removeClass('langu age-code-out').addClass('language-code-over');" onmouseout="javascript:$(this).removeClass('langua ge-code-over').addClass('language-code-out');" />
</a>
</li>
{/if}
{/foreach}
{else}
{foreach from=$all_languages item=l}
<li><a href="home.php?sl={$l.code}">{$l.language}</a></li>
{/foreach}
{/if}
</ul>
</div>
</li>
{/if}
</ul>
<!-- Header Controls End -->

</div> <!-- Header Panel Left Close -->

<div class="h-right"> <!-- Header Panel Right Open -->

<!-- Header Phone Number Begin -->
{assign var="phone_num" value=$config.Company.company_phone}
<div class="h-phone"><strong>{if strlen($phone_num) lt 12}{$lng.lbl_txs_bk_tel}{/if}{$phone_num}</strong></div>
<!-- Header Phone Number Close -->

<!-- Header Info Cart Box Begin -->
<div class="h-panel">

<!-- MiniCart Link Begin -->
<div class="minicart-link" title="{$lng.lbl_txs_minicart}">
<img class="icon ajax-minicart-icon" src="{$AltSkinDir}/images/h-minicart-arrow.png" alt="Ajax Minicart" />
</div>
<!-- MiniCart Link End -->

<div class="h-text"><h3><a href="cart.php" title="{$lng.lbl_your_cart|escape}">{$lng.lbl_your _cart|escape}</a></h3></div>

{include file="customer/minicart_total.tpl"}



</div>
<!-- Header Info Cart Box End -->

</div> <!-- Header Panel Right Close -->

</div> <!-- Info Box Holder Open -->
<!-- Header Information Box, Navigation & Search End -->


{$txs_xb_pos_2}
{/capture}



{if $config.General.ajax_add2cart eq 'Y' and $main ne 'cart' and $main ne 'checkout' and $minicart_total_items gt 0}
{assign var=additional_class value="menu-minicart ajax-minicart"}
{else}
{assign var=additional_class value="menu-minicart"}
{/if}
{if $minicart_total_items gt 0}
{assign var=additional_class value="`$additional_class` full-mini-cart"}
{/if}

{$smarty.capture.menu}

thanks
__________________
X-Cart Gold 4.6
Reply With Quote