index.php에 상품상세페이지 include 어케해야하나요 ㅠ

index.php에 상품상세페이지 include 어케해야하나요 ㅠ

QA

index.php에 상품상세페이지 include 어케해야하나요 ㅠ

답변 2

본문

영카트 베이직테마 index.php에

 


<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
    include_once(G5_THEME_MSHOP_PATH.'/index.php');
    return;
}
define("_INDEX_", TRUE);
include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
?>
 
 
<?php
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
?>

 

얘들 빼고 다 지운다음 skin/shop/basic/item.form.skin.php 파일을 넣어보려고 하는데

 

<?php
include_once(G5_SKIN_PATH.'/shop/basic/item.info.skin.php');
?>

 

이렇게하니까 오류가 뜨더라구요

 

오류내용

Warning: Use of undefined constant G5_SHOP_CSS_URL - assumed 'G5_SHOP_CSS_URL' (this will throw an Error in a future version of PHP) in C:\xampp\yct\skin\shop\basic\item.info.skin.php on line 5

관련상품


Warning: Use of undefined constant G5_SHOP_CSS_URL - assumed 'G5_SHOP_CSS_URL' (this will throw an Error in a future version of PHP) in C:\xampp\yct\skin\shop\basic\relation.10.skin.php on line 5

등록된 상품이 없습니다.

상품 정보


Fatal error: Uncaught Error: Call to undefined function pg_anchor() in C:\xampp\yct\skin\shop\basic\item.info.skin.php:31 Stack trace: #0 C:\xampp\yct\theme\basic\shop\index.php(14): include_once() #1 C:\xampp\yct\shop\index.php(5): require_once('C:\\xampp\\yct\\th...') #2 {main} thrown in C:\xampp\yct\skin\shop\basic\item.info.skin.php on line 31

 

 

 

어디가 잘못된건가요?? 올바른 방법을 알려주시면 감사하겠습니다..

이 질문에 댓글 쓰기 :

답변 2

왜 굳이 인덱스 에서 해당 파일을 들고와야 하죠?

해당 파일은 연관된 부분들이 많아서 그렇게 사용할 수는 없고 쉽게 처리되는 부분이 아닙니다.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 123,788
© SIRSOFT
현재 페이지 제일 처음으로