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)
-   -   Flash SWF next to product description (https://forum.x-cart.com/showthread.php?t=43466)

Donster 11-05-2008 04:00 PM

Flash SWF next to product description
 
I would like to include a short video clip describing products. Clip seems to look best at about 1meg size.

Seems like a flash swf file could do it (I could do an animated gif but I think it would be slower to load - swf can stream, right?)

I can produce the videos that I want well enough. Just don't know how to implement them.

Would I modify a product template page or should I create a static page with the video, like a catalog of sorts?

Seem like it would be best to have a link right next to the product photo.

gb2world 11-05-2008 08:18 PM

Re: Flash SWF next to product description
 
maybe look at this mod?: x-cart-shadowbox-integration-v41

I've not used it for video - maybe someone else who has can advise you

Donster 11-06-2008 10:59 AM

Re: Flash SWF next to product description
 
Thanks. I researched your lead further. Might work.

I did see a user comment on the shadowbox forum that I also experienced with shadowbox while surfing the web. After the image comes up, to return to your website you have to close the image window properly. If you hit the browser back button like we are all trained to do, you do not return to the site hosting the image. I think the back button puts you on the Previous site, not too good for our customers. Maybe a fix for that.

chris128 11-13-2008 03:15 AM

Re: Flash SWF next to product description
 
Hi,
just wondered how you got on with this.
I have been trying to add an animated banner to my homepage (swf file) but it just shows a blank each time (not a blank with a red cross - just nothing).
Worked fine in osc but can not get an image in xcart.
I tried to look in the faqs but can not find specific details except about buying an add-on but surely you can add a banner without extras?
Thanks.

balinor 11-13-2008 03:25 AM

Re: Flash SWF next to product description
 
May want to read this one:

http://forum.x-cart.com/showthread.php?t=43328&highlight=add+flash

Donster 11-13-2008 08:20 AM

Re: Flash SWF next to product description
 
Looks like the previous post might help on the banner. I am not after a banner, but want to show a video clip of each product for a new site I am working on. I am surprised that I don't see much about this on the forums.

I will end up slugging it out on my own I guess, and if I learn anything useful I will post it for others.

balinor 11-13-2008 09:14 AM

Re: Flash SWF next to product description
 
Just use extra fields and add the flash code to the extra field for each product.

Donster 11-13-2008 01:54 PM

Re: Flash SWF next to product description
 
Paste HTML code into the new field created on the product edit page, like this sample that I found? I have never done this.

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

Donster 11-13-2008 02:03 PM

Re: Flash SWF next to product description
 
Or this way? Using SWFObject from another post:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "100%", "8", "#336699");
so.addParam("quality", "low");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
</script>

balinor 11-13-2008 02:37 PM

Re: Flash SWF next to product description
 
embed method

jpreskitt 11-14-2008 06:55 AM

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

balinor 11-14-2008 06:57 AM

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

Donster 11-14-2008 07:56 AM

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?

jpreskitt 11-14-2008 11:18 AM

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

Donster 11-14-2008 11:32 AM

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! : )

jpreskitt 11-14-2008 11:40 AM

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

Donster 11-14-2008 11:59 AM

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?


All times are GMT -8. The time now is 05:17 AM.

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