Bei der Artikelkonfiguration können auch Sonderfarben ausgewählt werden. Dazu sind Erweiterungen im Code von createOrder() notwendig.
class pairOfValueType {
public $name;
public $value;
}
class orderDataType {
public $customerProductId; // string
public $orderQuantity; // int
public $aspectRatio; // string
public $shippingType; // string
public $orderName; // string
public $customerCopy; // int
public $customerComment; // string
public $specialColorValues;
}
$args->orderPositions[0]->orderInformation->specialColorValues = new pairOfValueType();
$args->orderPositions[0]->orderInformation->specialColorValues->name = ‚farben‘;
Beispiel
# HKS Farbschlüssel
# $args->orderPositions[0]->orderInformation->specialColorValues->value = ’92‘;

Beispiel
# Pantone Farbschlüssel
# $args->orderPositions[0]->orderInformation->specialColorValues->value = ‚295‘;

Mögliche Farbwerte für HKS bzw. PANTONE
var a_sc_names_p = [ ‚137‘,’151′,’1505′,’1585′,’021′,’012′,’382′,’7488′,’032′,’186′,’375′,’376′,’320′,’292′,’293′,’280′,’286′,’288′,’294′,’295′,’Reflex Blue‘,’Gray Cool 3′,’430′,’Gray Cool 10′,’4625′ ];
var a_sc_names_h = [ ’03‘,’04‘,’05‘,’06‘,’07‘,’08‘,’13‘,’14‘,’15‘,’16‘,’17‘,’18‘,’83‘,’93‘,’92‘,’67‘,’66‘,’65‘,’55‘,’52‘,’47‘,’44‘,’43‘,’42‘,’41‘ ];