○ 일시 : 2019년 11월 26일(화) 오후3시-5시
○ 장소 : 안산시 환경교통국 5층 회의실
조례 제정과 선포식 이후-
이제 막 기반이 마련된 상황에서
안산시의 환경교육은 어떤 방향으로 가야하는지
함께 논의하는 자리를 마련하였습니다.
많은 관심과 참여 부탁드립니다.
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; }
댓글 달기