Custom Line Item Types

Categories

Component ID

2698003

Component name

Custom Line Item Types

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is an API module defining some basic hooks that can be used to easily define your own line item types for Drupal Commerce 1.x that will behave differently on the shopping cart.

Also included is substantial functionality for adding any existing product to the cart using any custom line item type. This includes out-of-the-box AJAX cart handling.

Additionally, the custom_line_item_groups submodule allows you to create groups that will be separated on the cart and order pages.

Hooks:
hook_custom_line_item_types_info()
hook_custom_line_item_groups_info()

  • Drupal 7: Supported.
  • Drupal 8: Unsupported (May not be needed).