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


Advertiser List

$oAdvertiserListParams ->iCategoryId = x
$oAdvertiserListParams ->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 $...]] )

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button