/** * 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); } [카드뉴스] 여름휴가, 챙겨다닐 필수품! | 시민정치마당 주요 콘텐츠로 건너뛰기
사이드바

[카드뉴스] 여름휴가, 챙겨다닐 필수품!

금, 2017/07/28- 17:03익명 (미확인) 에 의해 제출됨
관련 개인/그룹
지역

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

20170728_일회용컵 카드뉴스

<일회용 컵 보증금 제도의 부활과 컵 소재 단일화를 위한 움직임

: COME ON, CUP ON! 텀블러 줄게, 보증금 다오!> 

-산으로, 바다로, 카페로 떠나는 휴가철!

평소보다 더 많이 사용하게 되는 이것은 무엇일까요?

 

-바로 플라스틱 입니다.

일회용 컵, 페트병 등 여름철 플라스틱 사용량은 급증합니다.

 

-인류가 1950년 이래 생산해온 플라스틱양은 83억톤.

재활용율 9%(미국 캘리포니아주립대, 조지아주립대 공동연구팀)

 

-최근 플라스틱이 재활용되지 않고 대부분 일괄 폐기된다는 사실도 드러났는데요. (SBS보도)

 

-잠시 쓰이고, 오래 썩지 않는 플라스틱.

자기 컵과 텀블러 사용으로 더욱 시원하게 마시고

플라스틱 쓰레기를 덜 만드는 휴가는 어떨까요?

 

-개인의 실천을 넘어서, 여성환경연대는 더 나은 제도를 요구합니다.

일회용 컵 보증금 제도의 부활과 컵 소재 단일화!

일회용 컵의 소비량은 줄고, 회수율과 분리수거, 재활용은 늘 수 있도록!

함께 서명해주세요. bit.ly/law_cup

댓글 달기

CAPTCHA
스펨 사용자 차단 질문