antonythorpe/silvershop-jsonresponse

SilverShop submodule that provides JSON responses for cart updates

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

3.1.0 2020-11-24 08:00 UTC

This package is auto-updated.

Last update: 2024-03-01 00:09:02 UTC


README

SilverShop submodule that provides JSON responses for cart updates

CI Scrutinizer Code Quality Latest Stable Version Total Downloads 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