From 25ea69d4b7e66ef2d294f6ebd2264704a7223940 Mon Sep 17 00:00:00 2001 From: Isabelle Date: Fri, 24 Apr 2026 09:46:29 +0200 Subject: [PATCH] Add is_shoppingcart.tpl file --- .gitignore | 2 + falcon/_dev/js/theme/index.js | 15 ---- .../views/templates/hook/is_shoppingcart.tpl | 79 +++++++++++++++++++ 3 files changed, 81 insertions(+), 15 deletions(-) create mode 100644 falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl diff --git a/.gitignore b/.gitignore index f2946d6..a99e976 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ falcon/vendor/ + +*.zip diff --git a/falcon/_dev/js/theme/index.js b/falcon/_dev/js/theme/index.js index 323fef8..fa9a71d 100644 --- a/falcon/_dev/js/theme/index.js +++ b/falcon/_dev/js/theme/index.js @@ -79,19 +79,4 @@ $(() => { $(".js-select-link").on("change", ({ target }) => { window.location.href = $(target).val(); }); - - // Postcode input formatting - const $postCodeInput = $("input[name='postcode']"); - $postCodeInput.on("input", function () { - let value = $(this).val(); - - // Match 4 digits followed by 2 letters (e.g., 1234AB) - const match = value.match(/^(\d{4})([a-zA-Z]{2})$/); - - if (match) { - // Add space between numbers and letters - const formatted = `${match[1]} ${match[2]}`; - $(this).val(formatted); - } - }); }); diff --git a/falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl b/falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl new file mode 100644 index 0000000..bdc3d7a --- /dev/null +++ b/falcon/modules/is_shoppingcart/views/templates/hook/is_shoppingcart.tpl @@ -0,0 +1,79 @@ +{** + * 2007-2020 PrestaShop and Contributors + * + * NOTICE OF LICENSE + * + * This source file is subject to the Academic Free License 3.0 (AFL-3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * https://opensource.org/licenses/AFL-3.0 + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@prestashop.com so we can send you a copy immediately. + * + * @author PrestaShop SA + * @copyright 2007-2020 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + * International Registered Trademark & Property of PrestaShop SA + *} + +
+ +