#LOCAL("IsTwengaCountryAvailable",#Shop.Address.CountryID EQ #PortalSite.Country.CountryID) #WITH_ERROR(#FormError)
#IF(NOT #DEFINED(#Shop.Address.Country))

{AddressError}

{NoOrderShopAddressCountry}
{SetShopAddress}
#ELSIF(NOT #IsTwengaCountryAvailable)

{Notification}

{TwengaCountryIsNotAvailable} #Portal.NameOrAlias / #PortalSite.Country.Native
#ENDIF #IF(#Shop.TaxModel NE #PortalSite.TaxModel)

{Notification}

{DifferentTaxModels}

#ENDIF #IF(#ExportSuccessful)

{Notification}

{ExportSuccessful}

#ENDIF #IF(#FormError)
#IF(#FormErrors.Reason.NoShipping)

{InputError}

{NoShippingSelected} #ELSIF(#FormErrors.Form.ExportPortalConfig)

{ExportErrors}

{ExportErrorDetails}

{Details}
#LOOP(#FormErrors.Form.ExportPortalConfig.Errors) #IF(#Reason EQ "ProductNotVisible") #ELSIF(#Reason EQ "ProductNoName") #ELSIF(#Reason EQ "ProductNoPrice") #ELSIF(#Reason EQ "ProductNoShipping") #ELSIF(#Reason EQ "ProductNoDescription") #ELSIF(#Reason EQ "ProductNoCategory") #ELSIF(#Reason EQ "ProductNoImage") #ELSIF(#Reason EQ "ValueTooLong") #ELSIF(#Reason EQ "ProductNoValue") #ELSIF(#Reason EQ "WrongImage") #ELSIF(#Reason EQ "TaxModelMismatch") #ELSE #ENDIF #ENDLOOP
{SKU} {Name} {Error}
#Product.Alias#Product.Name[slice:40,html] {ProductNotSetVisible}
({NoExport})
#Product.Alias {ProductNoName}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NoPriceSpecified}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NoShippingAvailable}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {NoDescriptionAvailable}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {ProductNoCategory}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] {ProductNoImage}
({NoExport})
#Product.Alias#Product.Name[slice:40,html] #IF(#AttributeName EQ "title") {ValueTooLongName}#ELSE {ValueTooLong}#ENDIF#Product.Alias#Product.Name[slice:40,html] #IF(#AttributeName EQ "Manufacturer") {NoManufacturerAvailable} #ELSIF(#AttributeName EQ "ManufacturerSKU") {NoManufacturerSKUAvailable} #ELSIF(#AttributeName EQ "UPCEAN") {NoProductCodeAvailable} #ELSIF(#AttributeName EQ "Categories") {NoCategoryAvailable} #ELSE #AttributeName #ENDIF#Product.Alias #Product.Name[slice:40,html]{DifferentTaxModels}{UnknownError} #Reason: #Name (#Message)
#ELSIF(#FormErrors.Reason.SETTINGS_INCOMPLETE) {PortalSettingsIncomplete} {DoComplete} #ELSIF(#FormErrors.Reason.InvalidPortalMerchantID)

{InputError}

{MerchantIdInvalid} #ELSIF(#FormErrors.Reason.TwengaNotAvailable)

{Error}

{TwengaNotAvailableText} #ELSIF(#FormErrors.Reason.InternalError)

{Error}

{InternalErrorText} #ELSE

{InputError}

{PleaseCorrectErrors} #ENDIF
#ENDIF

{Info0}

  1. {Info1} #IF(#DEFINED(#PortalSite.RegisterURL))#IF(#IsTwengaCountryAvailable){RegisterNew}#ENDIF #ENDIF
  2. {Info2} {ClickSave}
  3. {Info3}
#IF( #PortalMerchantID ) #IF(#DEFINED(#PortalSite.RegisteredMerchantContactURL))#IF(#IsTwengaCountryAvailable){ContactLink}#ENDIF #ENDIF #ELSE #IF(#DEFINED(#PortalSite.UnregisteredMerchantContactURL))#IF(#IsTwengaCountryAvailable){ContactLink}#ENDIF #ENDIF #ENDIF #IF(#DEFINED(#PortalSite.AdminURL))#IF(#IsTwengaCountryAvailable){RegisterPortal}#ENDIF #ENDIF #IF(#DEFINED(#PortalSite.PortalURL))#IF(#IsTwengaCountryAvailable){LinkToPortal}#ENDIF #ENDIF
#LOCAL("ErrorImageAttributeID", 0) #IF(#FormError) #SET("ErrorImageAttributeID", #ImageAttribute) #IF(#ErrorImageAttributeID EQ "")#SET("ErrorImageAttributeID", 0)#ENDIF #ELSIF(#DEFINED(#ImageAttribute)) #SET("ErrorImageAttributeID", #ImageAttribute.ID) #ENDIF #WITH(#Shop.ProductClass) #ENDWITH#ENDLOCAL #LOCAL("ErrorDescriptionAttributeID", 0) #IF(#FormError) #SET("ErrorDescriptionAttributeID", #DescriptionAttribute) #IF(#ErrorDescriptionAttributeID EQ "")#SET("ErrorDescriptionAttributeID", 0)#ENDIF #ELSIF(#DEFINED(#DescriptionAttribute)) #SET("ErrorDescriptionAttributeID", #DescriptionAttribute.ID) #ENDIF #WITH(#Shop.ProductClass) #ENDWITH #ENDLOCAL
Hashkey {MandatoryStar}

{ExportAllProducts}
{ExportAllVariations}

{ShippingMethod} #LOCAL("IsMethodCorrect", 0) #IF(#DEFINED(#ShippingMethod.Region)) #LOOP(#ShippingMethod.Region.Countries) #IF(#CountryID == #PortalSite.Country.CountryID) #SET("IsMethodCorrect", 1) #ENDIF #ENDLOOP #ELSE #SET("IsMethodCorrect", 1) #ENDIF #LOCAL("ErrorShippingMethodID", 0) #IF(#FormError) #SET("ErrorShippingMethodID", #ShippingMethod) #IF(#ErrorShippingMethodID EQ "")#SET("ErrorShippingMethodID", 0)#ENDIF #ELSIF(#DEFINED(#ShippingMethod)) #SET("ErrorShippingMethodID", #ShippingMethod.ID) #ENDIF #ENDLOCAL #IF(NOT #IsMethodCorrect)
 {CountryNotInMethod}#ENDIF #ENDLOCAL
{ImageAttribute}
{Description}

{AutoExport}
{ExportInterval}
{LastExportDate} #IF(#LastExportDate) #LastExportDate[date] #ELSE - #ENDIF
{NextExportDate} #IF(#ExportInterval > 0) #NextExportDate[date] #ELSE - #ENDIF
#IF(#LastExportDate AND #ExistsExportFile)

{ShowExportFile}

#ENDIF
#ENDWITH_ERROR #ENDLOCAL
{MandatoryFields}
#IF(#FUNCTION("MENU_COUNT", "RelatedTopic") > 0)

{RelatedTopics}

#ENDIF