Find Your Perfect Sole & Arch Match
Answer 4 quick questions about your daily movement and foot posture. Our diagnostic engine prescribes your exact footwear and orthotic recovery bundle in 60 seconds.
Question 1: What does your typical day look like?
Different professions exert drastically different pressure vectors on the plantar fascia.
var quizAnswers = {
routine: ”,
pain: ”,
arch: ”,
gender: ”
};
var bundleProductIds = [];
function selectQuizOption(step, val, elem) {
if (step === 1) quizAnswers.routine = val;
if (step === 2) quizAnswers.pain = val;
if (step === 3) quizAnswers.arch = val;
if (step === 4) quizAnswers.gender = val;
// Visual selection
var parent = elem.parentNode;
var opts = parent.getElementsByClassName(‘quiz-option’);
for (var i = 0; i < opts.length; i++) {
opts[i].classList.remove('selected');
}
elem.classList.add('selected');
// Auto advance
setTimeout(function() {
if (step < 4) {
document.getElementById('step-' + step).style.display = 'none';
document.getElementById('step-' + (step + 1)).style.display = 'block';
document.getElementById('quiz-progress').style.width = ((step + 1) * 25) + '%';
} else {
document.getElementById('step-4').style.display = 'none';
document.getElementById('quiz-loading').style.display = 'block';
document.getElementById('quiz-progress').style.width = '100%';
setTimeout(calculateDiagnosticResults, 900);
}
}, 250);
}
function calculateDiagnosticResults() {
document.getElementById('quiz-loading').style.display = 'none';
document.getElementById('quiz-results').style.display = 'block';
var shoeName = 'SoleRoot Stratus Shift Walker';
var shoeId = 13758;
var shoePrice = 68;
var shoeDesc = 'Wide-base stability platform with deep heel cup designed specifically for 8+ hour continuous standing.';
if (quizAnswers.routine === 'walking' || quizAnswers.pain === 'none') {
shoeName = 'SoleRoot TreeKnit Featherlight Road Commuter';
shoeId = 13756;
shoePrice = 64;
shoeDesc = 'Ultra-breathable eucalyptus knit with bio-foam rebound midsole for natural kinetic stride.';
} else if (quizAnswers.routine === 'recovery') {
shoeName = 'SoleRoot CloudRecovery Post-Shift Slide';
shoeId = 13746;
shoePrice = 38;
shoeDesc = 'Deep anatomical arch cradle with orthopedic rebound foam for instant post-work decompression.';
}
var insoleName = 'SoleRoot Active Orthotic High-Arch Cork Insoles';
var insoleId = 13764;
var insolePrice = 24;
var insoleDesc = 'Molded natural cork arch support with shock-absorbing heel damper to offload plantar fascia tension.';
var accessoryName = 'SoleRoot Graduated Compression Bamboo Socks';
var accessoryId = 13762;
var accessoryPrice = 22;
var accessoryDesc = 'Targeted 15-20 mmHg venous return compression to prevent lower leg edema and arch fatigue.';
if (quizAnswers.pain === 'heel') {
accessoryName = 'SoleRoot Plantar Fasciitis Night Support Splint';
accessoryId = 13760;
accessoryPrice = 28;
accessoryDesc = 'Gentle nocturnal dorsiflexion tension that prevents micro-tearing and morning heel stiffness.';
}
bundleProductIds = [shoeId, insoleId, accessoryId];
var origTotal = shoePrice + insolePrice + accessoryPrice;
var discTotal = (origTotal * 0.85).toFixed(2);
document.getElementById('bundle-original-price').innerText = '$' + origTotal.toFixed(2);
document.getElementById('bundle-total-price').innerText = '$' + discTotal;
var grid = document.getElementById('prescribed-bundle-grid');
grid.innerHTML = `
${shoeName}
${shoeDesc}
${insoleName}
${insoleDesc}
${accessoryName}
${accessoryDesc}
`;
}
function addDiagnosticBundleToCart() {
var btn = document.getElementById(‘add-bundle-btn’);
btn.innerText = ‘Adding Bundle to Cart…’;
btn.disabled = true;
// Add first item, then forward to cart with coupon BUNDLE15
var primaryId = bundleProductIds[0] || 13758;
window.location.href = ‘/cart/?add-to-cart=’ + primaryId + ‘&apply_coupon=BUNDLE15’;
}
function saveQuizProfileEmail() {
var email = document.getElementById(‘quiz-email-input’).value.trim();
if (!email || email.indexOf(‘@’) === -1) {
alert(‘Please enter a valid email address.’);
return;
}
var formData = new FormData();
formData.append(‘action’, ‘soleroot_sync_lead’);
formData.append(’email’, email);
formData.append(‘source’, ‘diagnostic_quiz’);
formData.append(‘quiz_routine’, quizAnswers.routine);
formData.append(‘quiz_pain’, quizAnswers.pain);
fetch(‘/wp-admin/admin-ajax.php’, {
method: ‘POST’,
body: formData
}).then(function(r) { return r.json(); })
.then(function(data) {
document.getElementById(‘quiz-email-status’).style.display = ‘block’;
}).catch(function() {
document.getElementById(‘quiz-email-status’).style.display = ‘block’;
});
}
