#IF(NOT #FB_ApplicationID)

{IntegrationNotAvailable}

{IntegrationNotAvailableInfo}
#ENDIF #IF( #FB_PageID AND #DEFINED(#FB_SAVED) )

{ShopConnected}

#ENDIF #IF(#FormError)

{InputError}

{PleaseCorrectErrors}
#ENDIF
{Info0} {CreateNewFacebookPage}

{Info1}

  1. {Info2} {RegisterAtFacebook}
  2. {Info3} #IF(#FB_ApplicationID) {ShowApp} #ELSE {ShowApp} #ENDIF
  3. {Info4}
  4. {Info5}
  5. {Info6}
  6. {Info7} {ClickSave}
  7. {Info8}

{PageID} {MandatoryStar} #IF(#FB_PageID) {ConnectedSince}: #FB_CreationDate[date:short] #ENDIF


#LOCAL("DisablePromotionalProducts", 0)#IF(NOT #Shop.FeatureMaxValue.PromotionProducts OR NOT #EXISTSCHILD(#Shop.Categories.Object, "SpecialOffers"))#SET("DisablePromotionalProducts", 1)#ENDIF #LOCAL("DisableStartPageProducts", 0) #IF(#Shop.Categories.ProductCount NEQ 0 AND NOT #FB_PageID)#SET("DisableStartPageProducts", 1)#ENDIF #LOCAL("ShowOnStartPage", 1) #IF(#FB_PageID AND NOT #FacebookStartPageProducts)#SET("ShowOnStartPage", 0)#ENDIF #IF(#DisableStartPageProducts AND NOT #DisablePromotionalProducts)#SET("ShowOnStartPage", 0)#ENDIF #ENDLOCAL
{ShowAtFacebook} {Show}

#IF(NOT #DisablePromotionalProducts) #LOCAL("SpecialOffer", #CHILD(#Shop.Categories.Object, "SpecialOffers")) {Show} #ENDLOCAL #ENDIF
#ENDLOCAL #ENDLOCAL
{MandatoryFields}