2016 환경책 기증처 신청 기관 모집에 응해주신 기관들께 감사인사 드립니다.
모든 기관에 환경책을 보내드리지 못해 아쉬운 마음을 전하며,
올해 환경책을 보내드릴 기관이 아래와 같이 선정되었음을 알려드립니다.
—————- [아래 ]—————-
생태자연도서관<봄눈>
충북 괴산 송면중학교
지혜의숲작은도서관
use Drupal\commerce_order\Entity\Order; /** * Implements hook_preprocess_HOOK() for commerce_checkout_order_summary. */ function bootstrap_barrio_subtheme_preprocess_commerce_checkout_order_summary(&$variables) { $order = $variables['order_entity']; // 주문 엔터티 $product_ids = []; if ($order instanceof Order) { foreach ($order->getItems() as $order_item) { $purchased_entity = $order_item->getPurchasedEntity(); if ($purchased_entity && $purchased_entity->getProduct()) { $product = $purchased_entity->getProduct(); $product_ids[] = $product->id(); } } } // Twig 템플릿에서 사용할 변수 추가 $variables['product_ids'] = $product_ids; }
댓글 달기