Example #1
0
 private function match()
 {
     if (!is_null($this->magentoProduct) && $this->magentoProduct->isGroupedType() && !$this->magentoProduct->getVariationVirtualAttributes()) {
         $channelAttribute = reset($this->destinationAttributes);
         $this->matchedAttributes = array(\Ess\M2ePro\Model\Magento\Product\Variation::GROUPED_PRODUCT_ATTRIBUTE_LABEL => $channelAttribute);
         return;
     }
     if ($this->matchByNames()) {
         return;
     }
     if (!$this->canUseDictionary) {
         return;
     }
     if ($this->matchByLocalVocabulary()) {
         return;
     }
     $this->matchByServerVocabulary();
 }