Skip to content

Instantly share code, notes, and snippets.

@and1truong
Created July 26, 2012 20:30
Show Gist options
  • Select an option

  • Save and1truong/3184315 to your computer and use it in GitHub Desktop.

Select an option

Save and1truong/3184315 to your computer and use it in GitHub Desktop.
Make all Ubercart products shippable
<?php
/**
* Implements hook_cart_item().
*
* Make sure all products are shippable.
* Fix Card #6: Shipping issue with multiple products.
*/
function ss_cart_item($op, &$item) {
switch ($op) {
case 'load':
$item->data['shippable'] = 1;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment