custom/apps/DmitsCustomProducts/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_script_hmr_mode  %}
  3.     <script>
  4.         var optionsOpend=false;
  5.         var optionsClickToogle=true;
  6.         var createFunction="";
  7.         var pricegross_net="";
  8.         
  9.         var dmits_customproducts_shopid="{{appShopId}}";
  10.         var dmits_customproducts_token="{{ app.session.get('sw-context-token') }}";
  11.         
  12.         var dmits_customproducts_custom_product_js="{{ page.product.customFields.dmits_customproducts_product_custom_js|raw }}";
  13.         
  14.         var dmits_customproducts_productid='{{ page.product.id }}';
  15.         
  16.             var dmits_customproducts_showpreviewClass="{{config('DmitsCustomProducts.config.previewClass')}}";
  17.         
  18.         var dmits_customproducts_labelprice="{{  "dmits.customproducts.custom.price"|trans|raw }}";
  19.         var dmits_customproducts_labelproduct="{{  "dmits.customproducts.custom.addtitle"|trans|raw }}";
  20.         var dmits_customproducts_currency='{{100000.8888888888|currency}}';
  21.         var dmits_customproducts_taxState="{{context.taxState}}";
  22.         
  23.         
  24.         var dmits_customproducts_label_pricefrom="{{  "dmits.customproducts.custom.pricefrom"|trans|raw }}";
  25.         
  26.         var dmits_customproducts_label_pricingtitle="{{  "dmits.customproducts.custom.pricingtitle"|trans|raw }}";
  27.         
  28.         var dmits_customproducts_error="{{  "dmits.customproducts.custom.error"|trans|raw|escape }}"; 
  29.         {%  if (config('DmitsCustomProducts.config.active')) %}
  30.         var dmits_customproducts_active=1;
  31.         {% else %}
  32.         var dmits_customproducts_active=0;
  33.         {% endif %}
  34.         {%  if (config('DmitsCustomProducts.config.showpricing')) %}
  35.         var dmits_customproducts_showpricing=1;
  36.         {% else %}
  37.         var dmits_customproducts_showpricing=0;
  38.         {% endif %}
  39.         
  40.         {%  if (config('DmitsCustomProducts.config.underimage')) %}
  41.         var dmits_customproducts_underimage=1;
  42.         {% else %}
  43.         var dmits_customproducts_underimage=0;
  44.         {% endif %}
  45.         {%  if (config('DmitsCustomProducts.config.preview')) %}
  46.         var dmits_customproducts_showpreview=1;
  47.         {% else %}
  48.         var dmits_customproducts_showpreview=0;
  49.         {% endif %}
  50.   </script>
  51.     {{ parent() }}
  52. {% endblock %}