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)
-   -   Detailed images and Html (https://forum.x-cart.com/showthread.php?t=12457)

tntdesigns 02-27-2005 01:00 PM

Detailed images and Html
 
I there a way to us HTLM in the Detailed images option?
I have a animated image like swf.

balinor 03-04-2005 05:26 PM

I don't think that is going to work without some customization.

mffowler 03-05-2005 04:37 AM

Customization sure, but it's a piece of cake. I have flash product images for thumbs, detailed images, you name it.

My current creation is simply just to use Deonya's detailed image mod (in the forum) and replace the last "if" statement to include the swf if there is no detailed image (it would generally include a thumbnail at that point) and then name all the product swf files using the product code and calling the swf by that.

If you want to put swf's in the detailed ... you might just consider adding a new template in the product.tpl and including it with a product code or id reference. The only reason to put it in the detailed images area would be if some products had a static image. I have modded a LiteCommerce site to either add swf or static images in the product image admin ... and X-Cart would be similar.

Just a little php and tpl modifications. Boomer (Cart-Lab) has an swf mod for X-Cart and detailed images, but he requires that you have him install it. I'd have bought it had he just given me the template and php code. So either think of a workaround, buy his mod or just use static images.

If that doesn't make sense, then try http://www.cart-lab.com/lab/customer/product.php?productid=46

Boomer- if you read this, can't you sell the mod without the install charge?

- mike

tntdesigns 03-05-2005 09:51 AM

Image Option
 
no problem on the price but I'm a new user of X-Cart 4 gold
and may need to reinstall and few times and the laber will kill me.

Too bad it don't have a some kind of install.php. :cry:

mffowler 04-16-2005 11:09 PM

Yes, everyone says that a lot about upgrading and mods etc. Here's the secret: if you have highly modified code, change the mods to their own unique .tpl files and modify those. It's even easier to have one template with Smarty includes for all of your customizations. Then, when you upgrade NOTHING will ever be affected and you just have to add the includes (your mods wouldn't change).

But, regarding flash in the product.tpl ... I have one hack that works but isn't pretty, here's a quickie from a product.tpl. You'll have to change anything that is unique to my code, like categories numbers. I have used deonya's detailed image mod and then this in the product.tpl. Be sure if you use deonya's mod (from the forum) to make the correction as specified through the thread.

If this doesn't make sense to you, then you may want to consider getting Boomer's (cart-labs) SFW mod. But, what I am doing here is: if there is no #1 detailed image (with doenya's mod) and if the category isn't X, Y or Z then use the SWF that is named after the product code.

Code:

{if $images.0.avail eq "Y"}
{if $images.0.tmbn_url}
[img]{$images.0.tmbn_url}[/img]
{else}
[img]{$xcart_web_dir}/product_image.php?imageid={$images.0.imageid}[/img]
{/if}

{elseif $cat eq XXX} [b](XXX equals a category where I have NO image)[/b]


{**************************
{include file="product_thumbnail.tpl" productid=$product.productid
image_x=$config.Appearance.thumbnail_width product=$product.product
tmbn_url=$product.tmbn_url id="product_thumbnail"}
**************************}

{else}
<span>
<table cellspacing="0" cellpadding="0" border="0" bgcolor="#C8CDD0">
<tr><td align=center valign=top>
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="247" HEIGHT="227" id="flashViewer">
                    <param name="movie" value="http://positive_URL_to your SFF_files/Your_SWF/{$product.productcode}.swf" bgcolor=FFFFFF>
                    <embed src="http://positive_URL_to your SFF_files/Your_SWF/{$product.productcode}.swf" bgcolor=#FFFFFF  WIDTH="247" HEIGHT="227" NAME="flashViewer" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
</td></tr>
</table>
</span>
{/if}



All times are GMT -8. The time now is 10:54 PM.

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