73 $this->
init(
'oxpricealarm' );
96 if ( $this->_oArticle == null ) {
97 $this->_oArticle =
false;
98 $oArticle =
oxNew(
"oxarticle" );
99 if ( $oArticle->load($this->oxpricealarm__oxartid->value) ) {
100 $this->_oArticle = $oArticle;
113 if ( $this->_fPrice == null ) {
114 $this->_fPrice =
false;
115 if ( $dArtPrice = $this->
getPrice() ) {
118 $this->_fPrice = $myLang->formatCurrency( $dArtPrice, $oThisCurr );
131 if ( $this->_dPrice == null ) {
132 $this->_dPrice =
false;
139 $dArtPrice = $oArticle->getPrice()->getBruttoPrice() * $oThisCurr->rate;
140 $dArtPrice = $myUtils->fRound( $dArtPrice );
142 $this->_dPrice = $dArtPrice;
155 if ( $this->_sTitle == null ) {
156 $this->_sTitle =
false;
158 $this->_sTitle = $oArticle->oxarticles__oxtitle->value;
159 if ( $oArticle->oxarticles__oxparentid->value && !$oArticle->oxarticles__oxtitle->value) {
160 $oParent =
oxNew(
"oxarticle" );
161 $oParent->load( $oArticle->oxarticles__oxparentid->value );
162 $this->_sTitle = $oParent->oxarticles__oxtitle->value .
" " . $oArticle->oxarticles__oxvarselect->value;
176 if ( $this->_oCurrency == null ) {
177 $this->_oCurrency =
false;
179 $oThisCurr =
$myConfig->getCurrencyObject( $this->oxpricealarm__oxcurrency->value );
184 $oDefCurr =
$myConfig->getActShopCurrencyObject();
185 $oThisCurr =
$myConfig->getCurrencyObject( $oDefCurr->name );
186 $this->oxpricealarm__oxcurrency->setValue($oDefCurr->name);
188 $this->_oCurrency = $oThisCurr;
200 if ( $this->_fProposedPrice == null ) {
201 $this->_fProposedPrice =
false;
204 $this->_fProposedPrice = $myLang->formatCurrency( $this->oxpricealarm__oxprice->value, $oThisCurr);
217 if ( $this->_iStatus == null ) {
223 if ( $this->oxpricealarm__oxprice->value >= $dArtPrice) {
228 if ( $this->oxpricealarm__oxsended->value !=
"0000-00-00 00:00:00") {