Created
February 6, 2015 23:50
-
-
Save iCodeForBananas/b4bbd98d958f8f0674ef to your computer and use it in GitHub Desktop.
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
| /** | |
| * Control the express shippping errors alert. | |
| */ | |
| $only_autom_products_in_shopping_cart = true; | |
| foreach ($products as $product) | |
| { | |
| // is not a shipping method and is not a manufacturer product | |
| if (! in_array($product['products']['products_id'], [416, 318]) && $product['manufacturers_id'] == 0) | |
| { | |
| $only_autom_products_in_shopping_cart = false; | |
| break; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment