liqiusheng / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

ajaxify cart #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
build a JS / HTML / PHP / JSON framework for adding items to cart via the AJAX 
concept.  With it, we should be able to:

a. add product to cart
b. remove product from cart
c. update cart itself (already done)
d. update links like "Checkout (3)" where 3 is the number of items in cart.

This might be in the form of a module

Original issue reported on code.google.com by nfranc...@gmail.com on 3 Nov 2011 at 1:48

GoogleCodeExporter commented 8 years ago
e. product variation form

Original comment by nfranc...@gmail.com on 4 Nov 2011 at 8:48

GoogleCodeExporter commented 8 years ago
Perhaps a javascript object model could be looked at, and all ajax changes are 
communicated via json.

I don't think the system should rely on javascript at all. Impelmenting this as 
a seperate module should be possible, assuming the order/cart is clean and 
complete.

Original comment by jeremybu...@gmail.com on 10 Nov 2011 at 2:47

GoogleCodeExporter commented 8 years ago
yes - agreed, it should work without JS.  I also like the json system.  i will 
make a module.

Original comment by nfranc...@gmail.com on 10 Nov 2011 at 2:50

GoogleCodeExporter commented 8 years ago
Ideally a developer could add their own javascript layer to their ecommerce 
site. 

There are frameworks for building applications on top of a RESTful JSON 
interface, such as:
http://documentcloud.github.com/backbone/

Original comment by jeremybu...@gmail.com on 10 Nov 2011 at 3:24

GoogleCodeExporter commented 8 years ago
It could also be worth checking out how ajax-based systems like 
http://simplecartjs.com and http://www.foxycart.com/

Original comment by jeremybu...@gmail.com on 10 Nov 2011 at 3:27

GoogleCodeExporter commented 8 years ago

Original comment by nfranc...@gmail.com on 7 Apr 2012 at 11:29