| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Free Mod for Product Page Custom Meta Tags & Titles | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Free Mod for Product Page Custom Meta Tags & Titles
Though the new versions of X-Cart are improving the ability to specify meta tags and titles for SEO, I have had many clients frustrated with not being able to optimize product pages, as these are usually where they want people to land. Below is a mod that doesn't involve modifying the database or fields - only 2 template edits and the use of an include file. I am implementing it in the 4.x branch, but I think it will translate down with no issue.
1) Create .txt files for your <head> data, including title, meta description, meta keywords and any others you wish to include. Example: Code:
2) You will upload these to a directory on your server called meta. I prefer to place mine at the root of my web directory, at the same level as my x-cart directory, so it is at "/meta/" and xcart is at "/store/" 3) First, you need to diable the default title tag if you are on a product page, since it is included in your meta include. Open <xcart_root_dir>/skin1/customer/home.tpl and add the following code above and below the existing<TITLE> tags (existing code indicated for your reference) Code:
4) Now we will edit the meta template. Open <xcart_root_dir>/skin1/meta.tpl and add the following code (existing code is marked for your reference) Code:
The fact that my clients can edit their meta data in a text file to their heart's content and I don't have to apply mods to the database and structure, thereby avoiding upgrade headaches made me very very happy. Until X-Cart realizes that product pages *are* important for some people to optimize, I am content to use this mostly un-invasive solution. I hope this helps some of you out there - I know this is a topic that can cause much headache! ---------------------------------- belen me@belen.net www.belen.net |
|||||||
#2
|
|||||||||
|
|||||||||
Intersting but kind of complicated.
Here is one free mod that work wonders one of them is free and the other one is a pay mod. How do I know they work wonders I use them. the free mod is: http://www.bcsengineering.com/store/customer/product.php?productid=88 the paid mod is: http://www.bcsengineering.com/store/customer/product.php?productid=95 this two mods come from www.Bcsengineering.com go get them Kind regards, Ricky
__________________
X-CART Gold version 4.0.14 & 4.1.11 Apache Version 1.3.29 (Unix) EWDHosting-Quality X-cart Hosting We will always sell you the right shoe and the left one is free. |
|||||||||
#3
|
|||||||
|
|||||||
I'll second that... Carries mods ROCK! And she is Most Excellent to deal with! Stop waisting your time and go get the real thing.
|
|||||||
#4
|
|||||||
|
|||||||
But credit where credit is due, thanks to the original poster for their mod.
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#5
|
|||||||
|
|||||||
Quote:
Yes, no doubt. I really appreciate the guys who come in here and let us see their code. I am on this wave riding it as far as I can take it. The more info I can get from all of you the better.
__________________
X-Cart 4.1.11 PHP 5.1.4 MySQL server 5.0.23 Windows www.ericsperformanceparts.com |
|||||||
#6
|
|||||||
|
|||||||
Thanks for the kind support
I had seen Carrie's mod and, while nice, did not fit the specific needs of my clients. They needed ALOT more control over the product title, not just keywords and descriptions. One of the things I have found the most useful in this forum is that so many people have so many solutions that are all just a little different.
Thank you to those of you who are kind enough to appreciate what I have shared, even if it isn't of help to you. I often feel I don't give enough back to this community and I was just trying to offer a token. --------------- belen |
|||||||
#7
|
|||||||
|
|||||||
Thanks Belen
Outstanding Job. I agree with you that while Carrie's mod is good, I needed different abilities.
I was able to modify your code to work on Category Pages and on the added Static Pages that I have. I even added the ability for it to check to see if the file existed, and if not then it would load the defaults like it did before the mod. This gives me the ability to work on some of the pages without being forced to work on all of them immediately. Great Job, Thank you very much for sharing.
__________________
Jason Diehl Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/ |
|||||||
|
|||
X-Cart forums © 2001-2020
|