View Single Post
  #1  
Old 07-16-2007, 08:27 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Product Image Hack

Need some help here..

There is the smaller product thumbnail and the larger product image. (type "T" and type "P"). The larger "P" type is what I'm aiming to modify. I've been studying the product.tpl and product_thumbnail.tpl files.

I've added the flash embed into product.tpl and it is displaying correctly, but with no image (flash) I replaced a product image with a .swf from the admin-area products.

What I need is to get the scr variable into the embed script. Something like this: (which does not work)

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="335" height="427" id="test" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="{$tmbn_url}" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="{$tmbn_url}" quality="high" bgcolor="#000000" width="335" height="427" name="{$tmbn_url}" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>

when I view source I see: <embed src=""

When I test this I see a blank flash embed. It's ready to work but I need to get the scr variable into the <embed src="scr variable" ..

I don't know how .. but I have a feeling this is totally possible.

-hroth

__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote