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",
|
API_URL: "https://prologyms.nswteam.net/chat-plugin/api/support",
|
||||||
LOGO_SRC: "assets/Prology_logo.png",
|
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 ──
|
||||||
FOOTER_DATA_URL: "assets/data-footer.json",
|
FOOTER_DATA_URL: "assets/data-footer.json",
|
||||||
FOOTER_BASE_URL: "http://localhost:8080/",
|
FOOTER_BASE_URL: "https://prology.net/au/",
|
||||||
FOOTER_STATIC_URL:
|
FOOTER_STATIC_URL: "assets/",
|
||||||
"http://localhost:8080/static/version1778227322/frontend/Netstore/default/en_US/",
|
FOOTER_LOGO_URL: "assets/Prology_logo.png",
|
||||||
FOOTER_LOGO_URL:
|
|
||||||
"http://localhost:8080/media/logo/stores/1/Prology-2-e1665964900953_6_.png",
|
|
||||||
FOOTER_CATEGORIES: [
|
FOOTER_CATEGORIES: [
|
||||||
{ label: "Compute", url: "compute.html" },
|
{ label: "Compute", url: "compute.html" },
|
||||||
{ label: "Storage", url: "storage.html" },
|
{ label: "Storage", url: "storage.html" },
|
||||||
|
|
|
||||||
|
|
@ -476,7 +476,6 @@
|
||||||
window.openEnquireModal = () =>
|
window.openEnquireModal = () =>
|
||||||
document.getElementById("wc-enquire-modal").open();
|
document.getElementById("wc-enquire-modal").open();
|
||||||
|
|
||||||
// goToSellStep2: pass email from capsule input into sell modal
|
|
||||||
// ── Store picker modal ──
|
// ── Store picker modal ──
|
||||||
window.openStoreModal = function () {
|
window.openStoreModal = function () {
|
||||||
const overlay = document.getElementById("store-modal-overlay");
|
const overlay = document.getElementById("store-modal-overlay");
|
||||||
|
|
@ -495,6 +494,23 @@
|
||||||
if (e.key === "Escape") closeStoreModal();
|
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 () {
|
window.goToSellStep2 = function () {
|
||||||
const emailInput = document.getElementById("sell-email-init");
|
const emailInput = document.getElementById("sell-email-init");
|
||||||
const email = emailInput ? emailInput.value : "";
|
const email = emailInput ? emailInput.value : "";
|
||||||
|
|
|
||||||
|
|
@ -767,7 +767,7 @@
|
||||||
<button class="btn-primary" onclick="openQuoteModal()">
|
<button class="btn-primary" onclick="openQuoteModal()">
|
||||||
<span>Request a Quote</span>
|
<span>Request a Quote</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn-secondary" onclick="location.href = '/shop'">
|
<button class="btn-secondary" onclick="openStoreModal()">
|
||||||
<span>Shop Now</span>
|
<span>Shop Now</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -858,7 +858,7 @@
|
||||||
Procure authentic Cisco, HP & Toshiba equipment. Delivery
|
Procure authentic Cisco, HP & Toshiba equipment. Delivery
|
||||||
worldwide.
|
worldwide.
|
||||||
</p>
|
</p>
|
||||||
<button class="btn-primary" onclick="location.href = '/shop'">
|
<button class="btn-primary" onclick="openStoreModal()">
|
||||||
<span>View Products</span>
|
<span>View Products</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -918,7 +918,7 @@
|
||||||
</p>
|
</p>
|
||||||
<div class="store-options">
|
<div class="store-options">
|
||||||
<!-- AU Store -->
|
<!-- 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">
|
<span class="store-flag">
|
||||||
<!-- Australian Flag -->
|
<!-- Australian Flag -->
|
||||||
<svg
|
<svg
|
||||||
|
|
|
||||||