51 $this->
init(
'oxwrapping');
71 $this->_blWrappingVatOnTop = $blOnTop;
83 if ($this->_oPrice === null) {
84 $this->_oPrice =
oxNew(
'oxprice');
86 if (!$this->_blWrappingVatOnTop) {
87 $this->_oPrice->setBruttoPriceMode();
89 $this->_oPrice->setNettoPriceMode();
92 $oCur = $this->
getConfig()->getActShopCurrencyObject();
93 $this->_oPrice->setPrice($this->oxwrapping__oxprice->value * $oCur->rate, $this->_dVat);
94 $this->_oPrice->multiply($dAmount);
110 $oEntries =
oxNew(
'oxlist');
111 $oEntries->init(
'oxwrapping');
113 $sSelect =
"select * from $sWrappingViewName where $sWrappingViewName.oxactive = '1' and $sWrappingViewName.oxtype = " .
oxDb::getDb()->quote($sWrapType);
114 $oEntries->selectString($sSelect);
130 $sQ =
"select count(*) from $sWrappingViewName where $sWrappingViewName.oxactive = '1' and $sWrappingViewName.oxtype = " . $oDb->quote($sWrapType);
132 return (
int) $oDb->getOne($sQ);
142 $blResult = (bool) $this->
getConfig()->getConfigParam(
'blShowNetPrice');
145 $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);