|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 4/16/2008 11:34:23 PM
Posts: 9,
Visits: 48
|
|
I can't get this to work either  Here is what I want to do (this is on a custom store) On the product details template ... 1. I want the Title to be the actual product title, not the store title (whether or not it is entered on the SEO tab of the add product section). 2. Keywords and Description - default to the store settings, but use the actual product keyword and description if entered on the SEO tab of product. Is this possible? Thanks, Debbie
 Decals, Stickers, and Signs
|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: Today @ 2:07:22 PM
Posts: 1,393,
Visits: 2,990
|
|
hogwildsigns (4/15/2008)
I can't get this to work either  Here is what I want to do (this is on a custom store) On the product details template ... 1. I want the Title to be the actual product title, not the store title (whether or not it is entered on the SEO tab of the add product section). 2. Keywords and Description - default to the store settings, but use the actual product keyword and description if entered on the SEO tab of product. Is this possible? Thanks, Debbie 1. You can do two ways. The easiest ist to put in your product details template <title>$ProductTitle</title>. Or you can set it under the SEO options. 2. You can use the following code to accomplish this. This is the way it's defaulted in the pre-designed templates. This checks to see if the product-specific SEO values are entered, if not they'll default the the global SEO values. #if($seo_keywords != "") <meta name="keywords" content="$seo_keywords" /> #else <meta name="keywords" content="!$Store.MetaKeyWordsText" /> #end #if($seo_description != "") <meta name="description" content="$seo_description" /> #else <meta name="description" content="$Store.MetaDescriptionText" /> #end
---------------------
Tomas
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 4/16/2008 11:34:23 PM
Posts: 9,
Visits: 48
|
|
| Thank you Tomas for the quick reply. #1 worked perfectly as you stated. (I thought I had tried that, but must have done something wrong: w00t: ) #2 I will try in a bit. Thanks again!
 Decals, Stickers, and Signs
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 4/16/2008 11:34:23 PM
Posts: 9,
Visits: 48
|
|
tomas (4/15/2008)
1. You can do two ways. The easiest ist to put in your product details template <title>$ProductTitle</title>. Or you can set it under the SEO options. 2. You can use the following code to accomplish this. This is the way it's defaulted in the pre-designed templates. This checks to see if the product-specific SEO values are entered, if not they'll default the the global SEO values. #if($seo_keywords != "") <meta name="keywords" content="$seo_keywords" /> #else <meta name="keywords" content="!$Store.MetaKeyWordsText" /> #end #if($seo_description != "") <meta name="description" content="$seo_description" /> #else <meta name="description" content="$Store.MetaDescriptionText" /> #end
#2 works great as well. Thank you! I did remove the ! in this line ... <meta name="keywords" content="!$Store.MetaKeyWordsText" /> Is that okay or is it suppose to be there?
 Decals, Stickers, and Signs
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: 8/18/2008 3:31:18 PM
Posts: 184,
Visits: 412
|
|
|
|
|