X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Does this detailed image mod exist? (https://forum.x-cart.com/showthread.php?t=21308)

bridal-land 04-24-2006 08:21 AM

Does this detailed image mod exist?
 
Is there a mod that you know of that will put alt txt in the detailed images by pulling keywords from your description? Instead of me going back and adding alt text to each image I thought this would be great if there is a mod that does this.

I tried to write something with breadcrumbs with no success.

Thanks
Mike

balinor 04-24-2006 08:31 AM

Not that I know of. You could code it to pull the product title as the alt tag.

bridal-land 04-24-2006 08:54 AM

I tried modifing this file

/modules/Detailed_Product_Images/product_images.tpl

to this

Code:

{* $Id: product_images.tpl,v 1.10.2.1 2004/05/18 06:23:01 mclap Exp $ *}
{if $images ne ""}
{capture name=dialog}
<div align=center>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
[img]{$images[image].tmbn_url}[/img]
{/if}




{/if}
{/section}
</div>
{/capture}
{if $smarty.capture.dialog ne ""}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}

{/if}


{/if}


But the alt shows up as "array." Instead of the product title. What did I do wrong?


Mike

balinor 04-24-2006 08:59 AM

Replace

{$product|escape}

with

{$product.product|escape}

bridal-land 04-24-2006 09:14 AM

Awesome it worked great. Thanks again

Hey if its not to much trouble could you take a look at this post as well.
http://forum.x-cart.com/viewtopic.php?t=28248&highlight=


All times are GMT -8. The time now is 11:17 PM.

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