47 $this->
setWrappingVat( $oConfig->getConfigParam(
'dDefaultVAT' ) );
50 $this->
init(
'oxwrapping' );
74 $this->_blWrappingVatOnTop = $blOnTop;
86 if ( $this->_oPrice === null ) {
87 $this->_oPrice =
oxNew(
'oxprice' );
89 if ( !$this->_blWrappingVatOnTop ) {
90 $this->_oPrice->setBruttoPriceMode();
92 $this->_oPrice->setNettoPriceMode();
95 $oCur = $this->
getConfig()->getActShopCurrencyObject();
96 $this->_oPrice->setPrice( $this->oxwrapping__oxprice->value * $oCur->rate, $this->_dVat );
97 $this->_oPrice->multiply( $dAmount );
113 $oEntries =
oxNew(
'oxlist' );
114 $oEntries->init(
'oxwrapping' );
116 $sSelect =
"select * from $sWrappingViewName where $sWrappingViewName.oxactive = '1' and $sWrappingViewName.oxtype = " .
oxDb::getDb()->quote( $sWrapType );
117 $oEntries->selectString( $sSelect );
133 $sQ =
"select count(*) from $sWrappingViewName where $sWrappingViewName.oxactive = '1' and $sWrappingViewName.oxtype = " . $oDb->quote( $sWrapType );
134 return (
int) $oDb->getOne( $sQ );
144 $blResult = (bool) $this->
getConfig()->getConfigParam(
'blShowNetPrice');
147 $blResult = $oUser->isPriceViewModeNetto();
188 return $this->
getConfig()->getPictureUrl(null,
false,
false, null, $this->oxwrapping__oxshopid->value);
198 if ( $this->oxwrapping__oxpic->value ) {
199 return $this->
getConfig()->getPictureUrl(
"master/wrapping/".$this->oxwrapping__oxpic->value,
false, $this->getConfig()->isSsl(), null, $this->oxwrapping__oxshopid->value );