Skip to content

Instantly share code, notes, and snippets.

View mattmutt's full-sized avatar

Matt mattmutt

  • 𝐿𝒶𝓈 𝒱𝑒𝑔𝒶𝓈
  • X @matt415
View GitHub Profile
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);
}
//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';
// 6 x 9 flyer
var fl6x9 = {
// face side of the product
metrics: {
// bleed sizing
bleed: {
shape: "rectangle",
measurement: "mm",
dimensions: {
width: 234.95,