/** * 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); } ːː 조합원 오픈특강 ːː 사단법인 유니온센터의 청년노동전문가 양성과정 의 첫 강연을 청년유니온 조합원을 위한 오픈특강으로 준비했습니다! 유니온센터 신수정 이사(경제사회노동위원회 전문위원)님... | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

ːː 조합원 오픈특강 <노동조합의 이해> ːː

사단법인 유니온센터의 청년노동전문가 양성과정 <노동법 심화과정>의 첫 강연을 청년유니온 조합원을 위한 오픈특강으로 준비했습니다! 유니온센터 신수정 이사(경제사회노동위원회 전문위원)님...

수, 2021/06/23- 04:00admin 에 의해 제출됨
관련 개인/그룹
지역
카테고리

ːː 조합원 오픈특강 ːː



사단법인 유니온센터의 청년노동전문가 양성과정 의 첫 강연을 청년유니온 조합원을 위한 오픈특강으로 준비했습니다! 유니온센터 신수정 이사(경제사회노동위원회 전문위원)님과 노동3권과 노동조합에 대해 이해해보는 시간을 함께 만들어요.



※ 본 강연은 [노동법 심화과정]의 일환으로, 조합원에 한하여 1강에 한해 무료 강의를 진행합니다. 노동법 심화과정 전체과정을 수강하고 싶은 분들은 6/24(목)까지 https://apply.do/veqq 링크를 참고하여 신청해주시기 바랍니다.



▶️강의일시 : 2021년 6월 29일 화요일, 저녁 8시 ~ 10시

▶️강의방식 : ZOOM을 활용한 온라인 강연

▶️신청방법 : bit.ly/union_openedu



[문의]

이메일 : [email protected]

전 화 : 02-735-0262



댓글 달기

CAPTCHA
스펨 사용자 차단 질문