A response sent to the shop from ERP can contain more information about product than was requested. This additional information can include additional shipping costs, vouchers, another product for free, promotions, etc. This information is handled by the service which adds the proper lines to basket or basket line.
Additional lines in the basket are stored as
Additional lines in a basket line are stored as
WebConnectorService passes the whole ERP response object to the RemotePriceProvider.
RemotePriceProvider creates additional lines in the price response, if it gets additional price information from ERP that has not been requested.
AdditionalLine defines the class for additional lines that can be related to the basket or basket line.
Additional lines can increase or decrease the order sum.
||string||SKU or resource number of the cost|
||string||Name of the cost e.g. 'Shipping costs DHL standard'|
||string||Identifier of the cost e.g.
||PriceField||Price of the cost including and excluding VAT|
||string||Characteristic of the cost. Allowed values:-
Storing additional lines¶
Additional lines can be stored in the basket and/or basket line, for example:
1 2 3 4 5 6 7
AdditionalLinesService (service ID:
siso_basket.additional_lines_service) is used to calculate the additional lines and store and fetch them from basket/basket line.
It implements all methods from