Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
commerce_omniva
Commits
eb054231
Commit
eb054231
authored
Sep 04, 2016
by
ram4nd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move shipping implementation to v2 branch.
parent
1a8d5199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
50 deletions
+0
-50
commerce_omniva.module
commerce_omniva.module
+0
-50
No files found.
commerce_omniva.module
View file @
eb054231
...
...
@@ -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
***************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment