Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* From Commerce Kickstart file ... /profiles/commerce_kickstart/modules/commerce_kickstart/commerce_kickstart_product/commerce_kickstart_product.ins, lines 23 - 34 */
- // Setup AutoSKU for product types provided by this module.
- foreach (commerce_kickstart_product_commerce_product_default_types() as $type => $type_info) {
- $record = new stdClass();
- $record->product_type = $type;
- $record->pattern = '[commerce-product:title]';
- $record->advanced = array(
- 'update_existing' => 0,
- 'hide_sku' => 1,
- 'case' => 'uppercase',
- );
- drupal_write_record('commerce_autosku_patterns', $record, 'product_type');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement