Definition at line 16 of file oxarticle.php.
oxArticle.__construct | ( | $ | aParams = null |
) |
Class constructor, sets shop ID for article (oxconfig.getShopId()), initiates parent constructor (parent.oxI18n()).
array | $aParams The array of names and values of oxArticle instance properties to be set on object instantiation |
Definition at line 336 of file oxarticle.php.
oxArticle.__isset | ( | $ | sName | ) |
Magic isset, deals with article long description
string | $sName Variable name |
Reimplemented from oxBase.
Definition at line 356 of file oxarticle.php.
oxArticle.__get | ( | $ | sName | ) |
Magic getter, deals with deprecated values and long description which is loaded on demand. Additionally it sets default value for unknown picture fields
string | $sName Variable name |
Reimplemented from oxBase.
Definition at line 374 of file oxarticle.php.
oxArticle.setId | ( | $ | sId = null |
) |
Sets object ID, additionally sets $this->oxarticles__oxnid field value
string | $sId New ID |
Reimplemented from oxBase.
Definition at line 496 of file oxarticle.php.
oxArticle.getSqlActiveSnippet | ( | $ | blForceCoreTable = false |
) |
Returns SQL select string with checks if items are available
bool | $blForceCoreTable forces core table usage (optional) |
Reimplemented from oxI18n.
Definition at line 513 of file oxarticle.php.
oxArticle.setSkipAssign | ( | $ | blSkipAssign | ) |
Assign condition setter. In case article assignment is skipped ($_blSkipAssign = true), it does nto perform additiojal
bool | $blSkipAssign Whether to skip assign process for the article |
Definition at line 547 of file oxarticle.php.
oxArticle.disablePriceLoad | ( | $ | oArticle | ) |
Disables article price loading. Should be called before assign(), or load()
objetc | $oArticle article object |
Definition at line 559 of file oxarticle.php.
oxArticle.getItemKey | ( | ) |
Returns item key used with oxuserbasket
Definition at line 569 of file oxarticle.php.
oxArticle.setItemKey | ( | $ | sItemKey | ) |
Sets item key used with oxuserbasket
string | $sItemKey Item key |
Definition at line 581 of file oxarticle.php.
oxArticle.setNoVariantLoading | ( | $ | blLoadVariants | ) |
Disables/enables variant loading
bool | $blLoadVariants skip variant loading or not |
Definition at line 593 of file oxarticle.php.
oxArticle.isBuyable | ( | ) |
oxArticle.getPersParams | ( | ) |
oxArticle.isOnComparisonList | ( | ) |
Checks whether article is inluded in comparison list
Definition at line 627 of file oxarticle.php.
oxArticle.setOnComparisonList | ( | $ | blOnList | ) |
Set if article is inluded in comparison list
bool | $blOnList Whether is article on the list |
Definition at line 639 of file oxarticle.php.
oxArticle.setLoadParentData | ( | $ | blLoadParentData | ) |
A setter for $_blLoadParentData (whether article parent info should be laoded fully) class variable
bool | $blLoadParentData Whether to load parent data |
Definition at line 651 of file oxarticle.php.
oxArticle.setSkipAbPrice | ( | $ | blSkipAbPrice = null |
) |
Set _blSkipAbPrice value. If is set to true, then "From price" is not calculated for this object.
bool | $blSkipAbPrice Whether to skip "From" price loading |
Definition at line 663 of file oxarticle.php.
oxArticle.getSearchableFields | ( | ) |
Returns an array of article object DB fields, without multilanguage.
Definition at line 673 of file oxarticle.php.
oxArticle.isMultilingualField | ( | $ | sFieldName | ) |
Returns true if the field is multilanguage
string | $sFieldName Field name |
Reimplemented from oxI18n.
Definition at line 689 of file oxarticle.php.
oxArticle.isVisible | ( | ) |
Checks if article has visible status. Returns TRUE if its visible
Definition at line 703 of file oxarticle.php.
oxArticle.assign | ( | $ | aRecord | ) |
Assigns to oxarticle object some base parameters/values (such as detaillink, moredetaillink, etc).
string | $aRecord Array representing current field values |
Reimplemented from oxI18n.
Definition at line 745 of file oxarticle.php.
oxArticle.load | ( | $ | oxID | ) |
Loads object data from DB (object data ID must be passed to method). Converts dates (oxarticle.oxarticles__oxinsert, oxarticle.oxarticles__oxtimestamp) to international format (oxutils.php oxUtilsDate.getInstance()->formatDBDate(...)). Returns true if article was loaded successfully.
string | $oxID Article object ID |
Reimplemented from oxBase.
Definition at line 788 of file oxarticle.php.
oxArticle.addToRatingAverage | ( | $ | iRating | ) |
Calculates and saves product rating average
integer | $iRating new rating value |
Definition at line 809 of file oxarticle.php.
oxArticle.getArticleRatingAverage | ( | ) |
oxArticle.getReviews | ( | ) |
Collects user written reviews about an article.
Definition at line 836 of file oxarticle.php.
oxArticle.getCrossSelling | ( | ) |
Loads and returns array with crosselling information.
Definition at line 870 of file oxarticle.php.
oxArticle.getAccessoires | ( | ) |
Loads and returns array with accessoires information.
Definition at line 884 of file oxarticle.php.
oxArticle.getSimilarProducts | ( | ) |
oxArticle.getCustomerAlsoBoughtThisProducts | ( | ) |
Loads and returns articles list, bought by same customer.
Definition at line 950 of file oxarticle.php.
oxArticle.loadAmountPriceInfo | ( | ) |
Returns list object with info about article price that depends on amount in basket. Takes data from oxprice2article table. Returns false if such info is not set.
Definition at line 975 of file oxarticle.php.
oxArticle.getSelectLists | ( | $ | sKeyPrefix = null |
) |
Returns all selectlists this article has.
string | $sKeyPrefix Optionall key prefix |
Implements oxIArticle.
Definition at line 1003 of file oxarticle.php.
oxArticle.getVariants | ( | $ | blRemoveNotOrderables = true |
) |
Collects and returns article variants.
bool | $blRemoveNotOrderables if true, removes from list not orderable articles, which are out of stock |
Definition at line 1059 of file oxarticle.php.
oxArticle.getSimpleVariants | ( | ) |
Simple way to get variants without quering oxarticle table first. This is basically used for lists.
Definition at line 1131 of file oxarticle.php.
oxArticle.getAdminVariants | ( | $ | sLanguage = null |
) |
Loads article variants and returns variants list object. Article language may be set by passing with parameter, or GET/POST/Session variable.
string | $sLanguage shop language. |
Definition at line 1146 of file oxarticle.php.
oxArticle.getCategory | ( | ) |
Loads and returns article category object. First tries to load assigned category and is such category does not exist, tries to load category by price
Definition at line 1178 of file oxarticle.php.
oxArticle.getCategoryIds | ( | $ | blSkipCache = false |
) |
Returns ID's of categories. where this article is assigned
bool | $blSkipCache Whether to skip cache |
Implements oxIArticle.
Definition at line 1219 of file oxarticle.php.
oxArticle.getVendor | ( | $ | blShopCheck = true |
) |
Returns current article vendor object. If $blShopCheck = false, then vendor loading will fallback to oxI18n object and blReadOnly parameter will be set to true if vendor is not assigned to current shop
bool | $blShopCheck Set false if shop check is not required (default is true) |
Definition at line 1263 of file oxarticle.php.
oxArticle.getVendorId | ( | $ | blForceReload = false |
) |
Returns article object vendor ID. Result is cached into self::$_aArticleVendors
bool | $blForceReload reloads id even if it is cached |
Definition at line 1289 of file oxarticle.php.
oxArticle.getManufacturerId | ( | $ | blForceReload = false |
) |
Returns article object Manufacturer ID. Result is cached into self::$_aArticleManufacturers
bool | $blForceReload reloads id even if it is cached |
Definition at line 1309 of file oxarticle.php.
oxArticle.getManufacturer | ( | $ | blShopCheck = true |
) |
Returns current article Manufacturer object. If $blShopCheck = false, then Manufacturer loading will fallback to oxI18n object and blReadOnly parameter will be set to true if Manufacturer is not assigned to current shop
bool | $blShopCheck Set false if shop check is not required (default is true) |
Definition at line 1331 of file oxarticle.php.
oxArticle.inCategory | ( | $ | sCatNid | ) |
Checks if artickle is assigned to category $sCatNID. on success.
string | $sCatNid category ID |
Definition at line 1363 of file oxarticle.php.
oxArticle.isAssignedToCategory | ( | $ | sCatId | ) |
Checks if article is assigned to passed category (even checks if this category is "price category"). Returns true on success.
string | $sCatId category ID |
Definition at line 1376 of file oxarticle.php.
oxArticle.getTPrice | ( | ) |
oxArticle.skipDiscounts | ( | ) |
Checks if discount should be skipped for this article in basket. Returns true if yes.
Implements oxIArticle.
Definition at line 1436 of file oxarticle.php.
oxArticle.setPrice | ( | oxPrice $ | oPrice | ) |
Sets the current oxPrice object
oxPrice | $oPrice the new price object |
Definition at line 1459 of file oxarticle.php.
oxArticle.getBasePrice | ( | $ | dAmount = 1 |
) |
Returns base article price from database. Price may differ according to users group Override this function if you want e.g. different prices for diff. usergroups.
double | $dAmount article amount. Default is 1 |
Implements oxIArticle.
Definition at line 1472 of file oxarticle.php.
oxArticle.getPrice | ( | ) |
Calculates and returns price of article (adds taxes and discounts).
Implements oxIArticle.
Definition at line 1494 of file oxarticle.php.
oxArticle._calculatePrice | ( | $ | oPrice | ) | [protected] |
Calculates price of article (adds taxes, currency and discounts).
oxPrice | $oPrice price object |
Definition at line 1528 of file oxarticle.php.
oxArticle.setArticleUser | ( | $ | oUser | ) |
sets article user
oxUser | $oUser user to set |
Definition at line 1553 of file oxarticle.php.
oxArticle.getArticleUser | ( | ) |
oxArticle.getBasketPrice | ( | $ | dAmount, | |
$ | aSelList, | |||
$ | oBasket | |||
) |
Creates, calculates and returns oxprice object for basket product.
double | $dAmount Amount | |
string | $aSelList Selection list | |
object | $oBasket User shopping basket object |
Implements oxIArticle.
Definition at line 1580 of file oxarticle.php.
oxArticle.applyBasketDiscounts | ( | oxPrice $ | oPrice, | |
$ | aDiscounts, | |||
$ | dAmount = 1 | |||
) |
Applies discoutns which are supposed to be applied on amounts greater than zero. Returns applied discounts.
oxPrice | $oPrice Old article price | |
array | $aDiscounts Discount array | |
amount | $dAmount Amount in basket |
Definition at line 1625 of file oxarticle.php.
oxArticle.delete | ( | $ | sOXID = null |
) |
Deletes record and other information related to this article such as images from DB, also removes variants. Returns true on success.
string | $sOXID Article id |
Reimplemented from oxBase.
Definition at line 1639 of file oxarticle.php.
oxArticle.updateSoldAmount | ( | $ | iAmount = 0 |
) |
Recursive function. Updates quantity of sold articles. Return true on success
integer | $iAmount Number of articles sold |
Definition at line 1670 of file oxarticle.php.
oxArticle.disableReminder | ( | ) |
Disables reminder functionality for article
Definition at line 1698 of file oxarticle.php.
oxArticle.save | ( | ) |
Makes sure that image values (oxpic1 - oxpic12, oxthumb, oxicon) are only base name by striping any dir information and leave only original file name and finally save the object using parent.save() method.
Reimplemented from oxBase.
Definition at line 1710 of file oxarticle.php.
oxArticle.getPictureGallery | ( | ) |
collect article pics, icons, zoompic and puts it all in an array structure of array (ActPicID, ActPic, MorePics, Pics, Icons, ZoomPic)
Definition at line 1746 of file oxarticle.php.
oxArticle.onChange | ( | $ | sAction = null , |
|
$ | sOXID = null , |
|||
$ | sParentID = null | |||
) |
This function is triggered whenever article is saved or deleted or after the stock is changed. Originally we need to update the oxstock for possible article parent in case parent is not buyable Plus you may want to extend this function to update some extended information. Call oxArticle.onChange($sAction, $sOXID) with ID parameter as static method when changes are executed over SQL. (or use module class instead of oxArticle if such exists)
string | $sAction Action constant | |
string | $sOXID Article ID | |
string | $sParentID Parent ID |
Definition at line 1824 of file oxarticle.php.
oxArticle.getCustomVAT | ( | ) |
Returns custom article VAT value if possible By default value is taken from oxarticle__oxvat field
Definition at line 1873 of file oxarticle.php.
oxArticle.checkForStock | ( | $ | dAmount | ) |
Checks if stock configuration allows to buy user chosen amount $dAmount
double | $dAmount buyable amount |
Implements oxIArticle.
Definition at line 1887 of file oxarticle.php.
oxArticle.getArticleLongDesc | ( | $ | sOXID = null |
) |
Get article long description
string | $sOXID Article ID |
Definition at line 1937 of file oxarticle.php.
oxArticle.setArticleLongDesc | ( | ) |
Set article long description
Definition at line 1983 of file oxarticle.php.
oxArticle.getAttributes | ( | ) |
Loads and returns attribute list associated with this article
Definition at line 2023 of file oxarticle.php.
oxArticle.appendLink | ( | $ | sAddParams | ) |
Appends current article link with additional request parameters
string | $sAddParams additional parameters which needs to be added to product url |
Definition at line 2046 of file oxarticle.php.
oxArticle.getLink | ( | $ | iLang = null |
) |
Gets article link
int | $iLang required language. optional |
Definition at line 2061 of file oxarticle.php.
oxArticle.setLinkType | ( | $ | iType | ) |
Resets details link
int | $iType type of link to load |
Definition at line 2094 of file oxarticle.php.
oxArticle.getStdLink | ( | $ | iLang = null |
) |
Returns standard URL to product
int | $iLang required language. optional |
Definition at line 2110 of file oxarticle.php.
oxArticle.getStdTagLink | ( | $ | sTag | ) |
Returns standard product Tag URL
string | $sTag tag |
Definition at line 2163 of file oxarticle.php.
oxArticle.getTags | ( | ) |
oxArticle.saveTags | ( | $ | sTags | ) |
Saves article tags
string | $sTags article tag |
Definition at line 2191 of file oxarticle.php.
oxArticle.addTag | ( | $ | sTag | ) |
Adds tag
string | $sTag new tag |
Definition at line 2210 of file oxarticle.php.
oxArticle.getMediaUrls | ( | ) |
oxArticle.getDynImageDir | ( | ) |
oxArticle.getDispSelList | ( | ) |
oxArticle.getMoreDetailLink | ( | ) |
oxArticle.getToBasketLink | ( | ) |
oxArticle.getStockStatus | ( | ) |
oxArticle.getDeliveryDate | ( | ) |
Returns formated delivery date. If the date is not set ('0000-00-00') returns false.
Definition at line 2350 of file oxarticle.php.
oxArticle.getFTPrice | ( | ) |
oxArticle.getFPrice | ( | ) |
oxArticle.getPricePerUnit | ( | ) |
Returns formated price per unit (oxarticle._assignPrices())
Definition at line 2394 of file oxarticle.php.
oxArticle.isParentNotBuyable | ( | ) |
oxArticle.isNotBuyable | ( | ) |
oxArticle.setBuyableState | ( | $ | blBuyable = false |
) |
Sets product state - buyable or not
bool | $blBuyable state - buyable or not (default false) |
Definition at line 2426 of file oxarticle.php.
oxArticle.getVariantList | ( | ) |
Returns variant lists of current product
Definition at line 2436 of file oxarticle.php.
oxArticle.setSelectlist | ( | $ | aSelList | ) |
Sets selectlists of current product
array | $aSelList selectlist |
Definition at line 2448 of file oxarticle.php.
oxArticle.getPictureUrl | ( | $ | iIndex | ) |
Returns article picture
int | $iIndex picture index |
Definition at line 2460 of file oxarticle.php.
oxArticle.getIconUrl | ( | $ | iIndex = '' |
) |
Returns article icon picture url
int | $iIndex picture index |
Definition at line 2472 of file oxarticle.php.
oxArticle.getThumbnailUrl | ( | ) |
oxArticle.getZoomPictureUrl | ( | $ | iIndex | ) |
Returns article zoom picture url
int | $iIndex picture index |
Definition at line 2506 of file oxarticle.php.
oxArticle.getFileUrl | ( | ) |
oxArticle.getPriceFromPrefix | ( | ) |
Returns string prefix (like "ab") if needed or empty string.
Definition at line 2526 of file oxarticle.php.
oxArticle._saveArtLongDesc | ( | $ | iLang, | |
$ | sValue | |||
) | [protected] |
inserts article long description to artextends table
int | $iLang language | |
string | $sValue long description |
Definition at line 2544 of file oxarticle.php.
oxArticle._removeInactiveVariants | ( | $ | oVariants, | |
$ | blStrict = false | |||
) | [protected] |
This function basically is intended to call from GetVariants() for further variant processing. Function removes inactive or out of stock variants and sets class variables: $_iVarStock $_blHasVariants $_blNotBuyableParent $_blNotBuyable
oxArticleList | $oVariants Object with article variants | |
bool | $blStrict If true articles with oxstockflag = 3 will be removed (currently is used in getSimpleVariants to skip these articles in list) |
Definition at line 2572 of file oxarticle.php.
oxArticle._skipSaveFields | ( | ) | [protected] |
Removes object data fields (oxarticles__oxtimestamp, oxarticles__oxparentid, oxarticles__oxinsert).
Definition at line 2622 of file oxarticle.php.
oxArticle._mergeDiscounts | ( | $ | aDiscounts, | |
$ | aItemDiscounts | |||
) | [protected] |
Merges two discount arrays. If there are two the same discounts, discount values will be added.
Definition at line 2647 of file oxarticle.php.
oxArticle._getGroupPrice | ( | ) | [protected] |
get user Group A, B or C price, returns db price if user is not in groups
Definition at line 2665 of file oxarticle.php.
oxArticle._getAmountPrice | ( | $ | dAmount = 1 |
) | [protected] |
Modifies article price depending on given amount. Takes data from oxprice2article table.
double | $dAmount Basket amount |
Definition at line 2696 of file oxarticle.php.
oxArticle._modifySelectListPrice | ( | &$ | dPrice, | |
$ | aChosenList = null | |||
) | [protected] |
Modifies article price according to selected select list value
double | &$dPrice Modifyable price | |
array | $aChosenList Selection list array |
Definition at line 2724 of file oxarticle.php.
oxArticle._fillAmountPriceList | ( | $ | oAmPriceList | ) | [protected] |
Fills amount price list object and sets amount price for article object
object | $oAmPriceList Amount (staffel) price list |
Definition at line 2753 of file oxarticle.php.
oxArticle._getVariantsIds | ( | ) | [protected] |
Collects and returns article variants ids.
Definition at line 2812 of file oxarticle.php.
oxArticle.getArticleVat | ( | ) |
oxArticle._applyVAT | ( | oxPrice $ | oPrice, | |
$ | dVat | |||
) | [protected] |
Applies VAT to article
oxPrice | $oPrice Price object | |
double | $dVat VAT percent |
Definition at line 2846 of file oxarticle.php.
oxArticle.applyVats | ( | oxPrice $ | oPrice | ) |
apply article and article use
oxPrice | $oPrice target price |
Definition at line 2863 of file oxarticle.php.
oxArticle._applyDiscounts | ( | $ | oPrice, | |
$ | aDiscounts | |||
) | [protected] |
Applies discounts which should be applied in general case (for 0 amount)
oxprice | $oPrice Price object | |
array | $aDiscounts Discount list |
Definition at line 2880 of file oxarticle.php.
oxArticle.applyDiscountsForVariant | ( | $ | oPrice | ) |
Applies discounts which should be applied in general case (for 0 amount)
oxprice | $oPrice Price object |
Definition at line 2893 of file oxarticle.php.
oxArticle._applyCurrency | ( | oxPrice $ | oPrice, | |
$ | oCur = null | |||
) | [protected] |
Applies currency factor
oxPrice | $oPrice Price object | |
object | $oCur Currency object |
Definition at line 2910 of file oxarticle.php.
oxArticle._getIcon | ( | ) | [protected] |
Returns path of icon file ("/0/".$this->oxarticles__oxicon->value) or if icon is not generated yet - tries to generate this file (if no GD lib available and oxarticles__oxthumb is not set as default icon sets "/0/nopic_ico.jpg")and updates DB article field "oxicon".
Definition at line 2927 of file oxarticle.php.
oxArticle._getAttribsString | ( | &$ | sAttribs, | |
&$ | iCnt | |||
) | [protected] |
gets attribs string
string | &$sAttribs Attribute selection snippet | |
int | &$iCnt The number of selected attributes |
Definition at line 2996 of file oxarticle.php.
oxArticle._getSimList | ( | $ | sAttribs, | |
$ | iCnt | |||
) | [protected] |
Gets similar list.
string | $sAttribs Attribute selection snippet | |
int | $iCnt Similar list article count |
Definition at line 3026 of file oxarticle.php.
oxArticle._generateSimListSearchStr | ( | $ | sArticleTable, | |
$ | aList | |||
) | [protected] |
Generates search string for similar list.
Definition at line 3068 of file oxarticle.php.
oxArticle._generateSearchStr | ( | $ | sOXID, | |
$ | blSearchPriceCat = false | |||
) | [protected] |
Generates SearchString for getCategory()
string | $sOXID Article ID | |
bool | $blSearchPriceCat Whether to perform the search within price categories |
Definition at line 3105 of file oxarticle.php.
oxArticle._generateSearchStrForCustomerBought | ( | ) | [protected] |
Generates SQL select string for getCustomerAlsoBoughtThisProduct
Definition at line 3128 of file oxarticle.php.
oxArticle._generateSelectCatStr | ( | $ | sOXID, | |
$ | sCatId, | |||
$ | dPriceFromTo = false | |||
) | [protected] |
Generates select string for isAssignedToCategory()
string | $sOXID Article ID | |
string | $sCatId Category ID | |
bool | $dPriceFromTo Article price for price categories |
Definition at line 3187 of file oxarticle.php.
oxArticle._getAmountPriceList | ( | ) | [protected] |
Collecting assigned to article amount-price list
Definition at line 3210 of file oxarticle.php.
oxArticle._isFieldEmpty | ( | $ | sFieldName | ) | [protected] |
Detects if field is empty.
string | $sFieldName Field name |
Definition at line 3260 of file oxarticle.php.
oxArticle._assignParentFieldValue | ( | $ | sFieldName | ) | [protected] |
Assigns parent field values to article
string | $sFieldName field name |
Definition at line 3304 of file oxarticle.php.
oxArticle._getParentAricle | ( | ) | [protected] |
oxArticle._assignParentFieldValues | ( | ) | [protected] |
oxArticle._assignNotBuyableParent | ( | ) | [protected] |
if we have variants then depending on config option the parent may be non buyable
Definition at line 3444 of file oxarticle.php.
oxArticle._assignPictureValues | ( | ) | [protected] |
oxArticle._assignStock | ( | ) | [protected] |
oxArticle._assignPrices | ( | ) | [protected] |
oxArticle._assignPersistentParam | ( | ) | [protected] |
oxArticle._assignDynImageDir | ( | ) | [protected] |
oxArticle._assignComparisonListFlag | ( | ) | [protected] |
Adds a flag if article is on comparisonlist.
Definition at line 3646 of file oxarticle.php.
oxArticle._assignAttributes | ( | ) | [protected] |
oxArticle._insert | ( | ) | [protected] |
Sets article creation date (oxarticle.oxarticles__oxinsert). Then executes parent method parent._insert() and returns insertion status.
Reimplemented from oxBase.
Definition at line 3678 of file oxarticle.php.
oxArticle._update | ( | ) | [protected] |
Executes oxarticle._skipSaveFields() and updates article information
Reimplemented from oxI18n.
Definition at line 3697 of file oxarticle.php.
oxArticle._deleteRecords | ( | $ | sOXID | ) | [protected] |
Deletes records in database
string | $sOXID Article ID |
Definition at line 3715 of file oxarticle.php.
oxArticle._deleteVariantRecords | ( | $ | sOXID | ) | [protected] |
Deletes variant records
string | $sOXID Article ID |
Definition at line 3766 of file oxarticle.php.
oxArticle._resetCacheAndArticleCount | ( | $ | sOxid | ) | [protected] |
Resets cache and article count in vendor and category
string | $sOxid reset article id |
Definition at line 3789 of file oxarticle.php.
oxArticle._deletePics | ( | ) | [protected] |
oxArticle._onChangeResetCounts | ( | $ | sOxid, | |
$ | sVendorId = null , |
|||
$ | sManufacturerId = null | |||
) | [protected] |
Resets category and vendor counts. This method is supposed to be called on article change triger.
string | $sOxid object to reset id ID | |
string | $sVendorId Vendor ID | |
string | $sManufacturerId Manufacturer ID |
Definition at line 3842 of file oxarticle.php.
oxArticle._onChangeUpdateStock | ( | $ | sParentID | ) | [protected] |
Updates article stock. This method is supposed to be called on article change triger.
string | $sParentID product parent id |
Definition at line 3873 of file oxarticle.php.
oxArticle._onChangeUpdateVarCount | ( | $ | sParentID | ) | [protected] |
Updates variant count. This method is supposed to be called on article change triger.
string | $sParentID Parent ID |
Definition at line 3910 of file oxarticle.php.
oxArticle._onChangeUpdateMinVarPrice | ( | $ | sParentID | ) | [protected] |
Updates variant min price. This method is supposed to be called on article change triger.
string | $sParentID Parent ID |
Definition at line 3927 of file oxarticle.php.
oxArticle._applyRangePrice | ( | ) | [protected] |
Returns minimum brut price from all (already loaded) variants and if aplicable parent article
Definition at line 3952 of file oxarticle.php.
oxArticle.getProductId | ( | ) |
Returns product id (oxid)
Implements oxIArticle.
Definition at line 4021 of file oxarticle.php.
oxArticle.getProductParentId | ( | ) |
Returns product parent id (oxparentid)
Implements oxIArticle.
Definition at line 4031 of file oxarticle.php.
oxArticle.isOrderArticle | ( | ) |
Returns false if object is not derived from oxorderarticle class
Implements oxIArticle.
Definition at line 4041 of file oxarticle.php.
oxArticle.isVariant | ( | ) |
Returns TRUE if product is variant, and false if not
Definition at line 4051 of file oxarticle.php.
oxArticle.$_sCoreTbl = 'oxarticles' [protected] |
Definition at line 23 of file oxarticle.php.
oxArticle.$_sClassName = 'oxarticle' [protected] |
oxArticle.$_blUseLazyLoading = true [protected] |
oxArticle.$_sItemKey [protected] |
Definition at line 44 of file oxarticle.php.
oxArticle.$_blCalcPrice = true [protected] |
Definition at line 51 of file oxarticle.php.
oxArticle.$_oPrice = null [protected] |
Definition at line 57 of file oxarticle.php.
oxArticle.$_dArticleVat = null [protected] |
Definition at line 64 of file oxarticle.php.
oxArticle.$_aPersistParam = null [protected] |
Definition at line 71 of file oxarticle.php.
oxArticle.$_blNotBuyable = false [protected] |
Definition at line 78 of file oxarticle.php.
oxArticle.$_blLoadVariants = true [protected] |
Definition at line 86 of file oxarticle.php.
oxArticle.$_aVariants = null [protected] |
Definition at line 93 of file oxarticle.php.
oxArticle.$_aVariantsWithNotOrderables = null [protected] |
Definition at line 100 of file oxarticle.php.
oxArticle.$_blNotBuyableParent = false [protected] |
Definition at line 110 of file oxarticle.php.
oxArticle.$_blHasVariants = false [protected] |
$_blHasVariants is set to true if article has any variants. As an opposite to $_oVariantList this works even if variants are not active
Definition at line 116 of file oxarticle.php.
oxArticle.$_iVarStock = 0 [protected] |
Indicates how many variants this article has "on stock" (very large number for unlimited)
Definition at line 121 of file oxarticle.php.
oxArticle.$_oVariantList = array() [protected] |
Definition at line 127 of file oxarticle.php.
oxArticle.$_blIsOnComparisonList = false [protected] |
Definition at line 133 of file oxarticle.php.
oxArticle.$_oUser = null [protected] |
Definition at line 139 of file oxarticle.php.
oxArticle.$_blLoadPrice = true [protected] |
Definition at line 146 of file oxarticle.php.
oxArticle.$_blSkipAbPrice = false [protected] |
If $_blSkipAbPrice is set to true, then "From price" is not calculated for this object.
Definition at line 151 of file oxarticle.php.
oxArticle.$_fPricePerUnit = null [protected] |
$_fPricePerUnit holds price per unit value in active shop currency. $_fPricePerUnit is calculated from oxArticle.oxarticles__oxunitquantity->value and from oxArticle.oxarticles__oxuniname->value. If either one of these values is empty then $_fPricePerUnit is not calculated. Example: In case when product price is 10 EUR and product quantity is 0.5 (liters) then $_fPricePerUnit would be 20,00
Definition at line 159 of file oxarticle.php.
oxArticle.$_blLoadParentData = false [protected] |
Variable used to force load parent data in export
Definition at line 164 of file oxarticle.php.
oxArticle.$_blSkipAssign = false [protected] |
Variable used to force load parent data in export
Definition at line 169 of file oxarticle.php.
oxArticle.$_blSkipDiscounts = null [protected] |
Definition at line 176 of file oxarticle.php.
oxArticle.$_oAttributeList = null [protected] |
Object holding the list of attributes and attribute values associated with this article Attributes are loaded only when bl_perfLoadAttributes config option is set to true
Definition at line 182 of file oxarticle.php.
oxArticle.$_blIsRangePrice = false [protected] |
Definition at line 190 of file oxarticle.php.
oxArticle.$_aMediaUrls = null [protected] |
Definition at line 197 of file oxarticle.php.
oxArticle.$_aLoadedParents [static, protected] |
Definition at line 204 of file oxarticle.php.
oxArticle.$_aSelList [static, protected] |
Definition at line 211 of file oxarticle.php.
oxArticle.$_aDispSelList [protected] |
Definition at line 218 of file oxarticle.php.
oxArticle.$_blIsSeoObject = true [protected] |
oxArticle.$_oAmountPriceList = null [protected] |
Definition at line 232 of file oxarticle.php.
oxArticle.$_iLinkType = 0 [protected] |
Definition at line 242 of file oxarticle.php.
oxArticle.$_sStdLink = null [protected] |
Definition at line 249 of file oxarticle.php.
oxArticle.$_sDynImageDir = null [protected] |
Definition at line 256 of file oxarticle.php.
oxArticle.$_sMoreDetailLink = null [protected] |
Definition at line 263 of file oxarticle.php.
oxArticle.$_sToBasketLink = null [protected] |
Definition at line 270 of file oxarticle.php.
oxArticle.$_iStockStatus = null [protected] |
Definition at line 277 of file oxarticle.php.
oxArticle.$_oTPrice = null [protected] |
Definition at line 284 of file oxarticle.php.
oxArticle.$_oAmountPriceInfo = null [protected] |
Definition at line 291 of file oxarticle.php.
oxArticle.$_dAmountPrice = null [protected] |
Definition at line 298 of file oxarticle.php.
oxArticle.$_sDetailLink = null [protected] |
Definition at line 305 of file oxarticle.php.
oxArticle.$_aArticleManufacturers = array() [static, protected] |
Definition at line 312 of file oxarticle.php.
oxArticle.$_aArticleVendors = array() [static, protected] |
Definition at line 319 of file oxarticle.php.
oxArticle.$_aArticleCats = array() [static, protected] |
Definition at line 326 of file oxarticle.php.