Example #1
0
 /**
  * Checks if articles has amount price
  *
  * @return bool
  */
 public function hasAmountPrice()
 {
     if (self::$_blHasAmountPrice === null) {
         self::$_blHasAmountPrice = false;
         $oDb = oxDb::getDb();
         $sQ = "SELECT 1 FROM `oxprice2article` LIMIT 1";
         if ($oDb->getOne($sQ)) {
             self::$_blHasAmountPrice = true;
         }
     }
     return self::$_blHasAmountPrice;
 }