Compare commits
2 Commits
feature/fa
...
3e96574e0a
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e96574e0a | |||
| 99032af2db |
@ -79,19 +79,4 @@ $(() => {
|
|||||||
$(".js-select-link").on("change", ({ target }) => {
|
$(".js-select-link").on("change", ({ target }) => {
|
||||||
window.location.href = $(target).val();
|
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);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,15 +1,7 @@
|
|||||||
{* Defensive: Handles LazyArray objects for category *}
|
|
||||||
{if is_object($category)}
|
|
||||||
{$category = $category|json_encode|json_decode:true}
|
|
||||||
{if isset($category.category)}
|
|
||||||
{$category = $category.category}
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div id="js-product-list-footer">
|
<div id="js-product-list-footer">
|
||||||
{if isset($category.additional_description) && $category.additional_description && $listing.pagination.items_shown_from == 1}
|
{if $category.additional_description && $listing.pagination.items_shown_from == 1}
|
||||||
<div id="category-description-2" class="cms-content my-3">
|
<div id="category-description-2" class="cms-content my-3">
|
||||||
{$category.additional_description nofilter}
|
{$category.additional_description nofilter}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user