FAQ

News

20.01.2024 | Extension API-Function getCustomCatalogue

The function getCustomCatalogue has been extended. Now it is possible to get multiple Prices (up to 10) in one Request.
Therefore you have to take multiple quantities in the parameter quantity.

Example:
quantity=1_quantity|50_quantity|100_quantity

The prices are return in the respone in productList – selectGroupList – optionList in array optionTranslations.
The value of the field optionName is the requested quantity. (In the example 1_quantity or 50_quantity or 100_quantity)

Archive

 

Deleting a saved item The “internalId” of a saved item can be queried using the getCustomProduct() function. A saved article can then be deleted with the “internalId”.

Example
$deletearticle = ‘articletodelete’;

try {
$getItemArgs = new getCustomProductRequestType();
$getItemArgs->environment = $environment;
$getItemArgs->messageLevel = $messageLevel;
$selection = new catalogueSelectionType();
$getItemArgs->selection = $selection;
$getItemArgs->selection->itemIdentifier = $deletearticle;
$product = $client->getCustomProduct($getItemArgs);
$internalId = $product->product->internalId;

} catch(Exception $e) {
echo “Error on request getCustomProduct: ” . $e->getMessage();
}

try {
$changeArgs->writeMode = ‘deactivate’;
$changeArgs->product = new selectedType();
$changeArgs->product->internalId = $internalId;

$erg = $client->setCustomProduct($changeArgs);
} catch(Exception $e) {
echo “Error on request setCustomerProduct: ” . $e->getMessage();
}

Category: Product
Tag: Delete