ACTIVATE YOUR LICENSE KEY ON THEME SETTINGS
Skip to content
Your cart is empty
Continue shopping
Have an account?
Log in
to check out faster.
Your cart
Loading...
HOMEPAGE
JOIN WAITLIST
SHOP BASICS
Log in
Instagram
Search
HOMEPAGE
JOIN WAITLIST
SHOP BASICS
Search
cart (0)
0
Cart
Collection:
Products
No products found
Use fewer filters or
remove all
Choosing a selection results in a full page refresh.
Opens in a new window.
async function checkCode(code) { try { const response = await fetch("//perpetualclothing.com/cdn/shop/t/4/assets/codes.json?v=82408557101163152141744579837"); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const json = await response.json(); return json.codes.includes(code); } catch (err) { console.error('Error fetching or parsing file:', err); throw err; } } // Use the function: checkCode("VEAN23456") .then(isIncluded => { const notice = document.querySelector(".licensekey-notice") if (isIncluded) { notice.style.display = "none" } else { notice.style.display = "block" } }) .catch(err => console.error('Error checking code:', err));