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)
-   -   Product Image Hack (https://forum.x-cart.com/showthread.php?t=32592)

hrothbeorht 07-16-2007 08:27 AM

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


hrothbeorht 07-16-2007 09:02 AM

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


All times are GMT -8. The time now is 01:29 AM.

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