View Issue Details

IDProjectCategoryView StatusLast Update
0006306OXID eShop (all versions)1.03. Basket, checkout processpublic2016-01-05 14:31
ReporterAlexN 
PrioritylowSeveritytrivialReproducibilityN/A
Status acknowledgedResolutionopen 
PlatformLinuxOSOS Version
Product Version4.9.4 / 5.2.4 
Target VersionFixed in Version 
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.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
MySQL VersionNot defined

Relationships

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

Activities

AlexN

2016-01-05 13:59

reporter  

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.