/**
  * Check if the product has wholesale price
  *
  * @return boolean
  */
 protected function hasWholesalePrice()
 {
     return $this->getProductVariant() && !$this->getProductVariant()->getDefaultPrice() ? \XLite\Core\Database::getRepo('XLite\\Module\\CDev\\Wholesale\\Model\\ProductVariantWholesalePrice')->hasWholesalePrice($this->getProductVariant()) : parent::hasWholesalePrice();
 }