/** * Implements hook_preprocess_commerce_checkout_form(). */ function bootstrap_barrio_subtheme_preprocess_commerce_checkout_form(&$variables) { $form = &$variables['form']; $custom_fields = []; // 주문 엔터티 추출 시도 $order = NULL; $possible_keys = ['#order', 'order', '#entity', 'checkout']; foreach ($possible_keys as $key) { if (!empty($form[$key]) && $form[$key] instanceof \Drupal\commerce_order\Entity\OrderInterface) { $order = $form[$key]; \Drupal::logger('mytheme')->debug('Order found with key: @key', ['@key' => $key]); break; } } // 대체 방법: 현재 체크아웃 단계에서 주문 엔터티 로드 if (!$order) { $checkout_flow = \Drupal::routeMatch()->getParameter('commerce_checkout_flow'); if ($checkout_flow) { $order = \Drupal::routeMatch()->getParameter('commerce_order'); \Drupal::logger('mytheme')->debug('Order loaded from route: @order_id', ['@order_id' => $order ? $order->id() : 'none']); } } 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, ]; \Drupal::logger('mytheme')->debug('Field footer_block value: @value for product: @product_id', [ '@value' => $footer_block_value, '@product_id' => $product->id(), ]); } else { \Drupal::logger('mytheme')->debug('No product found for order item: @id', ['@id' => $order_item->id()]); } } } else { $custom_fields[] = ['footer_block' => '주문 엔터티를 찾을 수 없습니다.']; \Drupal::logger('mytheme')->debug('No order entity found. Form keys: @keys', ['@keys' => implode(', ', array_keys($form))]); } $variables['custom_fields'] = $custom_fields; $variables['form_keys'] = array_keys($form); } function bootstrap_barrio_subtheme_preprocess_commerce_checkout_order_summary(&$variables) { /** @var \Drupal\commerce_order\Entity\OrderInterface $order */ $order = $variables['order_entity']; $result = []; foreach ($order->getItems() as $item) { $variation = $item->getPurchasedEntity(); // 커스텀 필드값 가져오기 (배열 형태). $values = $variation->get('body')->getValue(); // 예: 각 라인아이템 별로 값 저장. $result[$item->id()] = $values; } $variables['body'] = $result; } 2021 온라인 회원총회ㅡZOOM 어플 접속 및 설정 방법 | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

2021 온라인 회원총회ㅡZOOM 어플 접속 및 설정 방법

수, 2021/02/03- 14:01admin 에 의해 제출됨
관련 개인/그룹
지역

주제: 안산환경운동연합의 2021 온라인 회원 정기총회
시간: 2021년 2월 6일 03:15 오후 서울
Zoom 회의 참가 링크
https://us02web.zoom.us/j/81336008907?pwd=eFgxZ2ZvRlljTmRMOFVHREFOOENNdz09

회의 ID: 813 3600 8907
암호: 20210206

회원 총회 당일, 3시15분부터 ZOOM 접속이 가능하며, 아래 설정 방법을 참고하여 입장해주세요=)

ZOOM 접속 및 설정 방법
1️⃣위의 참가 링크 클릭하여 접속
2️⃣이름(회원명) 입력하기
3️⃣”비디오를 사용하여 참가” 클릭
4️⃣”인터넷오디오로 통화” 클릭
5️⃣의견이 있을 시 손들고 발언하기

 

★비디오 또는 음성이 원활하지 않을 경우 종료 후 재접속 하기
★★재접속 후에도 연결이 원활하지 않다면 사무국으로 전화주세요(031-486-5120)

댓글 달기

CAPTCHA
스펨 사용자 차단 질문