Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Does this detailed image mod exist?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-24-2006, 08:21 AM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default 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
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
  #2  
Old 04-24-2006, 08:31 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not that I know of. You could code it to pull the product title as the alt tag.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-24-2006, 08:54 AM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default

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
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
  #4  
Old 04-24-2006, 08:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Replace

{$product|escape}

with

{$product.product|escape}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-24-2006, 09:14 AM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default

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=
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:06 AM.

   

 
X-Cart forums © 2001-2020