2010-04-03 5 views

답변

1

this Screencast에 따르면 특성 특성 매핑을 설정할 수 있어야합니다. 그게 너 한테 효과가 없니? 나는 그것을 설명

app/code/core/Mage/GoogleBase/Model/Service/Item.php  
protected function _setUniversalData() 
{ 
    //... 
    if ($object->getDescription()) { 
     $content = $service->newContent()->setText($object->getDescription()); 
     $entry->setContent($content); 
    } 
    //... 
} 
에게 위치를 잡는 것입니다 그것은 다음과 같습니다 구글베이스 모듈을 통해 검색 할 때, 깊은 찾고

, 나는 구글의 기본 계정이없는, 그래서이 테스트 할 수 없습니다,하지만

내 일반적인 접근 방식은 여기

protected function _setUniversalData() 
{ 
    parent::_setUniversalData(); 

    //your code to parse through this object, find the long desription, 
    //and replace with the short. The following is pseudo code and just 
    //a guess at what would work 
    $service = $this->getService(); 
    $object = $this->getObject(); 
    $entry = $this->getEntry();  

    $new_text = $object->getShortDescription(); //not sure on getter method 
    $content = $service->newContent()->setText($new_text); 
    $entry->setContent($content); 

    return $this; 
} 

행운과 같은 형태 그 Mage_GoogleBase_Model_Service_Item 클래스에 _setUniversalData 방법에 대한 재정의를 만들 수있을 것입니다!/

if ($object->getDescription()) { 
    $content = $service->newContent()->setText($object->getDescription()); 
    $entry->setContent($content); 
} 

응용 프로그램/코드/코어/마법사/GoogleBase/모델/서비스에

if ($object->getDescription()) { 
    $content = $service->newContent()->setText($object->getShortDescription()); 
    $entry->setContent($content); 
} 

+0

매핑은 기본이 아닌 속성에 대한 것일뿐입니다. 설명은 어딘가에 하드 코딩 된 것으로 보이지만 어디서 찾을 수 없습니다. – a1anm

+0

몇 가지 추가 정보로 답변을 업데이트하십시오. 행운을 빕니다! –

1

내가해야 할 일을했을 모두가 변화했다 알아 냈어

결국 모듈이 작동하고 모든 오류를 해결할 수있었습니다.

내가 조건 속성 & 매핑 속성을 추가하고 여기에 게시, 계정 구성을 포함하여 젠토의 Google Base 피드를 설정하는 방법에 함께 짧은 단계별 가이드를 넣어 http://blog.pod1.com/e-commerce/magento-google-base-feed/

0
Item.php을 :
0

젠토 구글을 1.7.0.2 쇼핑 1.7.0.0

app/code/core/Mage/GoogleShopping/Model/Attribute/Content.php 

변경 $description = $this->getGroupAttributeDescription();

$description = $this->getGroupAttributeShortDescription();

에서 0
관련 문제