00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Wishlist extends Mage_Adminhtml_Block_Sales_Order_Create_Sidebar_Abstract
00035 {
00036
00037 public function __construct()
00038 {
00039 parent::__construct();
00040 $this->setId('sales_order_create_sidebar_wishlist');
00041 $this->setDataId('wishlist');
00042 }
00043
00044 public function getHeaderText()
00045 {
00046 return Mage::helper('sales')->__('Wishlist');
00047 }
00048
00049
00050
00051
00052
00053
00054 public function getItemCollection()
00055 {
00056 $collection = $this->getData('item_collection');
00057 if (is_null($collection)) {
00058 if ($collection = $this->getCreateOrderModel()->getCustomerWishlist()) {
00059 $collection = $collection->getProductCollection()
00060 ->addAttributeToSelect('name')
00061 ->addAttributeToSelect('price')
00062 ->addAttributeToSelect('small_image')
00063 ->load();
00064 }
00065 $this->setData('item_collection', $collection);
00066 }
00067 return $collection;
00068 }
00069
00070 public function getItemId($item)
00071 {
00072 return $item->getWishlistItemId();
00073 }
00074
00075 }
00076