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

Detailed images and Html

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-27-2005, 01:00 PM
 
tntdesigns tntdesigns is offline
 

Senior Member
  
Join Date: Feb 2005
Location: Plam Beach, FL
Posts: 137
 

Default Detailed images and Html

I there a way to us HTLM in the Detailed images option?
I have a animated image like swf.
__________________
Xcart Gold 4.7.5 X-Affiliate, Add-on: X-Configurator, Add-on: X-SpecialOffers, Add-on: X-AOM, On Sale, EBay add on, Traffic Monitor, Froogle Feed, Drop Shipper, Newslist Manager, Product Options Copier 1.0, BCS Customer Reward Points, BCS Refer points, Ad Banner, PAYPAL PRO, Blue Dream, Drop Shipper bcse gallery
Reply With Quote
  #2  
Old 03-04-2005, 05:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

I don't think that is going to work without some customization.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-05-2005, 04:37 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

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
__________________
4.1.9
Reply With Quote
  #4  
Old 03-05-2005, 09:51 AM
 
tntdesigns tntdesigns is offline
 

Senior Member
  
Join Date: Feb 2005
Location: Plam Beach, FL
Posts: 137
 

Default 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.
__________________
Xcart Gold 4.7.5 X-Affiliate, Add-on: X-Configurator, Add-on: X-SpecialOffers, Add-on: X-AOM, On Sale, EBay add on, Traffic Monitor, Froogle Feed, Drop Shipper, Newslist Manager, Product Options Copier 1.0, BCS Customer Reward Points, BCS Refer points, Ad Banner, PAYPAL PRO, Blue Dream, Drop Shipper bcse gallery
Reply With Quote
  #5  
Old 04-16-2005, 11:09 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

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}
__________________
4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:54 AM.

   

 
X-Cart forums © 2001-2020