Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

BCS category meta mod not quite working right

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 04-18-2008, 12:13 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default BCS category meta mod not quite working right

I am trying out the category title mod from BCS before I buy the product meta tag plus mod. Actually as soon as I get this to work I will be purchasing it. Anyway the problem I am having is that the category title is also being inserted into the pages for all the products under the same category. For example if I add the title to my jar candle page <title>12345</title> then the page for my 5oz jar products also has the title 12345. Obviously this isn't good. Below is a copy of the code between my <title></title> tags in customer/home.tpl

<title>
{*BCSE Begin*}
{if $cat and $current_category.meta_title and not $smarty.get.productid}
{$current_category.meta_title}
{else}
{*BCSE End*}
{strip}

{* Custom Title Tag Start *}
{if $main eq "catalog" and $current_category.category eq ""}
Scented Candles Wholesale Wedding Candle
{section name=position loop=$location step=-1}
{math equation="x-1" x=$smarty.section.position.total assign="secondlast"}
{if $smarty.section.position.iteration ne $smarty.section.position.total}{$location[position].0|escape}{/if}
{if $smarty.section.position.iteration ne $secondlast}{if not %position.last%} {/if} {/if}
{/section}
{elseif $main eq "help"}
{$lng.txt_subtitle_help}
{elseif $main eq "cart"}
{$lng.txt_subtitle_cart}
{elseif $main eq "checkout"}
{$lng.txt_subtitle_checkout}
{elseif $main eq "order_message"}
{$lng.txt_subtitle_thankyou}
{elseif $main eq "wishlist"}
{$lng.txt_subtitle_wishlist}
{elseif $main eq "giftcert"}
{$lng.txt_subtitle_giftcerts}
{elseif $main eq "pages"}

{$page_data.title } - Wholesale Candles Wedding Favors Reed Diffusers

{else}
{section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} - {/if}{/section}{/if}

{* Custom Title Tag End *}

{*
{capture name=title}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%} - {/if}
{$location[position].0|strip_tags|escape}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%} - {/if}
{$location[position].0|strip_tags|escape}
{/section}
{/if}
{/capture}
{if $config.SEO.page_title_limit <= 0}
{$smarty.capture.title}
{else}
{$smarty.capture.title|replace:"&nbsp;":" "|truncate:$config.SEO.page_title_limit|replac e:" ":"&nbsp;"}
{/if}
*}
{/strip}
{/if}{*BCSE Added*}
</title>

any help would be appreciated.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #2  
Old 04-18-2008, 12:23 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: BCS category meta mod not quite working right

Moving to Third Party Add-Ons
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:51 AM.

   

 
X-Cart forums © 2001-2020