1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying Quick Magento Meta Title Fix - $15

Discussion in 'Programming' started by Borduhh, Oct 26, 2015.

  1. #1
    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!
     
    Borduhh, Oct 26, 2015 IP
  2. RiptideSolutions

    RiptideSolutions Active Member

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    65
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    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):
     
    RiptideSolutions, Oct 27, 2015 IP
  3. Borduhh

    Borduhh Well-Known Member

    Messages:
    767
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    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!
     
    Borduhh, Oct 27, 2015 IP
  4. PROtechSoft

    PROtechSoft Active Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Will you be able to provide access by sharing the login credentials?
     
    PROtechSoft, Nov 3, 2015 IP
  5. Borduhh

    Borduhh Well-Known Member

    Messages:
    767
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Hi Guys,

    I apologize for not replying earlier, but this has been solved!

    Best Wishes.
     
    Borduhh, Nov 3, 2015 IP