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

Product Image Hack

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 07-16-2007, 09:02 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Re: Product Image Hack

well I figured it out. I thought I'd share my solution.
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="{$product.tmbn_url}" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="{$product.tmbn_url}" quality="high" bgcolor="#000000" width="335" height="427" name="{$product.tmbn_url}" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
it's not perfect, but I think I'm sneaking away with it..
-hroth
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
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 02:54 PM.

   

 
X-Cart forums © 2001-2020