Hi Everyone, I am very close to finishing a Magento template, but for some reason the category/product meta titles do not default to the product/category names when the meta title is blank. The meta titles for other pages (i.e. CMS Pages, Cart Page, etc...) are working fine. As well when I switch back to the default template, the product/category meta titles work once again which leads me to believe that one of the files in my template is overriding the default. I have spent the last 2+ hours scouring each file for the issue, but have had no luck. Therefore I have attached my template files here and will pay the first person who responds to this thread $15 via paypal when they solve the issue. Here is a link to the file: https://drive.google.com/file/d/0B8F_W5_Hvxx4ZWFBamhzeWd3MGc/view?usp=sharing Best of luck!
Hi Borduhh, could you upload the following file? I'd be interested to see it as this View.php file I am about to refer to is what populates the meta titles. app/code/core/Mage/Catalog/Block/Product/View.php Code (markup):
Hi Everyone, The view.php code is the default and has not been altered at all. As for some progress, I have narrowed it down to the breadcrumbs portion of the page.xml file. For some reason when I remove: <block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/> Code (markup): The meta titles no longer work. However with it there, everything works as expected which is kind of odd. Here is the code from the breadcrumbs.phtml: <?php if($crumbs && is_array($crumbs)): ?> <div class="breadcrumbs"> <ul> <?php foreach($crumbs as $_crumbName=>$_crumbInfo): ?> <li class="<?php echo $_crumbName ?>"> <?php if($_crumbInfo['link']): ?> <a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->escapeHtml($_crumbInfo['title']) ?>"><?php echo $this->escapeHtml($_crumbInfo['label']) ?></a> <?php elseif($_crumbInfo['last']): ?> <strong><?php echo $this->escapeHtml($_crumbInfo['label']) ?></strong> <?php else: ?> <?php echo $this->escapeHtml($_crumbInfo['label']) ?> <?php endif; ?> <?php if(!$_crumbInfo['last']): ?> <span>/ </span> <?php endif; ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> Code (markup): That should help, the goal is to be able to remove the breadcrumbs tag and still have the meta titles work. Best Wishes!