좋아, 이건 너무 늦었지 만, 누군가 이걸 유용하게 사용하기를 바랍니다. 시스템 작동 방식 및 사용중인 Magento 버전을 모르지만 모듈 GoogleCheckout에서 1.5 (사용하고있는 버전)에서 Model/Api/Xml/Abstract.php를 찾으십시오. 이것이 기본입니다 GoogleCheckout XML API의 다른 모델에 대한 모델이며 getCurrency()라는 메소드가 있습니다.
public function getCurrency()
{
if (!$this->hasData('currency')) {
$this->setData('currency', Mage::app()->getStore()->getBaseCurrencyCode());
//$this->setData('currency', $this->getLocale()=='en_US' ? 'USD' : 'GBP');
}
return $this->getData('currency');
}
는 로컬 폴더에이 클래스를 복사 메소드 getCurrency()을 변경해야합니다 PHP according to this에서 추상 클래스를 오버라이드 (override)하는 것은 좋은 생각이 아니다 그래서 GBP로 통화를 변환입니다.