고객이 온라인 결제 방법의 청구서 수신 주소와 다른 주소로 배송 할 때만 선물 옵션 메시지를 표시하려고합니다. 결제 섹션에서 '동일/다른 주소로 배송'을 받으실 수 있습니다.결제 방법의 배송 주소 섹션에서 "청구서 수신 주소 사용"받기
$this->getQuote()->getShippingAddress()->getData('same_as_billing')
위대한 작품입니다. 그러나 고객이 배송 방법을 만들고 배송 주소를 변경하기 위해 다시 방문하면 해당 필드는 업데이트 된 것으로 보이지 않습니다. 나는 검사를 시도했다
$this->getQuote()->getShippingAddress()->getData('use_billing_address')
그러나 그 데이터는 존재하지 않는다. 사실,이 두 줄을 additional.phtml에 넣었을 때 :
Mage::log("Same as billing: ".$this->getQuote()->getShippingAddress()->getData('same_as_billing'));
Mage::log("Use billing: ".$this->getQuote()->getShippingAddress()->getData('use_billing_address'));
배송 주소에서 배송 방법으로 이동하면 트리거되지 않습니다. 아무도 내게 어떤 방향을 제시 할 수 있습니까?