| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
BCS category meta mod not quite working right | |||
|
|
Thread Tools |
#1
|
|||||||
|
|||||||
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:" ":" "|truncate:$config.SEO.page_title_limit|replac e:" ":" "} {/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 |
|||||||
#2
|
|||||||
|
|||||||
Re: BCS category meta mod not quite working right
Moving to Third Party Add-Ons
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|