ProductGroup SFO
Properties
Â
Methods
Method | Signature | Comments/Sample |
---|---|---|
|
| returns the group attribute assigned by this key |
|
| returns the attribute item array assigned to the attribute |
attrPageCollection | ProductGroup[] attrPageCollection(string name) | returns the attribute page collection ProductGroup array based upon the pages that were assigned in the attribute. |
|
| returns the group attribute assigned by this key |
attrSlider | Slider attrSlider(string key) | returns the Slider object associated with this attribute key. |
|
| returns the items for a given page of the entire catalog |
|
| returns the total count of items in the entire catalog |
|
| returns the simple string attribute for a given name |
getAttributeI18N | string getAttributeI18N(name) | returns the simple string attribute for a given name, translated into the desired language of the customer. |
getAttributeI18NHtmlLang | string getAttributeI18NHtmlLang(name) | returns the lang attribute that should be used on the surrounding DOM element for hte given attribute if it's been translated. |
|
| type is optional, and usually omitted. |
|
| returns an integer array of the possible "items per page" that can be selected by the customer. |
|
| returns a string array of all the possible item sort orders for sorting the items displayed on this group page. |
getBlogPostSummaries | BlogPostSummary[ ] getBlogPostSummaries() | Â |
getBlogPostSummariesCount | integer getBlogPostSummariesCount() | Â |
getBlogPostSummariesForPage | BlogPostSummary[ ] getBlogPostSummariesForPage(string pageNumber, integer blogPostSummariesPerPage) | Â |
getBlogPostSummariesForPage | BlogPostSummary[ ] getBlogPostSummariesForPage(integer pageNumber) | Â |
getBlogPostSummariesForPage | BlogPostSummary[ ] getBlogPostSummariesForPage(integer pageNumber, integer blogPostSummariesPerPage) | Â |
getBlogPostSummariesPageCount | BlogPostSummary[ ] getBlogPostSummariesPageCount(integer blogPostSummariesPerPage) | Â |
getBlogPostSummariesPageCount | BlogPostSummary[ ] getBlogPostSummariesPageCount() | Â |
getChildCount | integer getChildCount() | returns a count of the number of child pages this page has. |
|
| returns all product groups directly beneath this product group page. |
|
| returns the code assigned to this product group page. The code is an arbitrary key or name given to a product group page to find it quickly |
getCurrentBlogPostSummariesPerPage | integer getCurrentBlogPostSummariesPerPage() | returns the current pagination setting (per page) for blog posts summaries |
getCurrentItemsPerPage | integer getCurrentItemsPerPage() | returns the current items per page that the customer has chosen to have displayed. |
|
| Â |
|
| Â |
|
| gets all the items on this page and all the pages below this page. |
|
| Â |
getDescriptionHtmlLang | string getDescriptionHtmlLang() | returns the lang attribute that should be used on the surround HTML element for this description. Required by search engines when a page is translated into multiple languages. |
|
| parameters are optional. If you include any parameters, include them all. If you omit all parameters, the following defaults are used: layoutStyle="standard", width=450, sendButton=true, showFaces=true, verb="like", colorScheme="light" |
|
| Â |
getFacetSelectedCount | integer getFacetSelectedCount | the number of search facets that the customer has selected. |
getFacets() | SearchFacet[] getFacets() | returns the search facets associated with this page. |
|
| get the first assigned item to this page |
|
| parameters are optional. If you include any parameters, include them all. If you omit all parameters, the following defaults are used: annotationType="bubble", width=0, height=20, alignment="left" |
|
| googleTrustedStoreId is optional |
|
| the first two parameters are optional and may be omitted |
|
| get a product group for a given page, i.e. /products/chairs/wicker/ |
|
| Deprecated: use getDefaultMultimedia() instead |
|
| returns an item |
|
| total number of product items assigned to this group page |
|
| itemIdCsv is optional and usually omitted. If provided, it filters the assigned items down to just those provided in the comma delimited string |
|
| items, but with pagination. There are two ways to call this: 1) pageNumber and itemsPerPage, and 2) just pageNumber. Note, that if just using pageNumber, it should be an integer, not a string. Strange. If using method 1, pageNumber can be a string or an integer |
|
| returns how many group levels deep this page is. For example: /some/deep/dir/page.html would be be at level 3. |
|
| Â |
|
| type is an optional filter for by type, and is usually omitted |
|
| code is a unique string assigned to an image so it can be retrieved on demand |
| Â | |
|
| if items per page is missing, the current itemsPerPage is used |
|
| Â |
|
| Deprecated: use getURI() |
|
| Â |
| Â | |
|
| returns the root product group. Depth is optional, and usually omitted altogether. if it is present, it limits how deep the search goes to find the root. |
getSiblings() | ProductGroup[] getSiblings() | Returns all the other pages that are siblings of this page. Useful for building certain navigation menus. |
|
| width and height are required. Everything else is optional |
|
| Â |
getTitleHtmlLang | string getTitleHtmlLang() | Returns the lang attribute to be used on the surround HTML element. Required by search engines when a page has translated content. |
|
| top is the number of top items. Top 5, etc. days is the number of days which sales are considered for ranking |
|
| parameters are optional. If you include any parameters, include them all. If you omit all parameters, the following defaults are used: tweetText=null, countBoxStyle="horizontal",buttonSize="medium",viaUser=null |
getURI | string getURI() | Returns the proper URI to be used to access this group. Recommend over getPath() as this will generate the URI that matches what is visible in the StoreFront pages editor based upon whether the group has children or items assigned. |
hasBlogPostSummaries | boolean hasBlogPostSummaries() | true if this page is configured as a blog page and there are posts assigned to it. |
hasChildren | boolean hasChildren() | true if the page has any child pages assigned. |
|
| Â |
|
| returns true if this product group has items assigned to it |
|
| returns true if the given file exists on the server |
|
| true if the product group page can be seen by customers |
|
| Â |
|
| Â |