OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct () | |
getSelectLists () | |
getArticleUser () | |
getPrice () | |
modifyGroupPrice ($price) | |
setPrice ($oPrice) | |
getFPrice () | |
setParent ($oParent) | |
getParent () | |
getLinkType () | |
inCategory ($sCatNid) | |
inPriceCategory ($sCatNid) | |
getBaseStdLink ($iLang, $blAddId=true, $blFull=true) | |
getStdLink ($iLang=null, $aParams=[]) | |
getBaseSeoLink ($iLang) | |
getLink ($iLang=null) | |
Protected Member Functions | |
_getGroupPrice () | |
_applyCurrency (\OxidEsales\Eshop\Core\Price $oPrice, $oCur=null) | |
_applyParentDiscounts ($oPrice) | |
_applyParentVat ($oPrice) | |
Protected Attributes | |
$_blUseLazyLoading = true | |
$_oPrice = null | |
$_oParent = null | |
$_aStdUrls = [] | |
$_aBaseStdUrls = [] | |
$_aSeoUrls = [] | |
$_oUser = null | |
Lightweight variant handler. Implemnets only absolutely needed oxArticle methods.
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::__construct | ( | ) |
Initializes instance
|
protected |
Applies currency factor
\OxidEsales\Eshop\Core\Price | $oPrice | Price object |
object | $oCur | Currency object |
|
protected |
Applies discounts which should be applied in general case (for 0 amount)
\OxidEsales\Eshop\Core\Price | $oPrice | Price object |
|
protected |
apply parent article VAT to given price
\OxidEsales\Eshop\Core\Price | $oPrice | price object |
|
protected |
get user Group A, B or C price, returns db price if user is not in groups
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getArticleUser | ( | ) |
Returns article user
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getBaseSeoLink | ( | $iLang | ) |
Returns raw recommlist seo url
int | $iLang | language id |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getBaseStdLink | ( | $iLang, | |
$blAddId = true , |
|||
$blFull = true |
|||
) |
Returns base dynamic url: shopurl/index.php?cl=details
int | $iLang | language id |
bool | $blAddId | add current object id to url or not |
bool | $blFull | return full including domain name [optional] |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getFPrice | ( | ) |
Returns formated product price.
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getLink | ( | $iLang = null | ) |
Gets article link
int | $iLang | required language id [optional] |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getLinkType | ( | ) |
Get link type
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getParent | ( | ) |
Parent article getter.
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getPrice | ( | ) |
Implementing (faking) performance friendly method from oxArticle
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getSelectLists | ( | ) |
Implementing (fakeing) performance friendly method from oxArticle oxbase
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::getStdLink | ( | $iLang = null , |
|
$aParams = [] |
|||
) |
Gets article link
int | $iLang | required language [optional] |
array | $aParams | additional params to use [optional] |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::inCategory | ( | $sCatNid | ) |
Checks if article is assigned to category
string | $sCatNid | category ID |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::inPriceCategory | ( | $sCatNid | ) |
Checks if article is assigned to price category $sCatNID
string | $sCatNid | Price category ID |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::modifyGroupPrice | ( | $price | ) |
Make changes to price on getting price.
float | $price |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::setParent | ( | $oParent | ) |
Sets parent article
\OxidEsales\Eshop\Application\Model\Article | $oParent | Parent article |
OxidEsales\EshopCommunity\Application\Model\SimpleVariant::setPrice | ( | $oPrice | ) |
Price setter
object | $oPrice | price object |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |