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)
-   -   Help - Using Flash to display products (https://forum.x-cart.com/showthread.php?t=7904)

dleaston 06-03-2004 06:00 PM

Help - Using Flash to display products
 
Does anyone know how to use swf files as the product images and not just gifs or jpgs?

I have a problem where i want to be able to dynamically write the price onto a handwriten style price tag. The flash bit i can do, its just making x-cart work that i'm strugling with - any help would be greatly appreciated.

I'm using the latest version of xcart on a unix server.

cheers,
David :!:

B00MER 06-08-2004 09:09 AM

:arrow: http://www.cart-lab.com/lab/customer/product.php?productid=42

I just released the above, I'm sure this same exact setup could be done for product images and detailed images. I had actually planned on making a second mod for such.

dleaston 06-08-2004 12:48 PM

Arh not bad thanks.

I managed to get flash to work for product listing :) even have the flash dynamically write the price on a little tag - check it out www.watchmarket.com.au

If anyones interested how i can post the source.

D

B00MER 06-08-2004 12:53 PM

Nice touch, defiantly not a bad idea. My only concern would be customers whom have Flash disabled or a previous version of the .swf's used on the product images. Are you doing a plugin detect to adjust to IMG tags incase? Another approach might be to use the GD library in PHP to generate JPG/GIF's instead, since they are more friendly. But nice none-the-less.

Here's the Macromedia Technote on passing local variables:
:arrow: http://www.macromedia.com/support/flash/ts/documents/local_query.htm

dleaston 06-08-2004 01:11 PM

hmm hadnt thought of gd libary - thanks i'll look into it.

about the version problem.. defintaly.. in the process of scaling it back to version 5 from 6 and putting some sniffer code in there as well.

Thanks for the link

Light Speed 06-08-2004 09:04 PM

Quote:

Originally Posted by B00MER
Nice touch, defiantly not a bad idea. My only concern would be customers whom have Flash disabled or a previous version of the .swf's used on the product images. Are you doing a plugin detect to adjust to IMG tags incase? Another approach might be to use the GD library in PHP to generate JPG/GIF's instead, since they are more friendly. But nice none-the-less.

Here's the Macromedia Technote on passing local variables:
:arrow: http://www.macromedia.com/support/flash/ts/documents/local_query.htm


I have the latest flash plugin and the images do not load. Only white space.

Mac OS 10.3.4
Browser - Safari 1.2.2

Activity monitor shows not found errors for these files:

http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16501&price=$%a029.95&watchURL =product.php?productid=16501&cat=103&page=1&tagX=9 8&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16503&price=$%a029.95&watchURL =product.php?productid=16503&cat=103&page=1&tagX=9 8&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16504&price=$%a029.95&watchURL =product.php?productid=16504&cat=103&page=1&tagX=9 2&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16505&price=$%a029.95&watchURL =product.php?productid=16505&cat=103&page=1&tagX=9 0&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16506&price=$%a029.95&watchURL =product.php?productid=16506&cat=103&page=1&tagX=9 0&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16507&price=$%a029.95&watchURL =product.php?productid=16507&cat=103&page=1&tagX=9 2&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16508&price=$%a029.95&watchURL =product.php?productid=16508&cat=103&page=1&tagX=9 2&tagY=
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16512&price=$%a029.95&watchURL =product.php?productid=16512&cat=103&page=1&tagX=9 5&tagY=10
http://www.watchmarket.com.au/skin1/images/watch_fla.swf?imageFilename=/image.php?productid=16513&price=$%a039.95&watchURL =product.php?productid=16513&cat=103&page=1&tagX=9 7&tagY=

dleaston 06-08-2004 09:14 PM

hmmm thanks for your post.

Not sure whats going on here - unfortunatly i dont have a mac to test with so i'm glad to get your feedback.

Does anyone know of any cavets i should know of when working with flash like this on macs?

Thanks in advance.

(the flash is currently in version 6)

B00MER 06-08-2004 09:34 PM

Why is your activity monitor reporting /skin1/images/watch_fla.swf when it should be just watch.swf ?

dleaston, You may want to watch out using two question ? marks in the filename since it may be causing the problems. Also make use of the FlashVars parameter added in flash 6 to help pass local vars. ;)

dleaston 06-08-2004 10:07 PM

arh.. the fact that theres two ?'s in the string doesnt work on a mac?

damn.

Ok - changing over now - let you know once its uploaded.

Cheers,

David

dleaston 06-08-2004 10:13 PM

"Why is your activity monitor reporting /skin1/images/watch_fla.swf when it should be just watch.swf ?"

This was probably my problem - thanks for picking that up and your help with this guys, i had the Object Tag as watch.swf, but forgot to change the embed tag to watch.swf from the orginal watch_fla.swf i was using.

I've also changed it over to the FlashVars method you provided info on boomer.

Could you guys have a look now for me and tell me if you see the watches with the price tags?

Thanks again,

David

Light Speed 06-08-2004 11:09 PM

Hey it works now :)

Nice job dleaston!


BOOMER the code in the page said:
<param name="movie" value="/skin1/images/watch.swf" />

So that's why the activity monitor (that lists all elements called on the page) listed the SWF as:

http://www.watchmarket.com.au/skin1/images/watch.swf

dleaston 06-08-2004 11:20 PM

wicked.

Thanks to both of you.


All times are GMT -8. The time now is 01:43 PM.

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