RefineByGroup

From Wiki

Jump to: navigation, search

Contents

RefineByGroup

The Refine By Group object.

Element

Type

iId required

The ID

Value Type: int

sName required

The name

Value Type: string

oRefineByDefinition optional

Refine by definition objec

Value Type: RefineByDefinition


Allowed Refine By Groups

iId

sName

1

Price

2

Brand

3

Merchant

4

Category


Usage Example Category (PHP)

<?php
$oRefineBy = new stdClass();
$oRefineBy -> iId = 4;
$oRefineBy -> sName = 'Category';
 
$oRefineByDefinition = new stdClass();
$oRefineByDefinition -> sId = 77; // Category ID
$oRefineByDefinition -> sName = '';
 
$oRefineBy -> oRefineByDefinition = $oRefineByDefinition;
?>


Usage Example price (PHP)

<?php
$oRefineBy = new stdClass();
$oRefineBy -> iId = 1;
$oRefineBy -> sName = 'Price';
 
$oRefineByDefinition = new stdClass();
$oRefineByDefinition -> sId = '500_1000';
$oRefineByDefinition -> sName = '';
 
$oRefineBy -> oRefineByDefinition = $oRefineByDefinition;
?>


Usage Example multiple merchant IDs (PHP)

<?php
$oRefineBy = new stdClass();
$oRefineBy->iId = 3;
$oRefineBy->sName = '';
 
$oRefineByDefinition = new stdClass();
$oRefineByDefinition->sId = '1598';
$oRefineByDefinition->sName = '';
 
$oRefineByDefinition2 = new stdClass();
$oRefineByDefinition2->sId = '1599';
$oRefineByDefinition2->sName = '';
 
$oRefineBy->oRefineByDefinition = array($oRefineByDefinition, $oRefineByDefinition2);
?>

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