{% extends "layout/base.html.twig" %} {% block base_js %} {{ parent() }} {# show waiting spinner on basket (re)load on special buttons (cause of long order simulation laod), but only if user is logged in and number of positions exceeds threshold #} {% if oxcmp_user %} {% set sBasketSpinnerPositionThreshold = oViewConf.getBasketSpinnerPositionThreshold() %} {% set iBasketContentCount = oxcmp_basket.getContents()|length %} {% if sBasketSpinnerPositionThreshold and iBasketContentCount >= sBasketSpinnerPositionThreshold %} {{ script({ include: oViewConf.getVersionedModuleUrl("c4s_order_simulation", "out/src/js/c4s_order_simulation_spinner.js"), priority: 5, dynamic: __oxid_include_dynamic }) }} {% endif %} {% endif %} {% endblock %}