Created
May 13, 2016 23:51
-
-
Save mattmutt/f838143a94e1e2b6b3b89e9ab39c88ba 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
public function hasOrderItemMailingServicesOverlayCapability($item, $printGroupId) | |
{ | |
$checkForProductMailingService = $item->getProduct()->getProductOptionValueByName(OptionValue::NAME_MAILING_SERVICE); | |
return ($this->params['addressCount'] > 0 && !empty(MailingListLegacy::getInfo($printGroupId)) && | |
!empty($checkForProductMailingService && $checkForProductMailingService->getConfig()) && | |
$item->getSides() === 2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment