#LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "Shippo"))
#IF(#DisplayFeature EQ "Allowed")
#IF(#ShippoConnectionValidated)
#IF(#IsShippoInstalled AND #UninstallShippo)
{ShippoConnected}
#ELSE
{ShippoInstalled}
{ShippoOrdersImported}
#LOCAL("ShippoBackOfficeUrl", #GET_SHIPPO_BACKOFFICE_URL(#Shop.ID, #Session.User.LocaleID))
#IF(#ShippoBackOfficeUrl)
- {ManageOrders} {ManageOrdersLink}
#ENDIF
#ENDLOCAL
- {ShippingSettings} {ShippingSettingsLink}
#ENDIF
#ELSE
{InputError}
#IF(NOT #DEFINED(#ShippoID))
{InvalidShippoParameters}
#ENDIF
#IF(#NoShippoProviderMethod)
{NoShippoProviderMethod}
#ENDIF
#IF(#DEFINED(#IsInstalledOk) AND (NOT #IsInstalledOk))
{ShippoInstallationError}
#ENDIF
#ENDIF
#ELSE
{ShippoErrorHead}
{ShippoErrorNoFeature}
#ENDIF
#ENDLOCAL