Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

AJAX drag n drop shopping cart Feature

Go to End

2 Posts   7821 Views


Community Member, 44 Posts

18 February 2009 at 11:18pm

Edited: 31/03/2009 1:30am

I am looking to develop an ajax drag n drop cart functionality with the existing e-commerce Module
I have been playing with the drag n drop code as seen at at (an entertaining cart :) ) and was looking to see if any extension of the E-commerce module may have been already started on a drag n drop cart
Also good documentation at

If anyone has tried implementing an ajax drag n drop with Silverstripe - please submit your ideas ? Or if you are keen to provide assistance with developing one.

I will start by modifying in E-Commerce Module /code/ShoppingCart.php but have limited php / AJAX knowledge so any advice will be glady accepted

i.e Should this be a widget or just additional functionality of the E-Commerce Module



Community Member, 44 Posts

31 March 2009 at 2:17am

Greetings - I have made some good progress on the drag n drop shopping cart Functionality
I have integrated a draggable and droppable items into a drop zone
Items have the ability to have the value (price or size) and quantity added

See the example at

What I am looking is getting the cart items and total into the Shopping cart Session Object - so can anyone assist??
Essentially integrating the cart - check out cart items with the SS php controller ShoppingCart.php but this needs someone with more knowledge of OO php than me

The developed Code is attached
Code files used are

### Files in SS used for Drag n Drop Storage Cart ###

Directories -> files

ecommerce > code >
-> ProductGroup.php
-> Product.php

ecommerce > templates > layout

ecommerce > templates > includes
-> (Javascript Include at bottom of page)

jsparty > jquery
-> jquery-1.2.6.js
-> jquery-ui-personalized-1.6rc4.min.js
Note: Prototype.js not used

Attached Files