/** * 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); } 2020년 한살림 옷되살림운동 | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

2020년 한살림 옷되살림운동

토, 2020/02/22- 01:06admin 에 의해 제출됨
관련 개인/그룹
카테고리

우리가 모은 옷이 학교가 됩니다4월 한 달간 한살림에 옷을 가져다 주세요.한살림은 옷을 모아 판매한 수익금으로 파키스탄 알카이르학교를 지원합니다.우리가 모은 옷이 파키스탄 빈곤지역 아이들의 배움을 향한 꿈을 응원할 수 있습니다.■ 기간: 2019년 4월 한 달 동안(지역생협에 따라 3월에 시작하는 곳도 있습니다.)■ 어떤 옷들을 모으나요?모으는 품목(O)♣ 의류(여성용, 남성용, 아동·유아·신생아용)· 4계절 옷 모두(한복과 전통의상만 제외)♣ 속옷(여성용, 남성용, 아동·유아·신생아용)· 모든 속옷(팬티, 브래지어, 보정 속옷 등)♣ 잡화· 모자, 목도리, 장갑, 양말, 신발, 벨트, 손수건, 수건(샤워타올 등)· 얇은 담요(무릎담.......

댓글 달기

CAPTCHA
스펨 사용자 차단 질문