X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Meta tags for Product pages (https://forum.x-cart.com/showthread.php?t=10245)

BCSE 01-11-2005 05:07 AM

Jim. Your email bounced back to me when I replied this morning. Here's a copy of my email:
Quote:

Jim,

Looks like you're missing an {elseif $main eq "product"} part.

Here's mine for 3.5.5. This is optimized for search engines a bit by putting the product and category names first in the title (product if on a product page, category if on a category page).

Notice this part below:
Code:

{elseif $main eq "product"}
        {if $product.product ne ''} {$product.product}{/if}


I hope this helps!

Carrie
Code:

<title>
{if $main eq "catalog"}
        {if $location eq ""}  {$lng.txt_subtitle_home}
        {else}
        {strip}
        {section name=position loop=$location start=0 }
        {if %position.last% eq "true"} {$location[position].0|escape}{/if}
        {/section}
        {/strip}
        {/if}
{elseif $main eq "product"}
        {if $product.product ne ''} {$product.product}{/if}
{elseif $main eq "help"}
{$lng.txt_subtitle_help}
{elseif $main eq "cart"}
{$lng.txt_subtitle_cart}
{elseif $main eq "checkout"}
{$lng.txt_subtitle_checkout}
{elseif $main eq "order_message"}
{$lng.txt_subtitle_thankyou}
{elseif $main eq "wishlist"}
{$lng.txt_subtitle_wishlist}
{elseif $main eq "giftcert"}
{$lng.txt_subtitle_giftcerts}
{/if}
 @ {$lng.txt_site_title}
</title>



I hope that helps!

Carrie

Jim K. 01-11-2005 07:40 AM

Thank You!
 
Carrie,

Even though it's raining and nasty outside today, I am a happy camper. You made my day with this mod. It now works perfectly. I really like the product name showing up first before the store name. Thanks for all your help.

Jim K.

Alltribes 01-14-2005 10:15 AM

Looks liken the X-cart team thought this mod was a good idea. Check out this from the 4.0.10 changelog:

"Thu Dec 23 15:51:00 MSK 2004[*] - svowl - Improvement: On the product details page (customer area) meta tags based on the product title and short description are used."

BCSE 01-14-2005 10:38 AM

Thanks for the info Alltribes! I didn't notice that. I'll be curious to see how they did it compaired to how I did it. Guess my free version is only good then for versions earlier than 4.0.10, the paid version is still a bit more flexible it seems.

Carrie

Alltribes 01-14-2005 12:20 PM

I was just about to install your mod when I saw that. I'm going to have them upgrade me with my next project and see if I need to anymore.

matt2005 05-23-2005 07:45 PM

4.0.13?
 
does this mod work with 4.0.13? it seems the meta.tpl is different..

I'm using the free mod..

BCSE 06-11-2005 07:03 PM

Yes it should work for 4.0.13 I may need to update the instructions though as the meta.tpl has changed a lot in the last (2 I think) x-cart versions. As X-cart is trying to implement something similar to my free mod. Although I haven't seen in the x-cart admin yet where to set product keywords or descriptions.

Let me know if you can't figure it out for 4.0.13. When I have a chance, I'll update the code on my site.

Carrie

BCSE 06-13-2005 06:03 AM

I have updated my meta.tpl for version 4.0.13 for my free and paid versions. If you've previously gotten either one from me and would like a new copy, just put in a ticket here with your order number and I'll reissue you a download key for the free one or email you an update for the paid one.

http://support.bcsengineering.com/

Thanks!

Carrie

rossco 06-14-2005 03:43 AM

Works flawlessly in 4.0.12 even though I had to use the 4.0.13 Meta.tpl

Now getting results like this across all products

Title: 75 SpeakerMate Model 4 :: Speakermate :: Pro Equipment :: Ross Custom Cabinets
Description: 113 Click here for SpeakerMate Model 4 connection examples Click here for detailed instructions in Adobe pdf format
Keywords: 61 SpeakerMate,Model,4,SpeakerMate Model 4,ross custom cabinets,

Meta tags analysis.
Title: Title meta tag contains no errors.

Title relevancy to page content is excellent.
The Title relevancy to page content is 100%.

Description: Description meta tag contains no errors.

Description relevancy to page content is excellent.
The Description relevancy to page content is 100%.

Keywords: Keywords meta tag contains no errors.
This tag contains 5 keywords and 61 characters.

Keyword relevancy to page content is excellent.
The keywords relevancy to page content is 100%.

Robots: Found no robots meta tag.

Author: Found no author meta tag.

Does anyone know if there's a mod for placing robots.txt and author name on each page?

Allan

BCSE 06-14-2005 04:33 AM

Allan,

Great to see those excellent results. What tool did you use to analyze it?

You can put the robots and author meta tags before the {* BCSE begin *} code would probably be the easiest place to put it.

Carrie


All times are GMT -8. The time now is 09:20 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.