You are here

function commerce_shipping_ui_help in Commerce Shipping 7.2

Implements hook_help().

File

./commerce_shipping_ui.module, line 197
Default Shipping UI for Drupal Commerce.

Code

function commerce_shipping_ui_help($path, $arg) {
  if (strpos($path, 'admin/commerce/config/shipping/methods') === 0 && empty($arg[6])) {
    return '<p>' . t('Shipping methods are used to define available shipping services and calculate their rates (e.g. store defined flat rates, carrier calculated rates).') . '</p>';
  }
  switch ($path) {
    case 'admin/commerce/config/shipping':
    case 'admin/commerce/config/shipping/services':
      return '<p>' . t('Shipping services are the various delivery options customers may choose from to have your products shipped to them (e.g. Standard shipping, Free shipping, Ground, Next Day Air).') . '</p>';
    case 'admin/commerce/config/shipping/calculation-rules':
      return t('Prior to display, shipping rates are calculated for each service using a base rate determined by the shipping method module and the rule configurations listed below. Calculation rules can be used for things like discounting or taxing shipping costs depending on the Rules elements defined by your enabled modules.');
    case 'admin/commerce/config/shipping/calculation-rules/add':
      return t('After setting the label for this rule configuration, you will be redirected to its empty edit page. There you should add the conditions that must be met for the calculation rule to apply. You can then use actions that alter the unit price of the shipping line item passed to the rule to affect the price customers will see when shipping service selection form elements are displayed.');
  }
}