24 if (
$myConfig->getConfigParam(
'blEnterNetPrice' ) )
25 $sIndex =
" * ". (1+
$myConfig->getConfigParam(
'dDefaultVAT' )/100);
29 $this->_aViewData[
'iAllCnt'] = 0;
30 $sQ =
"select oxprice, oxartid from oxpricealarm where oxsended = '000-00-00 00:00:00' and oxshopid = '$sShopID' ";
32 if ($rs !=
false && $rs->recordCount() > 0) {
33 $aSimpleCache = array();
35 $sPrice = $rs->fields[0];
36 $sArtID = $rs->fields[1];
37 if (isset($aSimpleCache[$sArtID])) {
38 if ($aSimpleCache[$sArtID] <= $sPrice) {
39 $this->_aViewData[
'iAllCnt'] += 1;
42 $oArticle =
oxNew(
"oxarticle" );
43 if ( $oArticle->load($sArtID)) {
44 $dArtPrice = $aSimpleCache[$sArtID] = $oArticle->getPrice()->getBruttoPrice();
45 if ($dArtPrice <= $sPrice) {
46 $this->_aViewData[
'iAllCnt'] += 1;
53 return "pricealarm_mail.tpl";