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

Flash SWF next to product description

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-14-2008, 06:55 AM
 
jpreskitt jpreskitt is offline
 

Member
  
Join Date: Dec 2007
Posts: 17
 

Default Re: Flash SWF next to product description

Quote:
Originally Posted by balinor
Just use extra fields and add the flash code to the extra field for each product.

What are the limitations of the Extras feild?
Looks like it might not support many lines of code.
Or can it?

John

Linux
__________________
XCart Pro
Reply With Quote
  #12  
Old 11-14-2008, 06:57 AM
 
balinor balinor is offline
 

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

Default Re: Flash SWF next to product description

I think it is 250 characters by default, but you can edit that directly in the DB via PHPMyAdmin
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #13  
Old 11-14-2008, 07:56 AM
 
Donster Donster is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 115
 

Default Re: Flash SWF next to product description

Thanks for steering me in the right direction balinor - a great help. My goal is an auto start, looping product video created from an avi file and compressed for the web into a flv or swf. Here are a few things that I learned over about six hours (I am a flash newbie).

It seems the the embed method (if not all methods) of presenting video has lots of issues for browser compatability and I have confirmed that by testing with different browsers. That aside, this is a couple of examples of what has worked for me, just pasting into the new product field:

<embed src="http://www.yourstore.com/video/player.swf" width="320" height="240"
bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file=http://www.yourstore.com/video/yourvideo.flv&autostart=true" />

The above worked for the JW FLV Player (referenced as player.swf), which apparently has a limitation of no loop for a single video (as opposed to a playlist). I got a headache trying to locate a cheap player that I could easily configure. I thought there were more available. So I came up with the below that does not require a FLV player because it uses a swf file (created from Flash 8 Pro, Sorensen Squeeze, and others)

To embed a swf file and use the "preferred" object method I had success with this.
This auto started, did no loop, so I used Squeeze to create loop effect within the swf, and it works that way. Change size as needed:


<object type="application/x-shockwave-flash" ╩ data="http://www.yourstore.com/video/yourvideo.swf" width="600" height="240"> <p>Alternative content</p> </object>
</object>

You can add parameters, paths and adjustments to this for your own preferences.

If anyone has an urgent need to see what I have done I can post it temporarily on my unrelated site that is live. I can tuck it into a infrequently visited product "corner". Hope to have a new site up soon with lots of examples.

If there are any flash experts out there I have a question about file sizes. Sorensen Squeeze (VERY feature rich) allows me to batch process avi files to swf, create watermarks, and easily set a looping video. Only catch is the file size is greater than when I use Flash 8 Pro (Not as feature rich), even when I match the parameters of compression. Why?
__________________
X-Cart Gold v4.1.10
Reply With Quote
  #14  
Old 11-14-2008, 11:18 AM
 
jpreskitt jpreskitt is offline
 

Member
  
Join Date: Dec 2007
Posts: 17
 

Default Re: Flash SWF next to product description

Donster,
What is your site? I'd like to see your vid once you have it up.
Or some example of what you did.
John
__________________
XCart Pro
Reply With Quote
  #15  
Old 11-14-2008, 11:32 AM
 
Donster Donster is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 115
 

Default Re: Flash SWF next to product description

I will leave this up for most of the day for you. My customers will think I am wacked if they see this here. See the video to the right of the product photo.

http://www.edfredstore.com/product.php?productid=16139&cat=259&page=1

While you on on the Edfred site, buy something! : )
__________________
X-Cart Gold v4.1.10
Reply With Quote
  #16  
Old 11-14-2008, 11:40 AM
 
jpreskitt jpreskitt is offline
 

Member
  
Join Date: Dec 2007
Posts: 17
 

Default Re: Flash SWF next to product description

Balinor,
Thanks for the suggestion about throwing code in extra feilds. Is it a matter of loacting the cordinates of this feature? To look into moving it to another area of the page?
Or is it possible to shimmy code into a product option (non associated with variants)?
Much apprciated,
John
Linux
__________________
XCart Pro
Reply With Quote
  #17  
Old 11-14-2008, 11:59 AM
 
Donster Donster is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 115
 

Default Re: Flash SWF next to product description

This code works for me with Opera and Firefox, but not IE 6.

<object type="application/x-shockwave-flash" ╩ data="http://www.yourstore.com/video/yourvideo.swf" width="600" height="240"> <p>Alternative content</p> </object>
</object>

Any suggestions anyone?
__________________
X-Cart Gold v4.1.10
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:10 PM.

   

 
X-Cart forums © 2001-2020