| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Boost SEO with better ALT text - V4.0.x | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Boost SEO with better ALT text - V4.0.x
I was working on a store that uses products in three columns and also uses images for recommended products and upselling products. All these make a call on the product_thumbnail.tpl file but dont use ALT tags very well and where they do they only use the product title. Its a bit of a waste of time as for the most part the product title is already on the page with thie thumbnail. Instead of that its much better to use the product description as this is only used on the main product detail page.
This was done on V4.0.15 but should work on most versions. just follow the example and it should make sense so..... edit product_thumbnail.tpl Code:
in that file we changed Code:
Code:
I updated this with extra modifiers to remove any html content that may be in the detailed description next we need to adjust the files that call product_thumbnail.tpl. First up is products_t.tpl change to Code:
Next up, you can change products.tpl too. only need to do this if your not using products_t.tpl find Code:
change to Code:
my recommends file was changed like this. there are plenty of mods in the forum to improve on this layout but this example will give you an idea of using the description Code:
to pass the description over you need to edit /modules/Upselling_Products/related_products.php adjust the start of the sql call like this Code:
basically just added - $sql_tbl[products].fulldescr, to the call Im sure there are a few tweaks that can be had so feel free to chip in. This should give you a good boost of text on any page though and help out a bit with your SEO. just remember to add good content to your product descriptions
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#2
|
|||||||
|
|||||||
Nice one Shan, I just want to add that it also helps to name your image files by the product name ie. cell_phone.jpg (every bit helps)
|
|||||||
#3
|
|||||||||
|
|||||||||
Nice tweak. Minimum effort and manimum effect.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#4
|
|||||||||
|
|||||||||
only thing you gotta watch with this one is if you use a lot of html in your product description. A way around this is to use the short description field instead and fill that with a description without the html and other good keywords
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#5
|
|||||||
|
|||||||
Nice mod, i'll have to try it later, is there anyway to truncuate the description though to about first 120 chars??? reason being is that my descriptions are quite long.
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#6
|
|||||||||
|
|||||||||
in product_thumbnail.tpl
Code:
more info here http://smarty.php.net/manual/en/language.modifier.truncate.php
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#7
|
|||||||||
|
|||||||||
shan,
Here's my related products, where should I place the code? Quote:
Thanks for the help!
__________________
_____________ Capture Your Mini-Me Look! - X-CART Gold (Current Version) V4.6 - Reboot - CDSEO |
|||||||||
#8
|
|||||||
|
|||||||
Hi
I've tried this in 4.0.12 with no success. Any thoughts would be gratefully received. Allan
__________________
How loud do you want it? X-Cart Gold 4.0.12 & 17 |
|||||||
#9
|
|||||||
|
|||||||
Just another quickie.
You say to name your jpg's so that they reflect the product name, xcart renames all images so how do I get around that. I'm very keen on SEO and so far it's paying off on our site so as you say every little helps. Allan
__________________
How loud do you want it? X-Cart Gold 4.0.12 & 17 |
|||||||
#10
|
|||||||||
|
|||||||||
Quote:
your right, theres no real way around the way xcart names things at the mo. Anything you add by hand though could be named cleverly
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
|
|||
X-Cart forums © 2001-2020
|