Cannot offer pickupOnly
Hi Devs,
how is it possible, to offer Pickup only?
I am using right now this code:
switch (shippingOption) {
case 'shippingAndPickup':
shippingDetails = {
ShippingType: 'Flat',
ShippingServiceOptions: [
{
ShippingServicePriority: 1,
ShippingService: selectedShippingService,
ShippingServiceCost: shippingCost
},
{
ShippingServicePriority: 2,
ShippingService: 'DE_Pickup',
ShippingServiceCost: '0.00'
}
]
};
break;
case 'shippingOnly':
shippingDetails = {
ShippingType: 'Flat',
ShippingServiceOptions: [{
ShippingServicePriority: 1,
ShippingService: selectedShippingService,
ShippingServiceCost: shippingCost
}]
};
break;
case 'pickupOnly':
shippingDetails = {
ShippingType: 'Flat',
ShippingServiceOptions: [
{
ShippingServicePriority: 1,
ShippingService: 'DE_Pickup',
ShippingServiceCost: '0.00'
}
]
};
break;
}
shippingAndPickup & shippingOnly are working fine, but with pickupOnly I receive the following ErrorMessage:
"Fehler 21920256: Für die Versandpauschale oder Versandkostenberechnung muss außer Abholung noch mindestens ein Versandservice ausgewählt werden."
Translation:
"Error 21920256: For the shipping flat rate or shipping cost calculation, at least one shipping service in addition to pickup must be selected."
So how is it possible, to offer Pickup only?
Thanks in advanced!
Richard
klyer22
Posted 1 year ago
0 comments