/** * 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; } 익스프레스에도 지회가 생겼어요^^, 82호 설립 | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

익스프레스에도 지회가 생겼어요^^, 82호 설립

토, 2019/04/06- 02:04admin 에 의해 제출됨
지역
카테고리

 

○ 너무 반가운 소식입니다. 4월 5일 익스프레스에도 노동조합 첫 지회가 설립되었습니다.

○ 82호 지회로 오늘 설립된 <부산익스프레스1지회>는 부산 익스프레스 모라점 조합원들을 중심으로 인근 익스프레스 직원들과 함께 설립한 아주 소중한 결실입니다. 마트노조로는 138호 지회입니다.

 

○ 익스프레스는 마트 가운데서도 가장 열악한 무법지대 같은 현장입니다. 하이퍼매장과 비교할 수 없을 정도로 작은 데다 다른 조합원들과의 연계도 거의 없어 지회를 설립할 엄두도 내지 못하던 곳입니다.

○ 온갖 차별과 부당한 대우, 열악한 근무조건에 시달리던 익스프레스 직원들도 이제 노동조합과 함께 당당한 노동자의 길을 함께 걷게 되었습니다.

 

○ 부산지역의 모범으로 익스프레스 첫 지회가 설립된 것을 계기로 노동조합은 앞으로 더욱 공격적으로 전국 곳곳에서 왕성한 지회설립을 이뤄나가겠습니다.

○ 익스프레스 조합원들의 결심에 많은 지지와 성원을 보내주시고 앞으로 모든 익스프레스 직원들도 노동조합과 함께 할 수 있도록 더 열심히 하겠습니다.

 

The post 익스프레스에도 지회가 생겼어요^^, 82호 설립 appeared first on 홈플러스 노동조합 홈페이지.

댓글 달기

CAPTCHA
스펨 사용자 차단 질문