Discussions

Rule when a product is added.

Hi

I would like to add a rule when a new product is added. I have to validate from a web service for specific product types if the attributes specified are valid or not.

'ei_product_query_publish_new'=> array(
'label'=>t('On New Product Create'),
'group'=>t('Elastic Product'),
'parameter'=>array(
'product'=>array('type'=>'commerce-product','label'=>t('On New Product Create..'))
),
),

I plan to use the rules module to write my own action .. how ever I am unable to code the write type in rules.inc file as well unable to select the right data selector

Thanks
Raj

Posted: Feb 15, 2012

Comments