Anchor Group Dev Help
Command Pallete Commands:
- AG: Add Custom Gulp Code - Add custom gulp files in a SuiteCommerce Repo.
- AG: Create SuiteScript - Generate a SuiteScript template.
- AG: Create SuiteCommerce Templates - Generate default SuiteCommerce objects like Views, Forms, Collections, etc.
Configuration Options:
Note: Set these options to auto-populate your name on SuiteScript headers when building SuiteScripts with the command above.
- fileUserName - Text input.
- fileUserEmail - Text input.
Custom Gulp Commands:
Note: Like all gulp commands, be sure to run these in either the Extensions or Theme folder of your repo.
- gulp f ---- runs "gulp extension:fetch"
- gulp l ---- runs "gulp extension:local"
- gulp um ---- runs "gulp extension:update-manifest"
- gulp c ---- runs "gulp extension:create"
- gulp d ---- runs "gulp extension:deploy"
Anchor Group Snippets
Suitescript Snippets
The following snippets exist for SuiteScripts:
start typing the text in quotes to bring up the snippet examples
"log" module
"record" module
- create
- load
- save
- delete
- submitFields
- selectLine
- selectNewLine
- getValue
- setValue
"search" module
- create
- createPaged
- load
- lookupFields
"runtime" module
- getCurrentScript
- getCurrentUser
- executionContext
- getParameter
- getRemainingUsage
"email" module
Misc
- "sublistLoop" => simple loop over a sublist
- "getSublistValue"
- "setSublistValue"
SuiteCommerce Snippets
The following snippets exist for SuiteCommerce:
start typing the text in quotes to bring up the snippet examples
Load components
- "layout"
- "registerView" => layout.registerView
- "environment"
- "getConfig" => get configuration
- "myaccountmenu"
- "addGroup" => add menu group
- "removeGroup" => remove native menu group
- NOTE: "MyAccountMenu" and "MyAccountMenuSource" are a dependency and variable name respectively and should be added to the define/function arguments.
- "addGroupEntry" => add menu subgroup
- "cart"
- "checkout"
- "plp"
- "pdp" => load component and iteminfo
- "pagetype"
- "registerPageType" => pagetype.registerPageType example
- "userprofile" => load component and userProfile
Misc
- "wrap" => simple function wrap for adding context to source code
- "getBreadcrumbPages" => example 'getBreadcrumbPages' function
- "getSelectedMenu" => example 'getSelectedMenu' function
- "beforeShowContent" => example 'beforeShowContent' function
- "addChildView" => example child view declaration
- "addConfirmationModal" => example 'GlobalViews.Confirmation.View' declaration
- "addMessageModal" => example 'GlobalViews.Message.View' declaration
| |