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
Comments
what type to coded in a Rule when a product is added
I am getting the following error when I add action when a new product is created.
The data type of the configured argument does not match the parameter's product requirement.
what should be the type for commerce-product?
Thanks
Raj
type was incorrect
type should be commerce_product not commerce-product. this drove me crazy for some time.