Loading...
Skip navigation

Alternative delivery address

From EXT: shop version 2.2.0 upwards a different delivery address can be entered in the checkout form.

Configuration

To activate this function, the following TypoScript variables need to be overwritten:

plugin.tx_shop.settings.basketOrder.onInvoice.fields {
    available = deliveryAddressEnabled, deliveryAddressCompany, deliveryAddressFirstname, deliveryAddressLastname, deliveryAddressStreet, deliveryAddressPostalCode, deliveryAddressCity
    required = deliveryAddressCompany, deliveryAddressFirstname, deliveryAddressLastname, deliveryAddressStreet, deliveryAddressPostalCode, deliveryAddressCity
}

The TypoScript predefined field deliveryAddressEnabled is a checkbox. If this checkbox is set, the fields listed in the plugin.tx_shop.settings.basketOrder.onInvoice.fields.required variable will be validated when the form is submitted. If not, the fields are treated as optional fields.

Predefined fields and field definitions

The deliveryAddressCompany, deliveryAddressFirstname, deliveryAddressLastname, deliveryAddressStreet, deliveryAddressPostalCode and deliveryAddressCity fields are predefined.

You can also define your own fields by adding TypoScript variables as follows:

plugin.tx_shop.settings.basketOrder.fieldDefinition {
    deliveryAddressHouseNumber {
        label = house number
        type = input
        eval = trim
        deliveryAddress = 1
        placeholder = house number
        errors {
            isEmpty = Please enter your house number
        }
    }
}

The deliveryAddress = 1 flag ensures that the field is treated as an alternative delivery address and is only validated if needed.

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
_R__________N2A______
52_____2______T___OG3
_C____4H8_____M______
_S_____2______D___ZLP
4Q9___________R______