Hello,
How do I define the meta tags and title for the Specials page, New Products page, and All Products page? Thanks.
Hello,
How do I define the meta tags and title for the Specials page, New Products page, and All Products page? Thanks.
Anyone? This has to be pretty easy but I just can't find it.
You can change the title by editing the language file for each of those pages.
You can't change the keyword/description metatags for those pages without writing custom code.
In v1.3.8 you can set custom page-specific tags using the meta_tags.php language file.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
ok where abouts would the custom code go?
becuase i need to place new meta tags on my 'new releases page'
Andy.
ok i've established that this is where im supposed to place my custom meta tag data
/languages/english/MY TEMPLATE/meta_tags.php
PHP Code:define('META_TAG_DESCRIPTION_NEW_PRODUCTS','BLAH BLAH');
define('META_TAG_KEYWORDS_PAGE_NEW_PRODUCTS','BLAH ');
define('META_TAG_TITLE_PAGE_NEW_PRODUCTS', 'BLAH ');
however it doesnt seem to port to my new releases page, so is the standard zen cart 'new products page' defined as somthing else i've also tried calling it:
but this didnt work either so any ideas people?PHP Code:PRODUCTS_NEW
Andy.
You've got the format wrong. It should be based on the &main_page=NAME_OF_PAGE
like this:Code:define('META_TAG_DESCRIPTION_PRODUCTS_NEW','BLAH BLAH'); define('META_TAG_KEYWORDS_PRODUCTS_NEW','BLAH '); define('META_TAG_TITLE_PRODUCTS_NEW', 'BLAH ');
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
yeah i did try that version to but it still didnt work.
Andy.
Well, I just put it on a fresh v1.3.8 site here and it worked fine. Then I copy-and-pasted it to my post above.
There are two differences from what you had originally posted:
a) PRODUCTS_NEW instead of NEW_PRODUCTS
b) removed extra PAGE_ letters from the defines
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
ok so well i've tried all those various combinations before i posted, and retried your suggestion and it still comes up with the 'default new products' page meta.
so are there any random other tweeks that i need to make to another page in order for this meta to fully reference the problem page?
Well ... like I said, it works fine for me on a clean new v1.3.8 install using english language.
So ... either you're using something older than 1.3.8, or you're using something other than what I posted, or you've got some code customizations you've done which are breaking the normal operation.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
Bookmarks