74 $this->
init(
'oxpricealarm');
97 if ($this->_oArticle == null) {
98 $this->_oArticle =
false;
99 $oArticle =
oxNew(
"oxarticle");
100 if ($oArticle->load($this->oxpricealarm__oxartid->value)) {
101 $this->_oArticle = $oArticle;
115 if ($this->_fPrice == null) {
116 $this->_fPrice =
false;
117 if ($dArtPrice = $this->
getPrice()) {
120 $this->_fPrice = $myLang->formatCurrency($dArtPrice, $oThisCurr);
134 if ($this->_dPrice == null) {
135 $this->_dPrice =
false;
142 $dArtPrice = $oArticle->getPrice()->getBruttoPrice() * $oThisCurr->rate;
143 $dArtPrice = $myUtils->fRound($dArtPrice);
145 $this->_dPrice = $dArtPrice;
159 if ($this->_sTitle == null) {
160 $this->_sTitle =
false;
162 $this->_sTitle = $oArticle->oxarticles__oxtitle->value;
163 if ($oArticle->oxarticles__oxparentid->value && !$oArticle->oxarticles__oxtitle->value) {
164 $oParent =
oxNew(
"oxarticle");
165 $oParent->load($oArticle->oxarticles__oxparentid->value);
166 $this->_sTitle = $oParent->oxarticles__oxtitle->value .
" " . $oArticle->oxarticles__oxvarselect->value;
181 if ($this->_oCurrency == null) {
182 $this->_oCurrency =
false;
184 $oThisCurr =
$myConfig->getCurrencyObject($this->oxpricealarm__oxcurrency->value);
189 $oDefCurr =
$myConfig->getActShopCurrencyObject();
190 $oThisCurr =
$myConfig->getCurrencyObject($oDefCurr->name);
191 $this->oxpricealarm__oxcurrency->setValue($oDefCurr->name);
193 $this->_oCurrency = $oThisCurr;
206 if ($this->_fProposedPrice == null) {
207 $this->_fProposedPrice =
false;
210 $this->_fProposedPrice = $myLang->formatCurrency($this->oxpricealarm__oxprice->value, $oThisCurr);
224 if ($this->_iStatus == null) {
230 if ($this->oxpricealarm__oxprice->value >= $dArtPrice) {
235 if ($this->oxpricealarm__oxsended->value !=
"0000-00-00 00:00:00") {