Commit cd81537c authored by rfay's avatar rfay

Do the line item configure routine as well so the price fields get added

parent 17cbc2ba
......@@ -34,9 +34,10 @@ function line_item_example_info_page() {
*/
function line_item_example_enable() {
// Here we'll use commerce_product_line_item_configuration(), which adds the
// 'commerce_product' field to the line item. If we didn't need that field,
// Here we'll use the standard configuration functions, which add the necessary
// fields to the line item. If we didn't need those fields,
// we could do less.
commerce_line_item_configure_line_item_type('example_line_item');
commerce_product_line_item_configuration('example_line_item');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment