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.
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.
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:
I deleted the later part of the code, so that it becomes:Code:$meta_products_name = $product_info_metatags->fields['products_name'] . ' [' . $product_info_metatags->fields['products_model'] . ']';
Code:$meta_products_name = $product_info_metatags->fields['products_name'] ;
.
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.
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.
@billmad,
Thanks for your post, exactly what I was looking for. The ZC admin has a setting for everything!
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
@billmad
This's wat i was looking for wow wow!!!!!
thanks for d info...
Hi,
I want the product model, but not the brackets [] around it. Does anyone know how to remove them?
TIA