src/AmazonPaymentBundle/pkgShop/OrderSteps/AmazonAddressStep.php
public function Init()
    {
        parent::Init();
        $oUser = TdbDataExtranetUser::GetInstance();
        $shippingAddress = $oUser->GetShippingAddress();
        if (true === $shippingAddress->getIsAmazonShippingAddress()) {
            $oUser->resetAmazonAddresses();
            $basket = $this->getShopService()->getActiveBasket();
            $basket->RecalculateBasket(); // need to recalculate maybe changing address can change basket amount (gross net change)
        }
    }
public function Init()
    {
        parent::Init();
        $oUser = TdbDataExtranetUser::GetInstance();
        $shippingAddress = $oUser->GetShippingAddress();
        if (true === $shippingAddress->getIsAmazonShippingAddress()) {
            $oUser->resetAmazonAddresses();
            $basket = $this->getShopService()->getActiveBasket();
            $basket->RecalculateBasket(); // need to recalculate maybe changing address can change basket amount (gross net change)
        }
    }
public function Init ( ) { parent :: Init ( ) ; $ oUser = TdbDataExtranetUser :: GetInstance ( ) ; $ shippingAddress = $ oUser -> GetShippingAddress ( ) ; if ( true === $ shippingAddress -> getIsAmazonShippingAddress ( ) ) { $ oUser -> resetAmazonAddresses ( ) ; $ basket = $ this -> getShopService ( ) -> getActiveBasket ( ) ; $ basket -> RecalculateBasket ( ) ; // need to recalculate maybe changing address can change basket amount (gross net change) } }
reset address data because customer choose new in this step.
reset address data because customer choose new in this step .