update data footer
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -2,13 +2,15 @@ window.PROLOGY_CONFIG = {
|
|||
API_URL: "https://prologyms.nswteam.net/chat-plugin/api/support",
|
||||
LOGO_SRC: "assets/Prology_logo.png",
|
||||
|
||||
// ── Store picker (modal) ──
|
||||
STORE_AU_URL: "https://prology.net/au",
|
||||
STORE_US_URL: "https://prology.net/us",
|
||||
|
||||
// ── Footer ──
|
||||
FOOTER_DATA_URL: "assets/data-footer.json",
|
||||
FOOTER_BASE_URL: "http://localhost:8080/",
|
||||
FOOTER_STATIC_URL:
|
||||
"http://localhost:8080/static/version1778227322/frontend/Netstore/default/en_US/",
|
||||
FOOTER_LOGO_URL:
|
||||
"http://localhost:8080/media/logo/stores/1/Prology-2-e1665964900953_6_.png",
|
||||
FOOTER_BASE_URL: "https://prology.net/au/",
|
||||
FOOTER_STATIC_URL: "assets/",
|
||||
FOOTER_LOGO_URL: "assets/Prology_logo.png",
|
||||
FOOTER_CATEGORIES: [
|
||||
{ label: "Compute", url: "compute.html" },
|
||||
{ label: "Storage", url: "storage.html" },
|
||||
|
|
|
|||
|
|
@ -476,7 +476,6 @@
|
|||
window.openEnquireModal = () =>
|
||||
document.getElementById("wc-enquire-modal").open();
|
||||
|
||||
// goToSellStep2: pass email from capsule input into sell modal
|
||||
// ── Store picker modal ──
|
||||
window.openStoreModal = function () {
|
||||
const overlay = document.getElementById("store-modal-overlay");
|
||||
|
|
@ -495,6 +494,23 @@
|
|||
if (e.key === "Escape") closeStoreModal();
|
||||
});
|
||||
|
||||
// Wire store picker links from config
|
||||
const cfg = window.PROLOGY_CONFIG || {};
|
||||
document.querySelectorAll('[data-store="au"]').forEach((el) => {
|
||||
if (cfg.STORE_AU_URL) el.setAttribute("href", cfg.STORE_AU_URL);
|
||||
});
|
||||
document.querySelectorAll('[data-store="us"]').forEach((el) => {
|
||||
if (cfg.STORE_US_URL) el.setAttribute("href", cfg.STORE_US_URL);
|
||||
});
|
||||
|
||||
// Intercept any /shop link → open store picker instead
|
||||
document.addEventListener("click", function (e) {
|
||||
const a = e.target.closest('a[href="/shop"]');
|
||||
if (!a) return;
|
||||
e.preventDefault();
|
||||
window.openStoreModal();
|
||||
});
|
||||
|
||||
window.goToSellStep2 = function () {
|
||||
const emailInput = document.getElementById("sell-email-init");
|
||||
const email = emailInput ? emailInput.value : "";
|
||||
|
|
|
|||
|
|
@ -767,7 +767,7 @@
|
|||
<button class="btn-primary" onclick="openQuoteModal()">
|
||||
<span>Request a Quote</span>
|
||||
</button>
|
||||
<button class="btn-secondary" onclick="location.href = '/shop'">
|
||||
<button class="btn-secondary" onclick="openStoreModal()">
|
||||
<span>Shop Now</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -858,7 +858,7 @@
|
|||
Procure authentic Cisco, HP & Toshiba equipment. Delivery
|
||||
worldwide.
|
||||
</p>
|
||||
<button class="btn-primary" onclick="location.href = '/shop'">
|
||||
<button class="btn-primary" onclick="openStoreModal()">
|
||||
<span>View Products</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -918,7 +918,7 @@
|
|||
</p>
|
||||
<div class="store-options">
|
||||
<!-- AU Store -->
|
||||
<a href="/shop" class="store-option store-option--active">
|
||||
<a data-store="au" class="store-option store-option--active">
|
||||
<span class="store-flag">
|
||||
<!-- Australian Flag -->
|
||||
<svg
|
||||
|
|
|
|||