{DHLShippingLabel}
|
{DHLShippingNumber}
|
#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#Issued OR #INPUT.ViewAction EQ "MBO-ViewNewDHLShippingLabelQuestion")
#Alias
#ELSE
#ENDIF
|
#ENDBLOCK
|
#WITH(#Order)
{CustomerNoShort}
|
#Customer.Alias
|
#ENDWITH
|
{DispatchType} |
|
#IF(#Issued AND #DEFINED(#DHLShoppingCart.ID))
{GoToDHLShoppingCart}
#ELSE
#ENDIF
|
{OverallWeight}
|
#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#Issued OR #INPUT.ViewAction EQ "MBO-ViewNewDHLShippingLabelQuestion")
#EnteredOrCalculatedOverallWeight[float] kg
#ELSE
kg
#ENDIF
|
#ENDBLOCK
{ShipmentId}
|
#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#Issued OR #INPUT.ViewAction EQ "MBO-ViewNewDHLShippingLabelQuestion")
#IF(#DEFINED(#ShipmentId))
#IF(#ProductId[substr:0:5] EQ "PAECK" AND #Proof EQ "0")
#ShipmentId ({NoTrackingPossible})
#ELSE
#LOCAL("TrackingParameter", "")
#IF(#Address.Country.Code2 EQ "DE")
#SET("TrackingParameter", "&zip=".#Address.Zipcode)
#ELSE
#SET("TrackingParameter", "&internationalShipment=on")
#ENDIF
#LOCAL("DHLTrackingLanguage","")
#IF( (#Session.User.LocaleID EQ "de_DE") OR (#Session.User.LocaleID EQ "de_AT") OR (#Session.User.LocaleID EQ "de_CH") )
#SET("DHLTrackingLanguage","de")
#ELSE
#SET("DHLTrackingLanguage","en")
#ENDIF
#ShipmentId
#ENDLOCAL
#ENDLOCAL
#ENDIF
#ELSE
{NONE}
#ENDIF
#ELSIF(#INPUT.ViewAction EQ "MBO-ViewGeneratedDHLShippingLabels" OR #INPUT.ViewAction EQ "MBO-ViewNewDHLShippingLabel")
{NONE}
#ELSE
#ENDIF
|
#ENDBLOCK
#IF(#FormErrors.Reason.GetProductsFromDBError)
{DatabaseError}
#ELSIF(#FormErrors OR #Error_OverallWeightTooHigh EQ "1")
{InputError}
{GetProductsFromDBErrorNoSuchProduct}
#ELSE
{YourChosenDHLProduct}: #DisplayName
#DisplayText
#LOCAL("CurrencyID","EUR")
{Price}: #OverallPriceAmountEUR[money] #IF(#PickupService) {incl.} {PickupPrice}#ENDIF
#ENDLOCAL
#ENDIF
|
{ShippingDimensions}
|
{AdditionalServices}:
|
|
{PickupService}
|
|
{PickupDate}
|
#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#Issued OR #INPUT.ViewAction EQ "MBO-ViewNewDHLShippingLabelQuestion")
#IF(#DEFINED(#PickupDate))
#PickupDate[date]
#ELSE
{NoPickupServiceOrdered}
#ENDIF
#ELSE
#IF(#PickupService NE "1")
#ENDIF
#ENDIF
|
#ENDBLOCK
#LOCAL("InternationalShipment", "")
#IF(#DEFINED(#Order.ShippingAddress))
#IF(#Order.ShippingAddress.Country.Code2 EQ "DE")
#SET("InternationalShipment", "0")
#ELSE
#SET("InternationalShipment", "0")
#ENDIF
#ELSE
#IF(#Order.BillingAddress.Country.Code2 EQ "DE")
#SET("InternationalShipment", "0")
#ELSE
#SET("InternationalShipment", "1")
#ENDIF
#ENDIF
#IF(#InternationalShipment EQ "1")
{PreAdviceType}
|
#IF(#Issued OR #INPUT.ViewAction EQ "MBO-ViewNewDHLShippingLabelQuestion")
#IF(#PreAdviceType EQ "0")
{PA_DESTROY}
#ELSE
{PA_RETURN}
#ENDIF
#ELSE
#ENDIF
|
#ELSE
|
#ENDIF
#ENDLOCAL
|
#IF(#Issued)
{Gross}
|
#IF( #DEFINED(#PdfDownloadUrl) )
#BruttoAmount[money]
#ELSE
---
#ENDIF
|
{ShippingLabel}
|
#IF( #DEFINED(#PdfDownloadUrl) )
{Download}
#ELSE
---
#ENDIF
/
#IF( #DEFINED(#AwtDownloadUrl) )
{PrintNow}
#ELSE
---
#ENDIF
|
#ENDIF