지난 8일 푸름이 환경기자단 4강이 대전 추동 생태문화관에서 진행되었습니다. 선애빌 이후 거의 2달 만에 보는 얼굴이라 그런지 훨씬 반가웠습니다.
벌써 4강이 끝나고, 다음이면 마지막 시간이네요, 다음시간에는 모두모두 참석했으면 하네요
다음시간까지 몸 건강히 잘 있기! 약속!
관련 개인/그룹
지역
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; }
댓글 달기