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

Help - Using Flash to display products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-03-2004, 06:00 PM
 
dleaston dleaston is offline
 

Member
  
Join Date: Sep 2003
Posts: 11
 

Default 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
Reply With Quote
  #2  
Old 06-08-2004, 09:09 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 06-08-2004, 12:48 PM
 
dleaston dleaston is offline
 

Member
  
Join Date: Sep 2003
Posts: 11
 

Default

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
Reply With Quote
  #4  
Old 06-08-2004, 12:53 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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:
http://www.macromedia.com/support/flash/ts/documents/local_query.htm
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 06-08-2004, 01:11 PM
 
dleaston dleaston is offline
 

Member
  
Join Date: Sep 2003
Posts: 11
 

Default

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
Reply With Quote
  #6  
Old 06-08-2004, 09:04 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

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:
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=
Reply With Quote
  #7  
Old 06-08-2004, 09:14 PM
 
dleaston dleaston is offline
 

Member
  
Join Date: Sep 2003
Posts: 11
 

Default

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)
Reply With Quote
  #8  
Old 06-08-2004, 09:34 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #9  
Old 06-08-2004, 10:07 PM
 
dleaston dleaston is offline
 

Member
  
Join Date: Sep 2003
Posts: 11
 

Default

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
Reply With Quote
  #10  
Old 06-08-2004, 10:13 PM
 
dleaston dleaston is offline
 

Member
  
Join Date: Sep 2003
Posts: 11
 

Default

"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
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 01:50 AM.

   

 
X-Cart forums © 2001-2020