코로나19가 주는 교훈: 불평등 해소와 경제구조 개편
편집자 주:
올해로 파리기후협약을 맺은 지 5주년 되는 해입니다. 지난해에 이어 올해도 팬데믹 덕분에 탄소배출량이 소량 줄어드는 것으로 알려져 있습니다만, 이산화탄소의 대기 중…
use Drupal\commerce_order\Entity\Order; /** * Implements hook_preprocess_HOOK() for commerce_checkout_order_summary. */ function bootstrap_barrio_subtheme_preprocess_commerce_checkout_order_summary(&$variables) { $order = $variables['order_entity']; // 주문 엔터티 $product_ids = []; if ($order instanceof Order) { foreach ($order->getItems() as $order_item) { $purchased_entity = $order_item->getPurchasedEntity(); if ($purchased_entity && $purchased_entity->getProduct()) { $product = $purchased_entity->getProduct(); $product_ids[] = $product->id(); } } } // Twig 템플릿에서 사용할 변수 추가 $variables['product_ids'] = $product_ids; }
편집자 주:
올해로 파리기후협약을 맺은 지 5주년 되는 해입니다. 지난해에 이어 올해도 팬데믹 덕분에 탄소배출량이 소량 줄어드는 것으로 알려져 있습니다만, 이산화탄소의 대기 중…