/** * Get the tax container for address level gifting taxes. * * @return ITaxContainer */ protected function _getTaxContainer() { $taxContainer = $this->_shipGroup->getGiftPricing(); if (!$taxContainer) { $taxContainer = $this->_shipGroup->getEmptyGiftingPriceGroup(); $this->_shipGroup->setGiftPricing($taxContainer); } return $taxContainer; }
/** * add envelope information as a pack slip * @param IGifting * @param Mage_GiftMessage_Model_Message */ protected function _addAsPackSlip(IGifting $giftingPayload, Mage_GiftMessage_Model_Message $message) { $giftingPayload->setLocalizedToLabel($this->_helper->__('To'))->setLocalizedFromLabel($this->_helper->__('From'))->setPackSlipTo($message->getRecipient())->setPackSlipFrom($message->getSender())->setPackSlipMessage($message->getMessage()); }