Forums / General Questions / meta tags for specials page, new products page, and all products

meta tags for specials page, new products page, and all products

Locked

Started by ebaobao on 7 Nov 2008, 11:54 PM · Views: 2,883

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
7 Nov 2008, 11:54 PM
#1
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

meta tags for specials page, new products page, and all products

Hello,
How do I define the meta tags and title for the Specials page, New Products page, and All Products page? Thanks.

10 Nov 2008, 7:08 PM
#2
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: meta tags for specials page, new products page, and all products

Anyone? This has to be pretty easy but I just can't find it.

11 Nov 2008, 7:09 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: meta tags for specials page, new products page, and all products

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

9 Mar 2009, 11:27 AM
#4
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: meta tags for specials page, new products page, and all products

ok where abouts would the custom code go?

becuase i need to place new meta tags on my 'new releases page'

Andy.

oh dear gurrrddddd.

9 Mar 2009, 12:46 PM
#5
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: meta tags for specials page, new products page, and all products

ok i've established that this is where im supposed to place my custom meta tag data

/languages/english/MY TEMPLATE/meta_tags.php

  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:

PRODUCTS_NEW

but this didnt work either so any ideas people?

Andy.

oh dear gurrrddddd.

9 Mar 2009, 5:37 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: meta tags for specials page, new products page, and all products

You've got the format wrong. It should be based on the &main_page=NAME_OF_PAGE
like this:```
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!
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.

9 Mar 2009, 5:53 PM
#7
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: meta tags for specials page, new products page, and all products

yeah i did try that version to but it still didnt work.

Andy.

oh dear gurrrddddd.

9 Mar 2009, 6:06 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: meta tags for specials page, new products page, and all products

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

9 Mar 2009, 6:18 PM
#9
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: meta tags for specials page, new products page, and all products

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?

oh dear gurrrddddd.

9 Mar 2009, 6:24 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: meta tags for specials page, new products page, and all products

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

10 Mar 2009, 9:55 AM
#11
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: meta tags for specials page, new products page, and all products

right for any others out there that had my problem the solution i found was to copy this into the 'products_new.php' directly.

define('META_TAG_DESCRIPTION','BLAH BLAH');
  define('META_TAG_KEYWORDS','BLAH BLAH');
  define('META_TAG_TITLE', 'BLAH BLAH');

so im guessing that would be the same for the other types of page such as this one.

Andy.

oh dear gurrrddddd.