# 관리자 페이지 수정하기

## 📌 요구사항 및 분석

* `관리자 > 주문/배송 > 주문 관리 > 주문통합리스트` 에서 필요한 데이터를 추가로 확인하고자 함.

## 📝 개선안 정리

* `order_list_all.php` 페이지와 매핑되는 Controller 에서 Front로 전달하는 데이터를 추가
* `order_list_all.php` 페이지에서 컨트롤러에서 전달받은 데이터를 화면에 노출

## 🛠️ 커스터마이징 진행

### 📌 Controller 수정하기

1. `관리자페이지 > 개발소스관리` 팝업창을 엽니다.<br>

   <figure><img src="/files/WSledqW1WuNcgTWuVtyg" alt=""><figcaption></figcaption></figure>
2. `쇼핑몰 소스관리 > 고도몰 원본소스 보기` 에서 `data/module/Bundle/Controller/Admin/Order/OrderListAllController.php` \
   파일을 선택한 후, `'개발소스에 복사'버튼을` 클릭합니다.<br>

   <figure><img src="/files/g8KQJTy7FzsKfig87NE6" alt=""><figcaption></figcaption></figure>
3. `module/Controller/Admin/Order` 폴더 하위에 복사된 파일(`OrderListAllController.php`)을 확인하여 필요한 기능을 추가합니다.

```php
<?php
namespace Controller\Admin\Order;

class OrderListAllController extends \Bundle\Controller\Admin\Order\OrderListAllController
{
    public function index()
    {
        try {
            // 부모 클래스 상속
            parent::index();

            // 데이터 추가
            $addSource = '필요한 데이터를 추가해주세요';
            $this->setData('addSource', $addSource);

        } catch (\Exception $e) {
            throw $e;
        }
    }
}

```

### 📌 관리자 스킨 수정하기

1. `관리자페이지 > 개발소스관리` 팝업창을 엽니다.<br>

   <figure><img src="/files/WSledqW1WuNcgTWuVtyg" alt=""><figcaption></figcaption></figure>
2. `관리자스킨 소스관리 > 관리자 스킨소스 보기` 에서 \
   `data/module/Asset/Admin/order/order_list_all.php` 파일을 선택한 후, \
   `'운영소스에 복사'버튼을` 클릭합니다.<br>

   <figure><img src="/files/bjNY6EJMSqrV4cM4Vf6u" alt=""><figcaption></figcaption></figure>
3. `OrderListAllController.php` 에서 추가한 `addSrouce`를 추가합니다.

```php
<div class="page-header js-affix">
    <h3><?php echo end($naviMenu->location); ?>
        <small>취소/환불/반품/교환을 포함한 전체 주문리스트입니다.</small>
    </h3>
    <?php if (!isset($isProvider) && $isProvider != true) { ?>
        <div class="btn-group">
            <a href="order_write.php" class="btn btn-red-line">수기주문 등록</a>
        </div>
    <?php } ?>
</div>
<?php include $layoutOrderSearchForm;// 검색 및 프린트 폼 ?>

<!-- 추가기능 출력 -->
<?php echo $addSource; ?>
```

## 🔖 결과 확인

<figure><img src="/files/mSnh7yn7s80fsDdJ7ZeD" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devcenter-help.nhn-commerce.com/guide/tuning-example/modify-admin-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
