Did anyone mixed Flash with OSCommerce?

  • masster
  • Newbie
  • Newbie
  • masster
  • Posts: 6

Post 3+ Months Ago


Are there any OSCommerce programmers? Because I would like to help me with a small problem I have.

Here's my case:

I am trying to build a kitchen furniture shop.
In this shop there are several furniture lines made of different furniture cabinets (base cabinets, wall cabinets, tall cabinets and accesories).

The main word for these kitchens is modularity, so any potential buyer can assemble visually (by using a Flash movie with Actionscript) their dream kitchen.

Now I am a little stuck, because I need to transfer to shopping cart the content of an array, which holds the list of wanted modules names along with their price, by clicking a single "Add to cart" button. Usually it is transferred only one item at a time.

How can I do that? Hopefully without adding some running some additional software on server, because I am only user on it, no root.

Your help will be greatly appreciated.
Tnank you for your time.
  • barrax
  • Newbie
  • Newbie
  • barrax
  • Posts: 12
  • Loc: Southampton, UK

Post 3+ Months Ago


yes this is something im thinking of doing - but for kitchen products - like teaware, knives etc. (spooky eh)

I guess from your virtual kitchen builder (flash) you would make a loadVars object like

Code: [ Select ]
kicthenObj = new LoadVars();
kicthenObj.cupboards = _root.selectedCupboards;
kicthenObj.cupboardHandles = _root.selectedCupboardHandles;
kicthenObj.sink = _root.selectedSink;
  1. kicthenObj = new LoadVars();
  2. kicthenObj.cupboards = _root.selectedCupboards;
  3. kicthenObj.cupboardHandles = _root.selectedCupboardHandles;
  4. kicthenObj.sink = _root.selectedSink;

and then use sendAndLoad to pass it back to the php

Code: [ Select ]
replyVars = new LoadVars();
replyVars.onLoad = function(success){
  //you sent the new kitchen obj fine;
  //no reply from the server;
  1. replyVars = new LoadVars();
  2. kitchenObj.sendAndLoad("oscommercescript.php",replyVars,"POST");
  3. replyVars.onLoad = function(success){
  4. if(success){
  5.   //you sent the new kitchen obj fine;
  6. }else{
  7.   //no reply from the server;
  8. }

I havent really looked into this much - but at a guess, this is how i would start out. Keep us posted on how you manage this project - i am definately interested in persuing flash/oscommerce applications:)

  • masster
  • Newbie
  • Newbie
  • masster
  • Posts: 6

Post 3+ Months Ago

Thank you, barrax.

LoadVars is the solution indeed. I'll tweak my current code at:

Code: [ Select ]

and hopefully I'll be able to find a way to add more than one item to shopping cart in OSCommerce by clicking a single button in my Flash movie.

  • gekko
  • Born
  • Born
  • gekko
  • Posts: 1
  • Loc: dallas, tx

Post 3+ Months Ago

can't you just have flash loop over the items and add them
one by one using the above method?

i'll let you know if i get it working.

  • masster
  • Newbie
  • Newbie
  • masster
  • Posts: 6

Post 3+ Months Ago

Well, yes, it can be a solution.

Meanwhile I tweaked my code to a beta version that can be seen here:


by clicking on "Personalizare" button for Bucatarie Classic Line ONLY (that's Customization) and then, in Flash, after building desired kitchen, by clicking on "Cumparare" (Buy)

Still have some work to do, because I have to build a new module in PHP for OSCommerce to allow me deal with master-slave products (master=kitchen line, slaves=cabinets).

Awaiting impressions.


Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.