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)
Special formats can also be defined when ordering. To do this, select the desired article in the next larger format and transfer the special format values via the following additional parameters in createOrder().
Example
For a flyer with a format of 150 x 150 mm, the next larger format with 183 x 273 mm should be selected.
class specialFormatType {
public $width; // int
public $height; // int
public $formatType; // string
}
class orderDataType {
public $customerProductId; // string
public $orderQuantity; // int
public $aspectRatio; // string
public $shippingType; // string
public $orderName; // string
public $customerCopy; // int
public $customerComment; // string
public $specialFormatValues;
}
$args->orderPositions[0]->orderInformation->specialFormatValues = new specialFormatType();
$args->orderPositions[0]->orderInformation->specialFormatValues->width = 150;
$args->orderPositions[0]->orderInformation->specialFormatValues->height = 150;
$args->orderPositions[0]->orderInformation->specialFormatValues->formatType = ‘special format‘;