ROR+PHP+shopping cart

Dear comrades,

I tried the act_as_tree template of ROR. I found it clumsy, slow… for
a drag and drop workable solution of a shopping cart. I have a ready
made shopping cart written in PHP and a ROR web page with
restful_authentication. Could I force a marriage or a liaison between
the unwilling partners ? Could anyone direct me to any resources so that
I could be enlightened?

regards,
Dror C.

On 9 Apr 2008, at 18:31, Dror C. wrote:

I could be enlightened?
acts_as_tree sounds like an extremely odd choice for a shopping cart.
Something for maintaining a database representation of a tree
structure seems completely unrelated to a drag and drop shopping cart.
The answer to your question probably depends on exactly what you want
to do (ie how does the rails site relate to the php bits, what must
they share etc…)

Fred

Frederick C. wrote:

Tks Fred,

I have a ready made PhP shopping cart .
I have a ready made ROR model with restful authentication.
These models share a common MYSQL database.
My simple and naive idea is combine them together,
Perhaps you could enlighten me how to develop a shopping cart for my ROR
project.

regards,
Dror C.

On Wed, 9 Apr 2008, Dror C. wrote:

Perhaps you could enlighten me how to develop a shopping cart for my ROR
project.

Perhaps you could enlighten us and tell us why a shopping cart needs to
be
a tree data structure?


A

Perhaps the product categorization needs to be a tree structure.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)
VIDEO #3 out NOW!
http://sensei.zenunit.com/

http://substruct.googlecode.com might be a good start :stuck_out_tongue:

On Wed, Apr 9, 2008 at 11:05 AM, Dror C.
[email protected] wrote:

project.

regards,
Dror C.


Posted via http://www.ruby-forum.com/.

seth at subimage interactive

http://sublog.subimage.com

Cashboard - Estimates, invoices, and time tracking software - for free!
http://www.getcashboard.com

Substruct - Open source RoR e-commerce software.
http://code.google.com/p/substruct/

Rails supports drag&drop with the Scriptaculous js library:

http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html#M000992
http://api.rubyonrails.org/classes/ActionView/Helpers/ScriptaculousHelper.html#M000954

act_as_tree is only one of many options, you can make nearly every html
tag draggable or accept drags

have a look at the linked pages and here:
http://wiki.script.aculo.us/scriptaculous/

this should give you a good overview what to use/expect and search for

Eno wrote:

On Wed, 9 Apr 2008, Dror C. wrote:

Perhaps you could enlighten me how to develop a shopping cart for my ROR
project.

Perhaps you could enlighten us and tell us why a shopping cart needs to
be
a tree data structure?


A
I googled for plugin or template for drag and drop. I found act_as
_tree and ajax. That’s how I started to think drag and drop should have
been for RoR.

Materials in the web in this area is very limited. Agree? I have to be
enlightened.

Regards,

Spree is another option you might want to consider.

http://spreehq.org

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs