/** * Implements hook_preprocess_commerce_checkout_form(). */ function mytheme_preprocess_commerce_checkout_form(&$variables) { $form = &$variables['form']; $custom_fields = []; // 주문 엔터티 추출 시도 $order = NULL; if (!empty($form['#order'])) { $order = $form['#order']; } elseif (!empty($form['order'])) { $order = $form['order']; } elseif (!empty($form['#entity'])) { $order = $form['#entity']; } elseif (!empty($form['checkout'])) { $order = $form['checkout']; } if ($order && $order instanceof \Drupal\commerce_order\Entity\OrderInterface) { foreach ($order->getItems() as $order_item) { $variation = $order_item->getPurchasedEntity(); $product = $variation ? $variation->getProduct() : NULL; if ($product) { $footer_block_value = $product->hasField('field_footer_block') && !$product->field_footer_block->isEmpty() ? $product->field_footer_block->value : 'N/A'; $custom_fields[] = [ 'footer_block' => $footer_block_value, ]; } } } else { $custom_fields[] = ['footer_block' => '주문 엔터티를 찾을 수 없습니다.']; } $variables['custom_fields'] = $custom_fields; // 디버깅: form 키를 변수로 전달 $variables['form_keys'] = array_keys($form); } 시민단체, 인천시의회 수돗물 조사특위에 4대과제 제안 | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

시민단체, 인천시의회 수돗물 조사특위에 4대과제 제안

화, 2019/07/23- 03:03admin 에 의해 제출됨
관련 개인/그룹

인천평화복지연대는 11일 인천시민들은 인천시의회 수돗물 특위 활동을 통해 인천 상수도 적폐가 해결되는 기회가 되길 바라고 있다며 수돗물 특위 활동에 대해 4대 과제를 공개 제안한다고 밝혔다.

< 관련 뉴스 >

# 인천뉴스 : 시민단체, 인천시의회 수돗물 조사특위에 4대과제 제안 http://www.incheonnews.com/news/articleView.html?idxno=117919

# 중부일보 : 인천시민단체, 시의회 수돗물 조사 특위에 제언 http://www.joongboo.com/news/articleView.html?idxno=1369439

댓글 달기

CAPTCHA
스펨 사용자 차단 질문