뭘 불러오나요

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
뭘 불러오나요

QA

뭘 불러오나요

답변 4

본문

<?php
include_once('./_common.php');
$naverpay_button_js = '';
include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');

// 보관기간이 지난 상품 삭제
cart_item_clean();

$sw_direct = isset($_REQUEST['sw_direct']) ? (int) $_REQUEST['sw_direct'] : 0;

// cart id 설정
set_cart_id($sw_direct);

$s_cart_id = get_session('ss_cart_id');
// 선택필드 초기화
$sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' ";
sql_query($sql);

$cart_action_url = G5_SHOP_URL.'/cartupdate.php';

if(function_exists('before_check_cart_price')) {
    before_check_cart_price($s_cart_id, true, true, true);
}

if (G5_IS_MOBILE) {
    include_once(G5_MSHOP_PATH.'/cart.php');
    return;
}

// 테마에 cart.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
    $theme_cart_file = G5_THEME_SHOP_PATH.'/cart.php';
    if(is_file($theme_cart_file)) {
        include_once($theme_cart_file);
        return;
        unset($theme_cart_file);
    }
}

$g5['title'] = '장바구니';
include_once('./_head.php');
?>

 

 

여기에서 include_once('./_head.php'); 이게 어디에 있는 뭘 불러오나요?

이 질문에 댓글 쓰기 :

답변 4

include_once('./_head.php'); 는 현 location에 있는 head..php 파일을  include 하는겁니다.

 

와 그런데 무척이나 비비꼬아 놨네요,,테마인데 테마아닌 폴더의 cart를 불러오더니 이제 _head를 불러오더니 다시  include_once(G5_SHOP_PATH.'/shop.head.php');이걸불러오네,,인덱스에서는 테마거를 불러오더니...이걸게 만들기도 어렷겟어요,,,ㅋㅋ 개념이 없는거라고 보는게 정확하겠죠..// 테마에 cart.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
    $theme_cart_file = G5_THEME_SHOP_PATH.'/cart.php';코드에는 있으면 불러온다고 하더니 이건 되지도 않고 ㅋㅋ

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