Forums / Setting Up Categories, Products, Attributes / removing product model from title bar

removing product model from title bar

Views: 6,810

Results 1 to 16 of 16
29 Mar 2008, 1:34 PM
#1
sam1001 avatar

sam1001

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

removing product model from title bar

Hi,
I am trying to remove the product model, which appears for all products within square brackets, in the title bar.

in the product metatag section I have deselected "model", but this does not make a difference.

I have also gone to Catalog -> product types -> edit layout and deselected model for the metatags title, but this also doesn't work

example can be seen here
http://clematischoice.co.uk/shop/index.php?main_page=product_info&products_id=8

Any help would be much appreciated
thanks
Sam

29 Mar 2008, 2:25 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: removing product model from title bar

admin panel/ catalog/ products & catalog/

  1. Work your self down to an actual product you have listed
  2. On the right hand side under Action notice the black circle
  3. Click the (black circle) biohazard sign beside each product you will see this
    Mark What the Product's Meta Tag Title Should Include:
    Product Name:
    Yes No Title:
    Yes No Model:
    Yes No Price:
    Yes No Title/Tagline:
    Yes No

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

30 Mar 2008, 3:30 AM
#3
gorie avatar

gorie

New Zenner

Join Date:
Jan 2008
Posts:
89
Plugin Contributions:
0

Re: removing product model from title bar

i'm having the same issue, wanting to remove the product model from title bar...

when i go to the meta tags for the product, Mark What the Product's Meta Tag Title Should Include - is set to 'no' for product model

i have also set the product type layout options Show Metatags Title Default - Product Model to 'no'

but it still shows up!

any ideas ?!?!

30 Mar 2008, 4:23 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing product model from title bar

If you don't have actual keyword and title content for a given product, the other settings are ignored.

.
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.

30 Mar 2008, 4:40 AM
#5
gorie avatar

gorie

New Zenner

Join Date:
Jan 2008
Posts:
89
Plugin Contributions:
0

Re: removing product model from title bar

DrByte:

If you don't have actual keyword and title content for a given product, the other settings are ignored.

oooooh, ok i see. thanks :)

30 Mar 2008, 9:56 AM
#6
sam1001 avatar

sam1001

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Re: removing product model from title bar

Thanks for the replies everyone.

Just to clarify, the problem was that my product metatags were not defined.
After adding metatag title, description, and keywords, the new settings work!

Sam

13 Jun 2008, 6:49 AM
#7
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: removing product model from title bar

The site I'm working on has a lot of products. Without modifying each individual product is there a way to set a global option in which the model is removed from the title? Thanks.

Template Cascade: A Zen Cart Design Blog

Discussing Zen Cart design, Modules and functionality...

13 Jun 2008, 4:47 PM
#8
cochlear avatar

cochlear

Zen Follower

Join Date:
Apr 2007
Location:
Sydney
Posts:
110
Plugin Contributions:
0

Re: removing product model from title bar

madfastride:

The site I'm working on has a lot of products. Without modifying each individual product is there a way to set a global option in which the model is removed from the title? Thanks.
I'm in the same boat.

Would also like to know if there is a quick way to add a tagline that applies to category page titles only.

13 Jun 2008, 5:12 PM
#9
cochlear avatar

cochlear

Zen Follower

Join Date:
Apr 2007
Location:
Sydney
Posts:
110
Plugin Contributions:
0

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:

$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:

$meta_products_name = $product_info_metatags->fields['products_name'] ;

13 Jun 2008, 6:36 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing product model from title bar

cochlear:

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:

$meta_products_name = $product_info_metatags->fields['products_name'] . ' [' . $product_info_metatags->fields['products_model'] . ']';

> ```
$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.

14 Jun 2008, 7:22 PM
#11
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

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.

Template Cascade: A Zen Cart Design Blog

Discussing Zen Cart design, Modules and functionality...

17 Jun 2008, 8:58 PM
#12
billmad avatar

billmad

New Zenner

Join Date:
Feb 2007
Posts:
12
Plugin Contributions:
0

Re: removing product model from title bar

madfastride:

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!!

7 Jul 2009, 4:27 PM
#13
karl19 avatar

karl19

New Zenner

Join Date:
Jun 2007
Posts:
62
Plugin Contributions:
0

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!

20 Aug 2009, 7:11 PM
#14
oregonbum avatar

oregonbum

New Zenner

Join Date:
Sep 2004
Location:
Southern Oregon
Posts:
23
Plugin Contributions:
0

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

5 Mar 2010, 8:06 AM
#15
arunkarthik avatar

arunkarthik

New Zenner

Join Date:
Mar 2010
Location:
Ooty, India
Posts:
40
Plugin Contributions:
0

Re: removing product model from title bar

@billmad

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

thanks for d info...

28 Jan 2011, 3:10 PM
#16
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

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