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)
-   -   "Alt" text keyword hack. (https://forum.x-cart.com/showthread.php?t=4266)

pipercub 09-07-2003 08:14 AM

"Alt" text keyword hack.
 
I wanted to make my <img alt="xxx"> text more keyword rich. The default xcart alt text is the product name, but sometimes the product name does not contain any keywords. So, I pasted in a line of code that also includes the current category name (which should be one of your keywords). The new code will display the alt text as:

alt="Category Name Product Name"

replace your current "product_thumbnail.tpl" with this code

Code:

{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}..{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if}

Now, the search engines will see extra keywords for every product thumbnail on your page! This really saturates your category pages.

Piper

dealsondeals 09-07-2003 09:46 AM

:D Nice job! Haven't implemented yet, but look forward to putting it to use.

Regards,

Glen

Dlee 09-08-2003 08:30 AM

Beautiful job! Nicely done. :D

wild boar 09-24-2003 08:37 PM

I guess this mod was already fixed in the newest version?

My thumbnail tpl has this in it

{* $Id: product_thumbnail.tpl,v 1.8.2.1 2003/05/20 13:32:38 svowl Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}..{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if}

DogByteMan 09-24-2003 09:03 PM

Not exactly... the code in this topic is to add the category name to the alt tag as well as the product name. This is a good thing when it comes to the search engines.

wild boar 09-24-2003 09:08 PM

I wasn't for sure, as alot of people are using the 3.6 or whatever version and I wasn't sure if this was already done in the new version..

thanks, I'll add the code

By the way, as were talking about search engines..

as you can see I installed the cart at

shop/customer

when my site is finished, I will redirect the main page to shop/customer via htacess

Will this affect my rankings? I haven't gotten a chance to read up on the search engine forum, but thought I'd ask...

jpsowin 09-24-2003 09:11 PM

This will also make people with images turned off hate you :lol:

wild boar 09-24-2003 09:16 PM

lol because instead of an image it would be like a big line of text?

I don't know anyone that turns their images off these days anyways.. Especially when shopping on the internet.. you got to see what your buying!!

DogByteMan 09-24-2003 09:18 PM

Quote:

Originally Posted by wild boar
lol because instead of an image it would be like a big line of text?

I don't know anyone that turns their images off these days anyways.. Especially when shopping on the internet.. you got to see what your buying!!


I'll second that

wild boar 09-24-2003 09:21 PM

it's like looking in a playboy with the pictures cut out.. useless.. :D


All times are GMT -8. The time now is 01:16 PM.

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