View Issue Details

IDProjectCategoryView StatusLast Update
0006306OXID eShop (all versions)1.03. Basket, checkout processpublic2024-03-06 09:29
ReporterAlexN Assigned To 
PrioritylowSeveritytrivialReproducibilityN/A
Status resolvedResolutionfixed 
PlatformLinux 
Product Version4.9.4 / 5.2.4 
Fixed in Version4.10.0 / 5.3.0 
Summary0006306: OXID API, missing method setAmount?
DescriptionI am currently digging into the update basket article programme in an EE v5.2.4.

I noticed the call "$this->_aBasketContents[$sItemId]->setAmount($dAmount, $blOverride, $sItemId);" in "oxBasket->addToBasket([...])".

As of that I wanted to take a look in the setAmount method in your API (http://docu.oxid-esales.com/CE/sourcecodedocumentation/4.9.4/) but when searching for "setAmount" there is no result.

I then added following snippet in the core method "addToBasket":

echo(
    print_r( get_class($this->_aBasketContents[$sItemId]),
true
    )
);
echo "
";

echo(
    rint_r(
get_class_methods($this->_aBasketContents[$sItemId]),
true
    )
);
echo "
";
exit;

Among others the method setAmount is listed so it is available but not added to the API. Well, at least there is no result when looking for it.
Additional InformationSee uploaded file.
TagsNo tags attached.
Attached Files
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Relationships

related to 0006214 resolvedHR Sourcecodedocumentation does not list createUser() as public function of oxcmp_user 

Activities

QA

2016-01-05 14:31

administrator   ~0011406

Method setAmount still exists, but sourcecode documentaition is still missing
http://docu.oxid-esales.com/CE/sourcecodedocumentation/4.9.6/

Will have done with the next release at end of january.

SvenBrunk

2024-03-06 09:27

administrator   ~0016345

Now properly documented in:
https://docs.oxid-esales.com/sourcecodedocumentation/7.0.0/class_oxid_esales_1_1_eshop_community_1_1_application_1_1_model_1_1_basket_item.html#a0a096c1b2503399afe592ff193d75e29