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

Flash in xCart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-02-2009, 12:12 PM
 
Dirty Harry Dirty Harry is offline
 

Newbie
  
Join Date: Sep 2008
Posts: 9
 

Default Flash in xCart

Hi All,
I've been playing around with xCart for some time now, and I have managed to get Flash to display (and work with links) in Safari (I am one of those Mac guy), and firefox. I'm also running Parallels (a platform that lets me run XP on Mac), and Internet Explorer 7 just does not want to play nice.
I've gone through the forums, and tried all the suggested code posted, and IE is still being stuborn.
The Flash movie is on my index page (home page), and the current code is as follows;

HTML Code:
<div style="background-image: url({$ImagesDir}/bg_content.gif)" align="center"></div> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1024" height="260" id="index" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="/catalog/skin1/images/index.swf" quality="high" bgcolor="#000000" width="1024" height="260" name="index" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /> </object>

I been all over the Adobe site, and they don't say anything about IE that is helpful.
I've currently published via Flash CS4 (don't know if that makes any dif), but back a version ago, it used to include a Java script that Flash supplied. No more Java script now.
Any thoughts?

Thanks in advance.
__________________
cart version 4.1.9
Reply With Quote
  #2  
Old 02-02-2009, 12:44 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Flash in xCart

This might help you out.
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 02-02-2009, 01:48 PM
 
Dirty Harry Dirty Harry is offline
 

Newbie
  
Join Date: Sep 2008
Posts: 9
 

Default Re: Flash in xCart

Fantastic, worked wonderfully.
Thanks for you help Phil!!
__________________
cart version 4.1.9
Reply With Quote
  #4  
Old 02-13-2009, 02:49 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default Re: Flash in xCart

I tried Phil's method, which only worked with his .swf file. When I tried using a .flv file it failed.

But worse, is that if I entered even the demo code it crashed the backend of my site.

I use FCKeditor, and I'm adding the flash to "static" embedded .php pages (example: http://www.centuryperformance.com/precision-performance-spg-58.html) and want to embed .flv instruction videos in some of the pages.

I've tried everything I can think of and nothing is working. {literal} tags do not work in that the editor sees it as text only. Embed scripts don't work, and the built-in flash insert command in the editor also fails.

Suggestions?
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #5  
Old 02-13-2009, 03:08 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Flash in xCart

You can't play embedded FLV files directly, you need an SWF file with an FLV player built in (at least as far as I'm aware). Take a look at this http://www.longtailvideo.com/players/jw-flv-player/

You could use Shadowbox, which can play FLV videos in a nice lightbox effect.
__________________
xcartmods.co.uk
Reply With Quote
  #6  
Old 02-13-2009, 08:06 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Cool Re: Flash in xCart

Thanks for the link Phil ...

That is a great program (JW Player). Too bad it ALWAYS crashes (won't open) the pages in Internet Explorer.

You can create ONE page, load it ... it will play ONE time and then if you refresh the page it refuses to re-open. It works fine in Firefox and Google Chrome, and crashes in anything IE (including Avant).

I sent a support request to the designers, and we'll see what their reply is since they have not came up with a fix for the dozens of others who have posted the same problem in their forums. But, it is a NICE player.

Example:

http://www.centuryperformance.com/ringers-gloves-spg-62.html


Where the video is supposed to be (currently using embedded WMP)
http://www.centuryperformance.com/precision-performance-spg-58.html
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #7  
Old 02-15-2009, 06:12 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Question Re: Flash in xCart ... continued

I'm a bit out of my element here ... Errors/Failure with the JW Player, and ONLY in Internet Exploder. (intentional sarcasm)

Maybe someone here with more understanding the various X-Cart conflicts has an idea. I've attached a few images/text files.

In IE the JW player is giving an xID error. I tried searches for an explanation on xID errors and have not found anything that addresses what I'm seeing, or possible causes. I do not know where this value is being created (see attached ie.jpg image):
Quote:
xid=a7e7d6b17a28bc4d39a7c901da1eee5e3

I "believe" this is being caused by my FCKeditor in XCART because it is crashing the editor "only" on the static page being created. (UPDATED: My site does use a tweaked version of the SEO scripts [not Jon's]. Is there a possibility of an xID script from .htaccess and SEO?).

Below are my comments / testing to the developer of JW Player as to what I've done so far to isolate the problem.

Quote:
The page(s) worked fine both before I add the player code, and after I remove it. It has to be in conflict (my guess) with another script on the page, or in how IE is interpreting the combined script(s). I feel it definitely has something to do with the FCKeditor used to create the static page content, but confused as to why it is only an IE specific error (other than the obvious, that it is IE).

-----------------------
TESTING:

1) Commented out the code on the "ringers' page - it still crashes FCKeditor in backend (admin area) of that specific page, as well as in the browser (very ODD). I've attached two copies of the test .php file .... normal, and commented. For reference the FCKeditor (admin side) breaks in all browsers once the script is in place. (see attached image)
2) Created generic (outside of X-Cart) page: http://www.centuryperformance.com/page_001.php (works fine)
3) Created a NEW page (I have NOT viewed it yet) at: http://www.centuryperformance.com/static_pages.php?pageid=230

Go look at that page, then try refreshing.

-------------------------

Did you look at the source code to see if anything looked strange? I'm 'fair' at troubleshooting, but I'm not a coder. I can get in and muster around a few changes, but I suck at Java. I use a Firefox add-on to look at the source because it offers more detail.

I have numerous pages on the site with identical code (less player). X-Cart can be a bitch sometimes with scripts. If they are in the outer modules I have to use {literal} tags, but that does not work in the central static page content and only shows up as text.

You can see using the "Manufacturer" dropdown at far left of each page that I have hundreds of static pages working fine.

What is the most odd is say I insert the code in ANY of the static pages, and it will play ONE time. From then on it will crash. When I delete the script the page works fine. I even had a few friends try it out. If the page had "already' crashed ONCE they could not open it. If I created a page and did not preview it myself, just provide them a link, they can open the page ONE time and see the video. After that, the page fails to open for everyone.

I've tried closing </noscript> tags and researched other possibilities. By your forums it seems many others are having the same problem. I have a couple other scripts that compile the page as a whole (nothing in the "static" section) ... but again, your script works fine in all other browsers. I've dumped all the cookies and the cache is cleared at every browser shutdown.

Using WMV (works fine in all browsers), but I want to use a flash type player: http://www.centuryperformance.com/precision-performance-spg-58.html

Any help here is appreciated.
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #8  
Old 03-06-2009, 08:00 AM
 
Donster Donster is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 115
 

Default Re: Flash in xCart

I had some luck with flash in earlier versions of x-cart, but I need to know if version 4.2 has any issues or capabilities that I need to know of.

I am designing a 4.2 site with product video clips. I ordered a 7Dana skin and asked the question, but they told me to contact x-cart. I have the question pending with them, but no answer yet.
__________________
X-Cart Gold v4.1.10
Reply With Quote
  #9  
Old 03-06-2009, 08:08 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Flash in xCart

You should be able to implement it the same way you did before.
__________________
xcart 5.1.2
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 11:36 AM.

   

 
X-Cart forums © 2001-2020