You are here

Functions in Commerce Stock 7

Primary tabs

Namesort descending Location Description Direct uses Strings
commerce_stock_add_to_cart_validate ./commerce_stock.module Form validate handler: validate checkout form. 1
commerce_stock_adjust ./commerce_stock.rules.inc Adjusts a particular product SKU by a certain value. A positive integer will add to stock, a negative integer will remove from stock. Somewhat the equivalent of uc_stock_adjust(). 2
commerce_stock_adjust_by_line_item ./commerce_stock.rules.inc For backward compatibility, keep a function by the old name.
commerce_stock_admin_form includes/commerce_stock.admin.inc Commerce Stock admin form. 1
commerce_stock_admin_form_submit includes/commerce_stock.admin.inc Add or remove the Stock field from product types.
commerce_stock_admin_form_validate includes/commerce_stock.admin.inc Form validator. If they are deleting and have not checked the confirmation checkbox, make them do so.
commerce_stock_admin_init includes/commerce_stock.admin.inc This functions parses all the product of the specified bundle, and initialize its stock field (commerce_stock) to a value 1
commerce_stock_checkout_form_validate ./commerce_stock.module Form validate handler: validate checkout form. 1
commerce_stock_checkout_validate ./commerce_stock.module 2
commerce_stock_check_cart_product_level ./commerce_stock.module check if product is in the cart and return the quentity if it is 2
commerce_stock_commerce_checkout_pane_checkout_form ./commerce_stock.module The stock checkout pane form: call stock the validation when displaying the form this will alow us to redirect the user before he starts checkout
commerce_stock_commerce_checkout_pane_info ./commerce_stock.module Implements hook_commerce_checkout_pane_info().
commerce_stock_configure_product_type ./commerce_stock.module Ensures a stock field is present on a product type bundle.
commerce_stock_create_instance ./commerce_stock.module Creates a required instance of a stock field on the specified bundle. 2
commerce_stock_decrease_by_line_item ./commerce_stock.rules.inc If the line item is stock-enabled, subtract the sold amount in a line item from stock. 1
commerce_stock_default_rules_configuration ./commerce_stock.rules_defaults.inc @file Default rule configurations for Commerce Stock.
commerce_stock_form_after_build ./commerce_stock.module Form after_build handler: validate the product is in stock. 1
commerce_stock_form_alter ./commerce_stock.module Implements hook_form_alter().
commerce_stock_form_commerce_cart_validate ./commerce_stock.module Form validator function for cart form. 1
commerce_stock_form_views_form_commerce_cart_form_default_alter ./commerce_stock.module Implements hook_form_FORM_ID_alter().
commerce_stock_increase_by_line_item ./commerce_stock.rules.inc If the line item is stock-enabled, add the sold amount in a line item to stock. Typically used when a line item is removed from an order (as when items are added to and removed from cart).
commerce_stock_line_item_product_enabled ./commerce_stock.module Given a line item, determine whether stock management is enabled for that line item. 1
commerce_stock_menu ./commerce_stock.module Implements hook_menu().
commerce_stock_option_validate ./commerce_stock.module Form validate handler: validate the product and quantity to add to the cart. 1
commerce_stock_order_has_out_of_stock ./commerce_stock.module Determine whether an order has items which are out of stock. 1
commerce_stock_permission ./commerce_stock.module Implements hook_permission().
commerce_stock_product_check_out_of_stock ./commerce_stock.module Check whether a purrchase quantity exceeds what is available. 4
commerce_stock_product_enabled ./commerce_stock.module Given a product, determine whether stock management is enabled for that product.
commerce_stock_product_type_enabled ./commerce_stock.module Given a product type, determine whether stock management is enabled on that product type. 6
commerce_stock_product_type_override_enabled ./commerce_stock.module Given a product type, determine whether stock management override is enabled on that product type. 3
commerce_stock_rules_action_info ./commerce_stock.rules.inc Implements hook_rules_action_info().
commerce_stock_rules_condition_info ./commerce_stock.rules.inc Implements hook_rules_condition_info().
commerce_stock_rules_order_has_out_of_stock ./commerce_stock.rules.inc Rules condition: checks to see if the given order is in a cart status. 1

Other projects