Created
July 26, 2012 20:30
-
-
Save and1truong/3184315 to your computer and use it in GitHub Desktop.
Make all Ubercart products shippable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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