ZMObject
└─ZMController
└─ZMAjaxController
└─ZMAjaxShoppingCartController
public class ZMAjaxShoppingCartController
extends ZMAjaxController
| Constructor Summary | |
|---|---|
ZMAjaxShoppingCartController() Create new instance. |
|
| Method Summary | |
|---|---|
| void | addProductJSON(ZMRequest request) Add product to cart. |
| void | estimateShippingJSON(ZMRequest request) Estimate shipping. |
| void | getContentsJSON(ZMRequest request) Get cart content. |
| void | removeProductJSON(ZMRequest request) Remove from cart. |
| void | updateProductJSON(ZMRequest request) Update cart product. |
| Methods inherited from org.zenmagick.mvc.controller.ZMAjaxController | |
|---|---|
| flattenObject, process, processGet, setJSONHeader, toJSON | |
| Methods inherited from org.zenmagick.mvc.controller.ZMController | |
|---|---|
| findView, getFormData, getId, getView, isFormSubmit, preProcess, process, processGet, processPost, setContentType, setId, setView, validate, validateFormData, validateSession | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMAjaxShoppingCartController()
Create new instance.
public void addProductJSON(ZMRequest request)
Add product to cart.
Doesn't support attributes yet.
URL parameter:
Will return the new cart contents.
public void estimateShippingJSON(ZMRequest request)
Estimate shipping.
public void getContentsJSON(ZMRequest request)
Get cart content.
public void removeProductJSON(ZMRequest request)
Remove from cart.
Will return the new cart contents.
URL parameter:
public void updateProductJSON(ZMRequest request)
Update cart product.
Doesn't support attributes yet.
URL parameter:
Will return the new cart contents.
Ajax controller for JSON shopping cart.