Introduction
This section describes how the module maps shipping methods to Shopware and what configuration options are available.
Subsections
The following subsections are involved in mapping shipping methods:
output
└───shipping-method
└───shipping-method-build-cache
└───shipping-method-validate
└───shipping-method-upsert
└───shipping-method-delete
Configuration
The following configuration is used for shipping methods:
{
"subsections": {
"shippingMethod": {
"enabled": true,
"fallbacks": {
"deliveryTimeShopwareId": "...",
"availabilityRuleShopwareId": "..."
}
}
}
}
Delivery Times
Shopware requires a delivery time to be specified in order to create a shipping method. You can specify the delivery time to use in the
configuration by setting a value to fallbacks.deliveryTimeShopwareId
. This is a required field if you want to map shipping methods
to Shopware since this field is not supported by the data model of synQup.
You can find the delivery times in the administration panel of Shopware (Settings -> Delivery times)
Availability Rules
Shopware requires an availability rule to be specified in order to create a shipping method. You can specify the availability rule
to use in the configuration by setting a value to fallbacks.availabilityRuleId
. This is a required field if you want to map shipping
methods to Shopware since this field is not supported by the data model of synQup.
You can find the availability rules in the administration panel of Shopware (Settings -> Rule builder)
Mapping Table
Target: shipping_method
Source: Elio\CommerceBundle\Document\Dispatch
Target Field | Source Path |
---|---|
*T name |
dispatch.identifier or dispatch.label |
* deliveryTimeId |
configuration - see "Delivery Times" |
* availabilityRuleId |
configuration - see "Availability Rules" |
If your documents contains a label it will be used as name. Otherwise, the identifier is used as name.