See the sample Template for reference. To register the required assets, call the
[[simplecartjs]] Snippet in your Template, or the Resource on which you want your cart. Or you can write your own script tags.
The most important property of the Snippet is
[email protected]` but it defaults to the site's
Insert the included
[[$simplecartjsItem]] Chunk, once for each item you're selling. Set custom properties on each Chunk to define that item's name, price and button text.
Call the included
Style with your own CSS, and you're done :) You can optionally use your own Chunks. There's absolutely no requirement to use the included Chunks. They only represent the most basic implementation, for nearly "plug n play" functionality.
I'd highly recommend you read the simplecartjs documentation for all the features and options: http://simplecartjs.org/documentation
Here are the Snippet properties and their default values:
That's it. I told you it was simple :) **Right now this Extra is awaiting approval for inclusion in the MODX Extras Repo.