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
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); | |
} |
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
//DISPLAY | |
if ($ordered) { | |
$this->params['orderId'] = $session->get('currentOrderId'); | |
$this->params['optionNames'] = ''; | |
if ($pgId) { | |
$orderItem = $this->orderItemRepository->getOneByPrintGroupId($pgId); | |
$this->params['optionNames'] = $orderItem->getOrderItemOptionValueNames(); | |
} | |
$this->viewName = 'OpensoftOnpWebBundle:Approval:ordered.html.twig'; |
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
// 6 x 9 flyer | |
var fl6x9 = { | |
// face side of the product | |
metrics: { | |
// bleed sizing | |
bleed: { | |
shape: "rectangle", | |
measurement: "mm", | |
dimensions: { | |
width: 234.95, |