Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » AJAX drag n drop shopping cart Feature

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

Page: 1
Go to End
Author Topic: 6719 Views
  • boombox
    Community Member
    44 Posts

    AJAX drag n drop shopping cart Feature Link to this post

    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


  • boombox
    Community Member
    44 Posts

    Re: AJAX drag n drop shopping cart Feature Link to this post

    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
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.