feat: add list.php theme override (#358)

* feat: add theme override in shop/list.php

* feat: add theme override in mobile/shop/list.php
This commit is contained in:
restarea92
2025-06-27 09:35:52 +09:00
committed by GitHub
parent 67415cf8d3
commit 327e7ba7ba
2 changed files with 20 additions and 0 deletions

View File

@ -1,6 +1,16 @@
<?php
include_once('./_common.php');
// 테마에 list.php 있으면 include
if(defined('G5_THEME_MSHOP_PATH')) {
$theme_list_file = G5_THEME_MSHOP_PATH.'/list.php';
if(is_file($theme_list_file)) {
include_once($theme_list_file);
return;
}
unset($theme_list_file);
}
// 상품 리스트에서 다른 필드로 정렬을 하려면 아래의 배열 코드에서 해당 필드를 추가하세요.
if( isset($sort) && ! in_array($sort, array('it_name', 'it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time')) ){
$sort='';