You are here

Functions in Commerce Discount 7

Primary tabs

Namesort descending Location Description Direct uses Strings
commerce_discount_access ./commerce_discount.module Access callback for commerce_discount entities. 1
commerce_discount_add_line_item ./commerce_discount.rules.inc Creates a discount line item on the provided order. 2
commerce_discount_add_price_component ./commerce_discount.rules.inc Adds a discount price component to the provided line item. 5
commerce_discount_build_discount_rules ./commerce_discount.module Build the rules configuration for the given discounts. 2
commerce_discount_build_rule_machine_name ./commerce_discount.module Builds a machine name suitable for use as the rule machine name. 2
commerce_discount_calculate_order_total ./commerce_discount.module Dumb copy of commerce_order_calculate_total() which accepts a wrapped order. This is necessary when called from within a function that already has a wrapped order entity to make sure the static cache of the commerce_order_total field is correctly updated. 5
commerce_discount_commerce_cart_order_empty ./commerce_discount.module Implements hook_commerce_cart_order_empty().
commerce_discount_commerce_cart_order_refresh ./commerce_discount.module Implements hook_commerce_cart_order_refresh(). 1
commerce_discount_commerce_discount_delete ./commerce_discount.module Implements hook_commerce_discount_delete().
commerce_discount_commerce_discount_insert ./commerce_discount.module Implements hook_commerce_discount_insert().
commerce_discount_commerce_discount_offer_type_info ./commerce_discount.module Implements hook_commerce_discount_offer_type_info().
commerce_discount_commerce_discount_rule_build ./commerce_discount.module Implements hook_commerce_discount_rule_build().
commerce_discount_commerce_discount_type_info ./commerce_discount.module Implements hook_commerce_discount_type_info().
commerce_discount_commerce_discount_update ./commerce_discount.module Implements hook_commerce_discount_update().
commerce_discount_commerce_line_item_type_info ./commerce_discount.module Implements hook_commerce_line_item_type_info().
commerce_discount_commerce_order_delete ./commerce_discount.module Implements hook_commerce_order_delete().
commerce_discount_commerce_order_insert ./commerce_discount.module Implements hook_commerce_order_insert().
commerce_discount_commerce_order_update ./commerce_discount.module Implements hook_commerce_order_update().
commerce_discount_commerce_price_formatted_components_alter ./commerce_discount.module Implements hook_commerce_price_formatted_components_alter().
commerce_discount_compatibility_check ./commerce_discount.rules.inc Rules callback: executes the "Check discount compatibility at the order level" condition. 1
commerce_discount_compatibility_strategies ./commerce_discount.module Returns an array of discount compatibility strategies. 2
commerce_discount_date_combo_process_alter includes/commerce_discount.admin.inc Implements hook_date_combo_process_alter().
commerce_discount_date_condition ./commerce_discount.rules.inc Rules condition: Check discount can be applied. 2
commerce_discount_date_popup_process_alter includes/commerce_discount.admin.inc Implements hook_date_popup_process_alter().
commerce_discount_default_rules_configuration ./commerce_discount.rules_defaults.inc Implements hook_default_rules_configuration().
commerce_discount_delete_discount_line_item_by_name ./commerce_discount.module Deletes the first discount line item on an order matching by discount name.
commerce_discount_empty_price ./commerce_discount.module Returns the default array structure for a price field for use when reinitializing discount line items. 1
commerce_discount_entity_info ./commerce_discount.module Implements hook_entity_info().
commerce_discount_entity_info_alter ./commerce_discount.module Implements hook_entity_info_alter().
commerce_discount_entity_list ./commerce_discount.module Return an array keyed by commerce discount name and label as value. 2
commerce_discount_entity_property_info_alter ./commerce_discount.module Implements hook_entity_property_info_alter().
commerce_discount_features_pipe_commerce_discount_alter ./commerce_discount.module Implements hook_features_pipe_commerce_discount_alter().
commerce_discount_fields_ajax_callback includes/commerce_discount.admin.inc AJAX callback to attach the commerce discount fields to the form. 1
commerce_discount_field_widget_form_alter ./commerce_discount.module Implements hook_field_widget_form_alter().
commerce_discount_fixed_amount ./commerce_discount.rules.inc Rules action: Apply fixed amount discount. 1
commerce_discount_flush_caches ./commerce_discount.module Implements hook_flush_caches().
commerce_discount_form includes/commerce_discount.admin.inc Form callback: create or edit a discount.
commerce_discount_form_commerce_discount_form_alter ./commerce_discount.module Implements hook_form_FORM_ID_alter().
commerce_discount_form_features_export_form_alter ./commerce_discount.module Implements hook_form_FORM_ID_alter().
commerce_discount_form_pre_render includes/commerce_discount.admin.inc Add fields to the additional_settings vertical tabs container. 1
commerce_discount_form_submit includes/commerce_discount.admin.inc Form API submit callback for the type form.
commerce_discount_form_submit_delete includes/commerce_discount.admin.inc Form API submit callback for the delete button. 1
commerce_discount_form_validate includes/commerce_discount.admin.inc Form API validation callback for the type form.
commerce_discount_free_products ./commerce_discount.rules.inc Rules action: Apply free bonus products discount. 1
commerce_discount_free_shipping_strategies ./commerce_discount.module Returns a list of discount strategies for free shipping offers. 2
commerce_discount_get_compatibility_selection ./commerce_discount.module Returns the compatibility selection for the given discount. 1
commerce_discount_get_compatibility_strategy ./commerce_discount.module Returns the compatibility strategy for the given discount. 1
commerce_discount_get_discounts_applied_to_price ./commerce_discount.module Returns a list of discounts applied. 3
commerce_discount_get_free_shipping_strategy ./commerce_discount.module Returns the free shipping strategy for the given discount. 1
commerce_discount_inline_conditions_build_alter ./commerce_discount.inline_conditions.inc Implements hook_inline_conditions_build_alter().

Pages

Other projects