craftsmancoding / moxycart

A turnkey FoxyCart eCommerce solution for MODX Revolution
2 stars 0 forks source link

Refactor getProductImages snippet #15

Closed fireproofsocks closed 10 years ago

fireproofsocks commented 10 years ago

We should include an optional argument in the getProductImages snippet so a user can include a custom JS file and/or add custom text to the document head. The snippet will need to provide some sort of access to the regClientStartupScript and/or regClientStartupHTMLBlock and similar functions.

See http://rtfm.modx.com/revolution/2.x/developing-in-modx/basic-development/snippets/adding-css-and-js-to-your-pages-through-snippets

Please update the https://github.com/craftsmancoding/moxycart/wiki/getProductImages

You will also need to update the sample product template so it uses this updated version of the snippet: the template should not hard-code the JS library used. Instead, include the required JS files as argument(s) to this Snippet.

dadaniels commented 10 years ago

Update the documentation as well https://github.com/craftsmancoding/moxycart/wiki/getProductImages