@django_jinja.library.global_function
@jinja2.contextfunction
def show_prices(context):
 options = PriceDisplayOptions.from_context(context)
 return options.show_prices

@ django_jinja . library . global_function @ jinja2 . contextfunction def show_prices ( context ) : options = PriceDisplayOptions . from_context ( context ) return options . show_prices
return true if price display options has show prices enabled .