#IF((#Shop.Categories.Child.SpecialOffers AND #Shop.Categories.Child.SpecialOffers.IsVisible) OR #INPUT.IsEditorModeEnabled)
#IF(NOT(#Shop.LoginRequired AND (NOT #Session.User OR #Session.User.IsAnonymous OR #Shop.ID != #Session.User.Parent.Parent.ID)))
#BLOCK("CachedInclude", #Shop.Object, "SF.SpecialOfferBox" . #CacheIncludesPrices, NOT #Shop.ShowCustomerSpecificPrices)
#LOCAL("SpecialOffersCategory",#Shop.Categories.Child.SpecialOffers)
#IF(#DEFINED(#SpecialOffersCategory.NavigationCaption) OR #DEFINED(#SpecialOffersCategory.Name))#SpecialOffersCategory.NavigationString#ELSE#SPACE[0]{SpecialOffers}#ENDIF
#LOCAL("HasPrice", 0)
#JOIN("", #SpecialOffersCategory.VisibleProducts)
#NameOrAlias
#LOCAL("CurrencyID", #INPUT.Currency)
#LOCAL("ManufacturerPrice", #FUNCTION("MANUFACTURERPRICE", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object))
#IF(#DEFINED(#ManufacturerPrice))
#IF(#Shop.ReferencePriceText)#Shop.ReferencePriceText[0]#ENDIF
#IF(#Shop.CancelReferencePrice)#ManufacturerPrice[money]#ELSE #ManufacturerPrice[money]#ENDIF
#ENDIF
#ENDLOCAL
#LOCAL("DisplayPrice", #DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object))
#SNIPPET("INC-DisplayPrice", "OrderUnitDisplayOption,EnableAsterisk", "Short", "1")
#IF(NOT #IsAppointment AND #DisplayPrice)#SET("HasPrice", 1)#ENDIF
#LOCAL("ReferencePrice",#FUNCTION("REFERENCEPRICE", #Object, #DisplayPrice, #INPUT.Currency))#IF(#DEFINED(#ReferencePrice) AND #ReferencePrice != #DisplayPrice)
(#RefAmount #IF(#DEFINED(#RefUnit.Abbreviation))#RefUnit.Abbreviation#ELSE#RefUnit.NameOrAlias#ENDIF = #ReferencePrice[money])#ENDIF
#ENDLOCAL
#ENDLOCAL
#ENDLOCAL
#IF(#ImageHotDeal)
#ENDIF
#ENDJOIN
#IF(#HasPrice)
#IF(#FUNCTION("DISPLAYPRICETAGINFOGROSS", #Object, #Shop.TaxModel, #Session.User.Object))
#IF(#Shop.PriceTagInfoMultiProductGross)
* #Shop.PriceTagInfoMultiProductGross[0]
#ENDIF
#ELSIF(#Shop.PriceTagInfoMultiProductNet)
* #Shop.PriceTagInfoMultiProductNet[0]
#ENDIF
#ENDIF
#ENDLOCAL
#IF(#INPUT.IsEditorModeEnabled AND NOT #Shop.Categories.Child.SpecialOffers)
{SpecialOffers}
{NoSpecialOffers}
#BLOCK("NewLineReplace", " ")
{InsertPage}
#ENDBLOCK
#ELSIF(#INPUT.IsEditorModeEnabled AND NOT #Shop.Categories.Child.SpecialOffers.IsVisible)
#ENDIF
#ENDLOCAL
#ENDBLOCK
#ENDIF
#ENDIF