중간 지불에 매개 변수로 보내야하기 때문에 기본 URL이 필요합니다. 하위 도메인에 하위 URL이있는 서브 디렉토리가있는 경우 index.php로 URL을 설정하면 잘못된 경로가 추가됩니다.Magento가 설치된 기본 URL을 얻는 방법은 무엇입니까?
그래서 나는 아래 이미 madroes에서 객체 만 마법사 젠토을 선택 같은 뭔가가 필요
<?php
$resource = Mage::getSingleton('core/resource');
$readConnection = $resource->getConnection('core_read');
$query = "SELECT value FROM core_config_data WHERE scope = 'default' and path = 'web/unsecure/base_url'";
$results = $readConnection->fetchAll($query);
print_r($results);
?>
반환
Array ([0] => Array ([value] => http://url of install/))
상점 ID = 0 sublojas, 언어 또는 웹 사이트없이 기본 설치입니다 @clockworkgeek하지 않기 때문에 기본 상점을받지 않을 것 – Dexxtz