Created
May 13, 2014 18:06
-
-
Save ceckoslab/996180ca5689d600e441 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Implementation of the validation logic | |
* | |
* @param Mage_Sales_Model_Quote_Item $item | |
* @return bool | |
*/ | |
public function validate($item) | |
{ | |
$qty = $item->getQty(); | |
if($qty % 10 != 0) { | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment