View Single Post
  #5  
Old 07-23-2007, 07:54 AM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Re: modify admin area.. but where?!

It turns out I lost a frustrating day of development due to Dreamweaver not actually saving my changes to the server. *sigh* now that that is out of the way.. I have been working with the correct files. Now, in more detail I have a little quest that I am not sure how to arrive at.

Files I am working with: product_details.tpl and edit_image.tpl

edit_image.tpl is the key file for my needs.

I have .jpg thumbnails and .swf product images. For the customer, all is good. Now in the admin side I am still trying to have the .swf product image display at the same time as the .jpg thumbnail.

The script involved is:

Code:
{if $idtag eq ''}{assign var="idtag" value="edit_image"}{/if} <img id="{$idtag}" src="{$xcart_web_dir}/image.php?type={$type}&amp;id={$id}&amp;ts={$smarty.now}{if $already_loaded}&amp;tmp=Y{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{include file="main/image_property.tpl"}"/>
This bit of script displays both the thumbnail and the product image in the admin area when viewing product details.

I replaced this with this:

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="movie" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.website.ca/shop/images/P/{$product.tmbn_url|filename}.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="http://www.website.ca/shop/images/P/{$product.tmbn_url|filename}.swf" quality="high" bgcolor="#000000" width="335" height="427" name="{$product.tmbn_url|filename}" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>

What happened is I lose the .jpg thumbnail and the .swf product image is what I see for both the thumbnail and the product image.

I wish to be able to see both, lots of products are waiting to go in and I would like to be able to see both of these images.

So I see it as the script is made to display both the thumbnail and the product image.

I was wondering if the {$type} returns ".jpg" (normally) .. if so I might be able to create a .swf / .jpg {if} statement based on type. ??

I would really appreciate any words.. I am a bit over my head (and as much as I love it and would find the answer.. time does not permit..) I am pretty much out of time!!

anyone!!?!?

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