app/Plugin/SalesRestrictions42/Resource/template/default/Product/restrictions_js.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : SalesRestrictions4
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. <div id="sales_restrictions" style="display:none;">
  11. {{ include('Product/sales_restrictions_cart.twig') }}
  12. </div>
  13. <script>
  14. $(function() {
  15.     var hiddenIds = {{ hiddenIds }};
  16.     var product_id;
  17.     for (var key in hiddenIds) {
  18.         product_id = hiddenIds[key];
  19.         $elem = $('button[form="productForm'+product_id+'"]');
  20.         $elem.after($('#sales_restrictions').html());
  21.         $elem.remove();
  22.     }
  23. });
  24. </script>