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.

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

AJAX drag n drop shopping cart Feature


Reply


2 Posts   6849 Views

Avatar
boombox

Community Member, 44 Posts

18 February 2009 at 11:18pm

Edited: 31/03/2009 1:30am

Greetings
I am looking to develop an ajax drag n drop cart functionality with the existing e-commerce Module
I have been playing with the script.aculo.us drag n drop code as seen at
http://demo.script.aculo.us/ at http://design.theguigirl.com/cart.php (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 http://wiki.github.com/madrobby/scriptaculous/

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

Ta

Avatar
boombox

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 http://superiorstorage.smpmedia.co.nz/lounge/

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
-> ProductGroup.ss
-> Product.ss

ecommerce > templates > includes
-> ProductGroupItem.ss
-> Cart.ss
-> Draggable.ss (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