commerce_product_configure_product_type

  1. commerce
    1. 7
Versions
7 commerce_product_configure_product_type($type)

Ensures a base price field is present on a product type bundle.

▾ 3 functions call commerce_product_configure_product_type()

commerce_product_configure_product_fields in modules/product/commerce_product.module
Configures the fields on product types provided by other modules.
commerce_product_configure_product_types in modules/product/commerce_product.module
Configure the product types defined by enabled modules.
commerce_product_ui_product_type_save in modules/product/commerce_product_ui.module
Saves a product type.

Code

modules/product/commerce_product.module, line 312

<?php
function commerce_product_configure_product_type($type) {
  commerce_price_create_instance('commerce_price', 'commerce_product', $type, t('Price'), 0, 'calculated_sell_price');
}
?>