ePages 7.47.0 - DE_EPAGES/Catalog/API/TLE/ShopHandler.pm

Package DE_EPAGES::Catalog::API::TLE::ShopHandler

TLE related to shops

Functions

CATEGORY_PAGE_SIZE
PAGER_SETTING
PAGE_SIZE
PAGE_SIZE_JSON

CATEGORY_PAGE_SIZE

Returns PageSize for categroy

Syntax
#CATEGORY_PAGE_SIZE(#CategoryID)
Example
#CATEGORY_PAGE_SIZE(1337)
Input
#Category (Category)
current Category
Return
#PAGE_SIZE (integer)
number of product per page

PAGER_SETTING

Returns the default page size of the shop and the list of page sizes that customers can select from.

Syntax
#PAGER_SETTING(#Shop.Object, "SF_ProductTwoColumn")
Example
#PAGER_SETTING(#Shop.Object, "SF_LargProductBox")
Input
#Shop (shop)
current shop
#Alias (String)
alias of PagerSetting
Return
#PAGER_SETTING (ref.hash.)
keys: PageSizes - possible value for page size (ref.array.),
SelectedValue - selected page size (integer)

PAGE_SIZE

Return a ShopPagerSetting obeject or SystemPagerSetting object with requiered Pager information.

Syntax
#PAGE_SIZE(#Shop.Object, "SF_ProductTwoColumn")
Example
#PAGE_SIZE(#Shop.Object, "SF_LargProductBox")
Input
#Shop (shop)
current shop
#Alias (String)
alias of PagerSetting
Return
#PAGE_SIZE (integer)
number of product per page

PAGE_SIZE_JSON

Return a JSON hash with list of page

Syntax
#PAGE_SIZE_JSON(#Shop.Object, 'DropPrefix')
Input
#Object (object)
current object or shop
#DropPrefix (boolean)
should be prefix dropped
Return
#JSONHash (ref.hash.)
key layout name, value products per page