当前位置: 首页>>代码示例>>PHP>>正文


PHP Ess_M2ePro_Model_Listing_Product::getAccount方法代码示例

本文整理汇总了PHP中Ess_M2ePro_Model_Listing_Product::getAccount方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Model_Listing_Product::getAccount方法的具体用法?PHP Ess_M2ePro_Model_Listing_Product::getAccount怎么用?PHP Ess_M2ePro_Model_Listing_Product::getAccount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ess_M2ePro_Model_Listing_Product的用法示例。


在下文中一共展示了Ess_M2ePro_Model_Listing_Product::getAccount方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: process

 public function process()
 {
     $dispatcherObject = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher');
     $connectorObj = $dispatcherObject->getConnector('custom', $this->getSearchMethod(), 'requester', $this->getConnectorParams(), $this->listingProduct->getAccount(), 'Ess_M2ePro_Model_Amazon_Search');
     $searchData = $dispatcherObject->process($connectorObj);
     return $this->prepareResult($searchData);
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:7,代码来源:Custom.php

示例2: __construct

 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Product $listingProduct)
 {
     if (!is_null($listingProduct->getActionConfigurator())) {
         $actionConfigurator = $listingProduct->getActionConfigurator();
     } else {
         $actionConfigurator = Mage::getModel('M2ePro/Ebay_Listing_Product_Action_Configurator');
     }
     $this->listingProduct = $listingProduct->loadInstance($listingProduct->getId());
     $this->listingProduct->setActionConfigurator($actionConfigurator);
     parent::__construct($params, $this->listingProduct->getMarketplace(), $this->listingProduct->getAccount());
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:11,代码来源:SingleAbstract.php

示例3: process

 public function process(Ess_M2ePro_Model_Listing_Product $listingProduct, $query)
 {
     $searchMethod = 'byQuery';
     $tempQuery = str_replace('-', '', $query);
     if ($this->isQueryEan($tempQuery) || $this->isQueryIsbn($tempQuery)) {
         $query = $tempQuery;
         $searchMethod = 'byEanIsbn';
     }
     $params = array('query' => $query, 'type' => 'manual', 'listing_product_id' => $listingProduct->getId());
     Mage::getModel('M2ePro/Connector_Play_Dispatcher')->processConnector('search', $searchMethod, 'requester', $params, $listingProduct->getAccount(), 'Ess_M2ePro_Model_Play');
     $result = Mage::helper('M2ePro/Data_Global')->getValue('temp_play_manual_search_result');
     Mage::helper('M2ePro/Data_Global')->unsetValue('temp_play_manual_search_result');
     return $result;
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:14,代码来源:Manual.php

示例4: process

 public function process(Ess_M2ePro_Model_Listing_Product $listingProduct, $query)
 {
     $searchMethod = 'byQuery';
     if ($this->isQueryGeneralId($query) || $this->isQueryUpc($query)) {
         $searchMethod = 'byIdentifier';
     }
     $params = array('query' => $query, 'type' => 'manual', 'listing_product_id' => $listingProduct->getId());
     if ($searchMethod == 'byIdentifier') {
         $params['search_type'] = $this->getSearchType($query);
     }
     Mage::getModel('M2ePro/Connector_Buy_Dispatcher')->processConnector('search', $searchMethod, 'requester', $params, $listingProduct->getAccount(), 'Ess_M2ePro_Model_Buy');
     $result = Mage::helper('M2ePro/Data_Global')->getValue('temp_buy_manual_search_result');
     Mage::helper('M2ePro/Data_Global')->unsetValue('temp_buy_manual_search_result');
     return $result;
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:15,代码来源:Manual.php

示例5: process

 public function process(Ess_M2ePro_Model_Listing_Product $listingProduct, $query)
 {
     $searchMethod = 'byQuery';
     $validation = Mage::helper('M2ePro');
     $tempQuery = str_replace('-', '', $query);
     if (Mage::helper('M2ePro/Component_Amazon')->isASIN($tempQuery) || $validation->isISBN10($tempQuery)) {
         $query = $tempQuery;
         $searchMethod = 'byAsin';
     } elseif ($validation->isEAN($tempQuery) || $validation->isUPC($tempQuery) || $validation->isISBN13($tempQuery)) {
         $query = $tempQuery;
         $searchMethod = 'byIdentifier';
     }
     $params = array('item' => $query, 'type' => 'manual', 'only_realtime' => true, 'search_method' => $searchMethod, 'listing_product_id' => $listingProduct->getId());
     if ($searchMethod == 'byIdentifier') {
         $params['id_type'] = $this->getIdentifierType($query);
     }
     Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processConnector('search', $searchMethod, 'requester', $params, $listingProduct->getAccount(), 'Ess_M2ePro_Model_Amazon');
     $result = Mage::helper('M2ePro/Data_Global')->getValue('temp_amazon_manual_search_result');
     Mage::helper('M2ePro/Data_Global')->unsetValue('temp_amazon_manual_search_result');
     return $result;
 }
开发者ID:xiaoguizhidao,项目名称:ecommerce,代码行数:21,代码来源:Manual.php

示例6: __construct

 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Product $listingProduct)
 {
     $this->listingProduct = $listingProduct;
     parent::__construct($params, $this->listingProduct->getMarketplace(), $this->listingProduct->getAccount());
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:5,代码来源:SingleAbstract.php


注:本文中的Ess_M2ePro_Model_Listing_Product::getAccount方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。