function commerce_product_batch_pre_calculate_sell_prices_finished in Commerce Core 7
Displays a message upon completion of a batched sell price pre-calculation.
1 string reference to 'commerce_product_batch_pre_calculate_sell_prices_finished'
- commerce_product_batch_pre_calculate_sell_prices in modules/
product_pricing/ commerce_product_pricing.module - Sets a batch operation to pre-calculate product sell prices.
File
- modules/
product_pricing/ commerce_product_pricing.module, line 483 - Enables Rules based product sell price calculation for dynamic product pricing.
Code
function commerce_product_batch_pre_calculate_sell_prices_finished($success, $results, $operations) {
if ($success) {
$message = format_plural($results[0], "Sell prices pre-calculated for 1 product resulting in @total prices created.", "Sell prices pre-calculated for @count products resulting in @total prices created.", array(
'@total' => $results[1],
));
}
else {
$message = t('Batch pre-calculation finished with an error.');
}
drupal_set_message($message);
}