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; } 컨퍼런스 | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

컨퍼런스 태그글 모음

결과값: 1 - 1 of 1

디지털기술, 사회를 말하다 온라인 컨퍼런스

온라인 열린 컨퍼런스 – 소비를 넘어선 기술, 협업을 통한 혁신 각 분야 전문가의 혜안과 혁신 현장 당사자인 시민-기업-정부기관의 생생한 목소리를 아우르는 온라인 열린…

댓글: 0  조회수: 0