Пример #1
0
 /**
  * Assigns Trusted Shops Protection product id and costs
  *
  * @param oxBasket $oBasket basket object
  */
 protected function _setTsProtection(oxBasket $oBasket)
 {
     // protection price
     if ($oTsProtectionCost = $oBasket->getCosts('oxtsprotection')) {
         $this->oxorder__oxtsprotectcosts = new oxField($oTsProtectionCost->getBruttoPrice(), oxField::T_RAW);
     }
     // protection protduct id
     $this->oxorder__oxtsprotectid = new oxField($oBasket->getTsProductId(), oxField::T_RAW);
 }