antonythorpe/silvershop-jsonresponse

Silvershop submodule that provides JSON responses for cart updates

Installs: 18

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 0

Type:silverstripe-module

2.0.1 2018-03-01 05:05 UTC

README

Silvershop submodule that provides JSON responses for cart updates

Build Status Scrutinizer Code Quality helpfulrobot Latest Stable Version Total Downloads Latest Unstable Version License

Based upon the excellent work of Mark Guinn with Silvershop Ajax

How it works

Utilises the Silvershop extension points to provide a JSON response for cart changes

Use Case

Enhanced UX utilising a MV* Javascript library

Features

  • Additional endpoint of shoppingcart/get to obtain a JSON copy of the cart
  • JSON includes urls to addLink, removeLink, removeallLink, and setquantityLink for each product item in the cart
  • JSON includes image link, height, width, and alt for each item in the cart
  • Includes Subtotal and Grandtotal
  • Extension points for all endpoints, plus also for Modifiers

Limitations

Variations or the clear method have not been used in production

Requirements

Documentation

Index

Support

None sorry

Contributions

Link

Change Log

Link

License

MIT