| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Problems with BCSE Category Title Plugin | ||||
![]() |
|
|
Thread Tools |
#1
|
|||||||
|
|||||||
![]() I tried to install the BCSE Category Plugin from here: http://bcsengineering.com/store/customer/product.php?productid=161&cat=7&page=1
But the installation instructions appear to have caused a problem: now all product pages have the same title as their Category. This is how my home.tpl currently looks: Code:
I believe the problem is with the 2nd IF: {if $cat and $current_category.meta_title and not $smarty.get.productid} because if I comment this out, the product details pages show their correct title. It appears that this IF is evaluating true for product pages, and it shouldn't be, but I don't know enough about how these variables get set, to know what to change. I would hazzard a guess and say that this is the problem: and not $smarty.get.productid as it appears the intention here is to exclude product pages. On a more general note, my <Title> is a rather confused mess now, with several different mods overlapping. Anyone got a better way of laying all this out? Many thanks,
__________________
X-Cart Gold v4.1.10 Manchester, UK Get SEO, PPC or just advice from Intrinsic Marketing |
|||||||
#2
|
|||||||
|
|||||||
![]() Moving to Third Party Add-Ons
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Try:
{if $current_category.categoryid and $current_category.meta_title and not $smarty.get.productid} |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
Let us know if Jon's suggestion does or doesn't work! We will update the code if it does work. Possibly an incompatibility with the latest 4.1.x Thanks, Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() A better solution would actually be:
{if $current_category.categoryid and $current_category.meta_title and not $product.productid} |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
We've updated the code. Please use this instead: {if $current_category.categoryid and $current_category.meta_title and not $product.productid} This is compatible with CDSEO. Thanks, Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() Ha
looks like Jon and I posted at the same time. ![]() Our files are updated to be compatible with his CDSEO code. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#8
|
|||||||
|
|||||||
![]() > {if $current_category.categoryid and $current_category.meta_title and not $product.productid}
That's done it, thanks for the quick turn around.
__________________
X-Cart Gold v4.1.10 Manchester, UK Get SEO, PPC or just advice from Intrinsic Marketing |
|||||||
#9
|
|||||||
|
|||||||
![]() As a slight aside, the programmer in me is not liking the structure of this code now. Lots of nested IF's are never pretty, is there no SELECT CASE type structure I could use instead?
Either way, the code would be more efficient if the most commonly implemented item was the first logical step in the IF, with the least commmon condition last. Currently the tests go in this order: - The first IF checks for static pages - followed by category pages - then the home page - finally product pages. I would have thought that testing should more correctly go in this order: - Home page - Category page - Product page - Static page So how about something like this: Code:
Ok that's not quite what I was hoping for as it checks for the static page before the product page. I'm also not sure what the section that starts {if $config.SEO.page_title_limit <= 0} does, and whether that should be outside of the Product Page IF block, as currently that doesn't get run for the home page, category pages or static pages. Sorry, I'll stop my rambling now.
__________________
X-Cart Gold v4.1.10 Manchester, UK Get SEO, PPC or just advice from Intrinsic Marketing |
|||||||
#10
|
|||||||
|
|||||||
![]() GeeCee thanks for this thread because I have been trying to figure out why my products had the category titles instead of the product titles. Fix is today.
__________________
www.sandyscloset.net/home.php/Gold xcart gold - 4.1.10 X-AOM, DSEFU, X-cart Site map, Firetank's Featured Product Manager and Feedmanager Bundle, BCSEnginneering Product Meta Tags Plus, Category Meta Title Control, Static Page Meta Tag Control, and Variant Modifier, Hosting by EWD Hosting |
|||||||
|
|||
X-Cart forums © 2001-2020
|