Commit eb054231 authored by ram4nd's avatar ram4nd

Move shipping implementation to v2 branch.

parent 1a8d5199
......@@ -24,56 +24,6 @@ function commerce_omniva_locations() {
return $data;
}
/***************************************************************
* Commerce Shipping
***************************************************************/
//
///**
// * Implements hook_commerce_shipping_method_info().
// */
//function commerce_omniva_commerce_shipping_method_info() {
// $shipping_methods = array();
//
// $shipping_methods['omniva'] = array(
// 'title' => 'Omniva',
// 'description' => t('Quote rates from Omniva'),
// );
//
// return $shipping_methods;
//}
//
///**
// * Implements hook_commerce_shipping_service_info().
// */
//function commerce_omniva_commerce_shipping_service_info() {
// $shipping_services = array();
// $locations = commerce_omniva_locations();
// foreach ($locations as $country_code => $areas) {
// $shipping_services['omniva-' . drupal_strtolower($country_code)] = array(
// 'title' => 'Omniva ' . $country_code,
// 'description' => 'Omniva ' . $country_code . ' parcel terminals and post offices.',
// 'shipping_method' => 'omniva',
// 'price_component' => 'shipping',
// 'callbacks' => array(
// 'rate' => 'commerce_omniva_service_rate',
// ),
// );
// }
// return $shipping_services;
//}
//
///**
// * Shipping service callback: returns shipping rates for a given order.
// */
//function commerce_omniva_service_rate($shipping_service, $order) {
// $order_wrapper = entity_metadata_wrapper('commerce_order', $order);
// return array(
// 'amount' => 0,
// 'currency_code' => $order_wrapper->commerce_order_total->currency_code->value(),
// 'data' => array(),
// );
//}
/***************************************************************
* Commerce Omniva Field
***************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment