/** * @return int */ public function getConditions() { /** @var int $result */ $result = intval(Mage::getStoreConfig('df_yandex_market/products/conditions', df_helper()->yandexMarket()->getStoreProcessed())); df_result_integer($result); return $result; }
/** * @return string */ public function getSupportEmail() { /** @var string $result */ $result = Mage::getStoreConfig('df_yandex_market/shop/support_email', df_helper()->yandexMarket()->getStoreProcessed()); df_result_string($result); return $result; }
/** * @return bool */ public function isPickupAvailable() { /** @var bool $result */ $result = $this->getYesNo('df_yandex_market/general/pickup', df_helper()->yandexMarket()->getStoreProcessed()); df_result_boolean($result); return $result; }
/** * @return array */ private function getValue() { /** @var array $result */ $result = array('url' => df_helper()->yandexMarket()->preprocessUrl($this->getProduct()->getProductUrl()), 'price' => $this->getPriceAsText(), 'currencyId' => $this->getSettings()->general()->getCurrency()->getId(), 'categoryId' => $this->getCategoryId()); if (!is_null($this->getProduct()->getData('image'))) { $result['picture'] = df_helper()->yandexMarket()->preprocessUrl($this->getProduct()->getMediaConfig()->getMediaUrl($this->getProduct()->getData('image'))); } if (!$this->hasVendorInfo()) { $result['name'] = Df_Varien_Simplexml_Element::markAsCData($this->getProduct()->getName()); } else { $result = array_merge($result, array('vendor' => $this->getProduct()->getAttributeText('manufacturer'), 'vendorCode' => $this->getProduct()->getData('manufacturer'), 'model' => Df_Varien_Simplexml_Element::markAsCData($this->getProduct()->getName()), 'description' => Df_Varien_Simplexml_Element::markAsCData(df_convert_null_to_empty_string($this->getProduct()->getData('description'))))); } if (!is_null($this->getProduct()->getData('country_of_manufacture'))) { $result['country_of_origin'] = $this->getProduct()->getAttributeText('country_of_manufacture'); } if ($this->getSettings()->general()->hasPointsOfSale()) { $result = array_merge($result, array('store' => df_output()->convertBooleanToString($this->getProduct()->isSalable()), 'pickup' => df_output()->convertBooleanToString($this->getSettings()->general()->isPickupAvailable()), 'delivery' => df_output()->convertBooleanToString(true))); } df_result_array($result); return $result; }
/** * @return Mage_Core_Model_Store */ private function getStore() { /** @var Mage_Core_Model_Store $result */ $result = df_helper()->yandexMarket()->getStoreProcessed(); df_assert($result instanceof Mage_Core_Model_Store); return $result; }