_baseProducts->finish(); } public function __construct() { parent::__construct(); $this->_baseProducts = new Wexo_Integration_Model_Adapter_Base_Magento_Products(); $this->_baseProducts->setLogger($this); $this->_baseProducts->_configurableAttributeCode = array ( 'size' ); $this->_baseProducts->_defaultValues['attribute_set_id'] = 10; $this->_baseOrders = new Wexo_Integration_Model_Adapter_Base_Magento_Orders(); $this->_baseOrders->setLogger($this); $this->_baseOrders->_getOrderStatus = "processing"; } public function putStockData ( $items ) { $this->_baseProducts->putStockData ( $items ); } public function putProducts ( $items ) { $this->_baseProducts->_createAttributes = array( 'name', 'size', 'price', 'cost', 'manufacturer', 'color', 'edb_number' ); $this->_baseProducts->_updateAttributes = array( 'cost' ); foreach ( $items as $item ) { $this->_baseProducts->preprocessProductValues ( $item ); $this->_baseProducts->putProducts ( array ( $item ) ); } } public function getOrders() { $this->_baseOrders->_startFromOrderId = 1; $orders = $this->_baseOrders->getOrders(); return $orders; } public function convertOrders($entry) { return $this->_baseOrders->convertOrders($entry); } public function confirmOrder($entry) { return $this->_baseOrders->confirmOrder($entry[0]); } }