Community Forums

Drag and drop cart

Coding, discussion and suggestions for OpenCart v0.x development

Drag and drop cart

Postby mr_raik » Tue Dec 30, 2008 9:15 pm

Hello all, i'm trying to modify Opencart that allow the user can drag and drop Product to basket ( cart module zone ) (see demo: http://www.dragdropcart.com/demo/ )

but i got stuck when trying to find where to send product's data for processing, and how to receive response
example: i drag'n drop a product to basket and send product_id using ajax, so product_id should be send to index?controller=product  page?
it seem that i have to create a new controller to handle this situation, right?
how is the data flow before adding item to cart then processing it?

see  http://www.ajaxlessons.com/2006/02/19/ajax-workshop-3-shopping-cart-using-scriptaculous/  for more info  :-\
anyone can help?  ??? ??? ::)
mr_raik
 
Posts: 1
Joined: Sun Dec 28, 2008 5:53 am

Re: Drag and drop cart

Postby Qphoria » Tue Dec 30, 2008 10:38 pm

opencart already uses jQuery so why not use that to create the drag n drop:

http://www.highoncoding.com/Articles/38 ... Query.aspx
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18213
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Drag and drop cart

Postby psionics » Sat Jan 03, 2009 7:50 pm

mr_raik wrote:Hello all, i'm trying to modify Opencart that allow the user can drag and drop Product to basket ( cart module zone ) (see demo: http://www.dragdropcart.com/demo/ )

but i got stuck when trying to find where to send product's data for processing, and how to receive response
example: i drag'n drop a product to basket and send product_id using ajax, so product_id should be send to index?controller=product  page?
it seem that i have to create a new controller to handle this situation, right?
how is the data flow before adding item to cart then processing it?

see  http://www.ajaxlessons.com/2006/02/19/ajax-workshop-3-shopping-cart-using-scriptaculous/  for more info  :-\
anyone can help?  ??? ??? ::)


nice.. that http://www.dragdropcart.com/demo/ has a pretty straight forward  front end and the products in admin side is optimized for inventory control and the product categories are like "tabbed" for better product control. which gives us the idea  ::)
psionics
 
Posts: 22
Joined: Tue Apr 01, 2008 8:49 am


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest

Hosted by Arvixe Web Hosting