ShopWindow Appendix 1 Client Software Parameter Examples v3

From Wiki

Jump to: navigation, search

Contents

Client Software Parameters Examples

The following parameters are examples that can be integrated in order to further customise the data called through your ShopWindow Client Software.


Creating a Refine-By Object

$oRefineBy = new stdClass()
$oRefineBy -> iId = 4
$oRefineBy -> sName = 'Category'
 
 
$oRefineByDefinition = new stdClass()
$oRefineByDefinition -> sId = 623
$oRefineByDefinition -> sName = 'Novelty T-Shirts'
 
$oRefineBy -> oRefineByDefinition = $oRefineByDefinition


Category Tree

$oCategoryTreeParams -> iCategoryId =  x
$oCategoryTreeParams -> bExpandAllBranches = true


Merchant List

$oMerchantListParams ->iCategoryId = x
$oMerchantListParams ->iMaxResult  = x


Product Display List

$oProductDisplayListParams -> sQuery	= $_GET['q']
$oProductDisplayListParams -> iLimit	= x
$oProductDisplayListParams -> iOffset	= x
$oProductDisplayListParams -> sSort	= x
$oProductDisplayListParams -> oActiveRefineByGroup = $oRefineBy


Query List

$oQueryListParams -> iCategoryId	= x
$oQueryListParams -> bUseGlobalList	= true


Note If you wish to use multiple refine by objects at once, simply add them into an array when assigning to oActiveRefineByGroup. For example:

$oProductDisplayListParams -> oActiveRefineByGroup = array( $oRefineBy [, $oRefineBy2 [, 
array $...]] )