Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Sydney
    Posts
    109
    Plugin Contributions
    0

    Default Re: removing product model from title bar

    OK I've found a solution to the OP. It does remove the product model from page title, but I'm no php coder, so this solution may have side effects that I'm not aware of.

    In includes/module/metatags.php, line 279, there is this piece of code:
    Code:
    $meta_products_name = $product_info_metatags->fields['products_name'] . ' [' . $product_info_metatags->fields['products_model'] . ']';
    I deleted the later part of the code, so that it becomes:
    Code:
    $meta_products_name = $product_info_metatags->fields['products_name'] ;

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: removing product model from title bar

    Quote Originally Posted by cochlear View Post
    OK I've found a solution to the OP. It does remove the product model from page title, but I'm no php coder, so this solution may have side effects that I'm not aware of.

    In includes/module/metatags.php, line 279, there is this piece of code:
    Code:
    $meta_products_name = $product_info_metatags->fields['products_name'] . ' [' . $product_info_metatags->fields['products_model'] . ']';
    I deleted the later part of the code, so that it becomes:
    Code:
    $meta_products_name = $product_info_metatags->fields['products_name'] ;
    Yes, that works globally, but since you're hacking out parts of the code, it has the side effect of removing all control over that feature via the admin. If you don't care about that, that's fine.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    116
    Plugin Contributions
    1

    Default Re: removing product model from title bar

    Thanks for the responses. I did amend the code mentioned to remove the Model number. I was just hoping there was some global setting in the admin panel that could be over ridden for reason DrByte mentions. I think this is okay though as we are using the model number to sync with the physical store front so we won't ever be using that. The only problem seems to be that sometimes people use the model number for google searches. This might be addressed in the future. Thanks again for the support.

  4. #4
    Join Date
    Feb 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: removing product model from title bar

    Quote Originally Posted by madfastride View Post
    I was just hoping there was some global setting in the admin panel that could be over ridden for reason DrByte mentions.
    Configuration > Product Info >
    Meta Tags - Include Product Price in Title

    There are some othe parts of this forum that say it is in Catalog > Product Types but these do not work - I am not sure what these ones are for!!

  5. #5
    Join Date
    Jun 2007
    Posts
    62
    Plugin Contributions
    0

    Default Re: removing product model from title bar

    @billmad,

    Thanks for your post, exactly what I was looking for. The ZC admin has a setting for everything!

  6. #6
    Join Date
    Sep 2004
    Location
    Southern Oregon
    Posts
    27
    Plugin Contributions
    0

    Default Re: removing product model from title bar

    It's tricky b/c you've got to change settings in 2 places in the admin area (and I always forget myself!)

    1. Configuration -> Product Info (2 lines about showing meta tag pieces in the title)
    2. Catalog -> Product Types (edit the layout) Turn off what you don't want to have show

    And then tweak with your custom meta tags using the black & white meta editor for each product/category.

    HTH!

    OregonBum

  7. #7
    Join Date
    Mar 2010
    Location
    Ooty, India
    Posts
    40
    Plugin Contributions
    0

    Default Re: removing product model from title bar

    @billmad


    This's wat i was looking for wow wow!!!!!


    thanks for d info...

  8. #8
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    89
    Plugin Contributions
    0

    Default Re: removing product model from title bar

    Hi,
    I want the product model, but not the brackets [] around it. Does anyone know how to remove them?

    TIA

 

 

Similar Threads

  1. v153 Removing the "Product Model" from the META Title in the product info view?
    By joecooper in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 May 2015, 07:54 PM
  2. Product Info page: can I move model value under 'model' title?
    By scott_ease in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2012, 04:24 PM
  3. Removing Zencart info from page title bar
    By terrykiwi in forum Customization from the Admin
    Replies: 1
    Last Post: 29 Apr 2008, 03:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg