function commerce_shipping_rates_cache_set in Commerce Shipping 7.2
Caches shipping rates for an order.
Parameters
string $method: The name of the shipping method the rates are being cached for.
object $order: The order the rates were calculated for.
array $rates: An array of base rate price arrays keyed by shipping service name.
File
- ./
commerce_shipping.module, line 678 - Defines a system for calculating shipping costs associated with an order.
Code
function commerce_shipping_rates_cache_set($method, $order, $rates) {
cache_set($order->order_id . ':' . $method, $rates, 'cache_commerce_shipping_rates', CACHE_TEMPORARY);
}