Discussions

Create Products Using Rules

I'm trying to understand where commerce stores it's rules hooks. In my Drupal 7 install I have a tonne of custom entities which I am working on plugging into ctools to enable panels to alter the add/edit forms. My next step is to hook these custom entities to allow rules to drive various processes into them. I notice within rules when commerce is installed there is a bunch of predefined rules I expect this will be a good starting point for me.

Welcome any advice.

Posted: Jul 15, 2011

Comments

rfay Randy Fay on July 18, 2011

You may be interested in the new Rules Examples project. You can find Commerce rules conditions and actions in the *.rules.inc files:

./modules/line_item/commerce_line_item.rules.inc
./modules/payment/commerce_payment.rules.inc
./modules/order/commerce_order.rules.inc
./modules/checkout/commerce_checkout.rules.inc
./modules/price/commerce_price.rules.inc
./modules/tax/commerce_tax.rules.inc
./modules/cart/commerce_cart.rules.inc
./modules/product_reference/commerce_product_reference.rules.inc