Jump to content

Edit History

jmelich

jmelich

Hi there,

 

I've spent my morning trying to add a field on combinations object resulting as harder as i've thought.

Does someone know how to do it?

I need to add a field price and wholesale_price from combination object to it, so i need id (actually have it) and pricing.

 

I tried all combinations and also debugging but not understanding it logic and why cannot include my atribute values resulting null

protected $webserviceParameters = array(
...
'associations' => array(
            'categories' => array(
                'resource' => 'category',
                'fields' => array(
                    'id' => array('required' => true),
                ),
            ),
            'images' => array(
                'resource' => 'image',
                'fields' => array('id' => array()),
            ),
            'combinations' => array(
                'resource' => 'combination',
                'fields' => array(
                    'id' => array('required' => true),
			'price' => array('required' => true),
			'wholesale_price' => array('required' => true),
                ),
            ),
...
jmelich

jmelich

Hi there,

 

I've spent my morning trying to add a field on combinations object resulting as harder as i've thought.

Does someone know how to do it?

I need to add a field price and wholesale_price from combination object to it, so i need id (actually have it) and pricing.

 

I tried all combinations and also debugging but not understanding it logic and why cannot include my atribute values resulting null

protected $webserviceParameters = array(
...
'associations' => array(
            'categories' => array(
                'resource' => 'category',
                'fields' => array(
                    'id' => array('required' => true),
                ),
            ),
            'images' => array(
                'resource' => 'image',
                'fields' => array('id' => array()),
            ),
            'combinations' => array(
                'resource' => 'combination',
                'fields' => array(
                    'id' => array('required' => true),
					'price' => a
 
rray('required' => true),
					'wholesale_price' => array('required' => true),
                ),
            ),
protected $webserviceParameters = array(
...
'associations' => array(
            'categories' => array(
                'resource' => 'category',
                'fields' => array(
                    'id' => array('required' => true),
                ),
            ),
            'images' => array(
                'resource' => 'image',
                'fields' => array('id' => array()),
            ),
            'combinations' => array(
                'resource' => 'combination',
                'fields' => array(
                    'id' => array('required' => true),
					'price' => array('required' => true),
					'wholesale_price' => array('required' => true),
                ),
            ),
...

...
×
×
  • Create New...