source/Application/Model/Order.php
protected function _setWrapping(\OxidEsales\Eshop\Application\Model\Basket $oBasket)
    {
        // wrapping price
        if (($oWrappingCost = $oBasket->getCosts('oxwrapping'))) {
            $this->oxorder__oxwrapcost = new \OxidEsales\Eshop\Core\Field($oWrappingCost->getBruttoPrice(), \OxidEsales\Eshop\Core\Field::T_RAW);
            // wrapping VAT will be always calculated (#3757)
            $this->oxorder__oxwrapvat = new \OxidEsales\Eshop\Core\Field($oWrappingCost->getVAT(), \OxidEsales\Eshop\Core\Field::T_RAW);
        }

        if (($oGiftCardCost = $oBasket->getCosts('oxgiftcard'))) {
            $this->oxorder__oxgiftcardcost = new \OxidEsales\Eshop\Core\Field($oGiftCardCost->getBruttoPrice(), \OxidEsales\Eshop\Core\Field::T_RAW);
            $this->oxorder__oxgiftcardvat = new \OxidEsales\Eshop\Core\Field($oGiftCardCost->getVAT(), \OxidEsales\Eshop\Core\Field::T_RAW);
        }

        // greetings card
        $this->oxorder__oxcardid = new \OxidEsales\Eshop\Core\Field($oBasket->getCardId(), \OxidEsales\Eshop\Core\Field::T_RAW);

        // card text will be stored in database
        $this->oxorder__oxcardtext = new \OxidEsales\Eshop\Core\Field($oBasket->getCardMessage(), \OxidEsales\Eshop\Core\Field::T_RAW);
    }
protected function _setWrapping(\OxidEsales\Eshop\Application\Model\Basket $oBasket)
    {
        // wrapping price
        if (($oWrappingCost = $oBasket->getCosts('oxwrapping'))) {
            $this->oxorder__oxwrapcost = new \OxidEsales\Eshop\Core\Field($oWrappingCost->getBruttoPrice(), \OxidEsales\Eshop\Core\Field::T_RAW);
            // wrapping VAT will be always calculated (#3757)
            $this->oxorder__oxwrapvat = new \OxidEsales\Eshop\Core\Field($oWrappingCost->getVAT(), \OxidEsales\Eshop\Core\Field::T_RAW);
        }

        if (($oGiftCardCost = $oBasket->getCosts('oxgiftcard'))) {
            $this->oxorder__oxgiftcardcost = new \OxidEsales\Eshop\Core\Field($oGiftCardCost->getBruttoPrice(), \OxidEsales\Eshop\Core\Field::T_RAW);
            $this->oxorder__oxgiftcardvat = new \OxidEsales\Eshop\Core\Field($oGiftCardCost->getVAT(), \OxidEsales\Eshop\Core\Field::T_RAW);
        }

        // greetings card
        $this->oxorder__oxcardid = new \OxidEsales\Eshop\Core\Field($oBasket->getCardId(), \OxidEsales\Eshop\Core\Field::T_RAW);

        // card text will be stored in database
        $this->oxorder__oxcardtext = new \OxidEsales\Eshop\Core\Field($oBasket->getCardMessage(), \OxidEsales\Eshop\Core\Field::T_RAW);
    }
protected function _setWrapping ( \ OxidEsales \ Eshop \ Application \ Model \ Basket $ oBasket ) { // wrapping price if ( ( $ oWrappingCost = $ oBasket -> getCosts ( 'oxwrapping' ) ) ) { $ this -> oxorder__oxwrapcost = new \ OxidEsales \ Eshop \ Core \ Field ( $ oWrappingCost -> getBruttoPrice ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; // wrapping VAT will be always calculated (#3757) $ this -> oxorder__oxwrapvat = new \ OxidEsales \ Eshop \ Core \ Field ( $ oWrappingCost -> getVAT ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; } if ( ( $ oGiftCardCost = $ oBasket -> getCosts ( 'oxgiftcard' ) ) ) { $ this -> oxorder__oxgiftcardcost = new \ OxidEsales \ Eshop \ Core \ Field ( $ oGiftCardCost -> getBruttoPrice ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; $ this -> oxorder__oxgiftcardvat = new \ OxidEsales \ Eshop \ Core \ Field ( $ oGiftCardCost -> getVAT ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; } // greetings card $ this -> oxorder__oxcardid = new \ OxidEsales \ Eshop \ Core \ Field ( $ oBasket -> getCardId ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; // card text will be stored in database $ this -> oxorder__oxcardtext = new \ OxidEsales \ Eshop \ Core \ Field ( $ oBasket -> getCardMessage ( ) , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; }
Assigns wrapping VAT and card price + card message info

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket basket object
Assigns wrapping VAT and card price + card message info