Overview
CIMcloud Helpers allow you to get certain data, as well as run certain actions within Custom Code.
For a full list of CIMcloud Helper data functions, click the blue Tips and Tricks button on Custom Code pages, or the Advanced section in Workspace Settings / Customer Site Settings. You can also head directly to this page here:
- https://{your_site_name}.mycimcloud.com/app_settings_documentation.asp
Available Data
For catalog pages, you can access the ProductModel to pull properties related to the current product’s context.
On all pages custom code is available, you can pull properties related to the logged in Session, including Customer and Account information.
cimcloud.catalog.getProducts()
Allows you to get product data outside the current scope of the viewed product.
Format
cimcloud.catalog.getProducts(sku, callbackFunction())
Response
Example
cimcloud.catalog.addToCart()
Allows you to trigger adding items to the cart. Able to add more than one detail line at once.
Format
cimcloud.catalog.addToCart(sku, qty, uom, wh)
Response
Example