ifixkart-storefront/lib/faqDefaults.ts

218 lines
9.9 KiB
TypeScript

export interface FaqItem {
question: string;
answer: string;
}
export interface FaqCategory {
slug: string;
title: string;
description?: string;
faqs: FaqItem[];
}
export interface FaqPageData {
title: string;
subtitle: string;
categories: FaqCategory[];
}
export const DEFAULT_FAQ_PAGE: FaqPageData = {
title: 'FAQs',
subtitle: 'Search related questions and browse answers by category.',
categories: [
{
slug: 'refurbished-mobiles',
title: 'Refurbished Mobiles FAQs',
description: 'Orders, payments, warranty, and delivery for certified refurbished phones.',
faqs: [
{
question: 'Will I get an invoice for my order?',
answer:
'Yes. A printed invoice is packed with your device, and a soft copy is emailed after dispatch. If you do not receive it, write to support@ifixkart.com with your order number and we will resend the invoice.',
},
{
question: 'Can I split the payment across different modes?',
answer:
'Part-payment across cards, UPI, and wallets is not available for refurbished mobiles. Please complete the order with a single payment method.',
},
{
question: 'What payment modes are available for refurbished mobiles?',
answer:
'You can pay with Visa and Mastercard debit or credit cards, UPI, net banking, RuPay, and Razorpay-supported wallets. Cash on delivery may not be available on every listing.',
},
{
question: 'Will I get a warranty card with the product?',
answer:
'A warranty card is included with the delivery. Register the warranty within 15 days of purchase by emailing returns@ifixkart.com with your invoice and device details. Need help? Call our support team.',
},
{
question: 'Do these products have any major or minor functional defects?',
answer:
'Every refurbished phone is tested across a multi-point quality checklist covering display, battery, cameras, charging, buttons, and connectivity. We repair or replace failing parts before the device is listed for sale.',
},
{
question: 'Is there a warranty on refurbished products? How do I claim it?',
answer:
'Yes. Refurbished smartphones include a 6-month iFixKart warranty. Email returns@ifixkart.com with the invoice and a short description of the issue. Our team will guide you through pickup, diagnosis, and replacement or repair.',
},
{
question: 'Is there a delivery charge?',
answer:
'Standard delivery on refurbished mobile orders is free across serviceable pincodes. Remote locations may show a small courier fee at checkout before you pay.',
},
{
question: 'How will I know if my order has been confirmed?',
answer:
'You receive a confirmation email and SMS as soon as the order is placed. After dispatch you get a second message with the courier tracking ID.',
},
{
question: 'How will my order be delivered?',
answer:
'Orders are packed at our warehouse and handed to partner courier services for doorstep delivery. You can track the shipment from Track Order or your account.',
},
{
question: 'Whom should I contact if I have concerns with my order?',
answer:
'For warranty claims write to returns@ifixkart.com. For order, invoice, or delivery questions write to support@ifixkart.com or use the Contact Us page.',
},
],
},
{
slug: 'mobile-repair',
title: 'Mobile Repair FAQs',
description: 'Doorstep and workshop repair booking, parts, and warranty.',
faqs: [
{
question: 'What happens after I place a repair booking?',
answer:
'We confirm your slot, assign a technician, and share the visit details on SMS and email. The technician repairs the device at your address or at the nearest iFixKart workshop, depending on the job.',
},
{
question: 'How do I pay for the repair?',
answer:
'A small advance may be collected online to confirm the slot. The remaining amount is due after the repair is completed and you have checked the device. We accept UPI, cards, and cash.',
},
{
question: 'Is there a warranty on replaced parts?',
answer:
'Screen, battery, and most spare-part replacements include a 6-month replacement warranty. Physical damage, liquid damage, and unauthorized third-party repairs are not covered.',
},
{
question: 'Will my data remain secure during repair?',
answer:
'Repairs are done in front of you whenever the job is on-site. Technicians do not need your lock screen password except when a functional test requires it, and we never copy personal data.',
},
{
question: 'How long does a typical repair take?',
answer:
'Most screen and battery jobs finish in under 45 minutes when parts are in stock. Complex board-level repairs may need a workshop visit and extra time, which we confirm before starting.',
},
],
},
{
slug: 'mobile-exchange',
title: 'Mobile Exchange FAQs',
description: 'Upgrade your phone by exchanging your current device.',
faqs: [
{
question: 'How does mobile exchange work on iFixKart?',
answer:
'Select the new phone, add your current device for exchange, answer a short condition questionnaire, and get an instant quote. The exchange value is deducted from the payable amount at checkout.',
},
{
question: 'When is my old phone picked up?',
answer:
'Pickup is scheduled with the delivery of your new device, or in a separate slot if you chose that option. Please keep the original box, charger, and invoice handy if you still have them.',
},
{
question: 'What if the final quote is lower than the online estimate?',
answer:
'The final quote depends on a physical check. If the condition differs from what you declared, we share a revised value. You can accept it, decline the exchange, or cancel the new-device order as per policy.',
},
{
question: 'Can I exchange a phone that is locked or not working?',
answer:
'Dead, locked, or liquid-damaged devices may still be eligible at a reduced value. Mention the condition honestly in the questionnaire so the quote stays accurate.',
},
],
},
{
slug: 'mobile-accessories',
title: 'Mobile Accessories FAQs',
description: 'Chargers, cases, audio, and spare accessories.',
faqs: [
{
question: 'Are accessories covered by warranty?',
answer:
'Branded accessories follow the manufacturer warranty printed on the pack. iFixKart-certified spare parts such as batteries and charging ports follow the warranty shown on the product page.',
},
{
question: 'How do I know an accessory will fit my model?',
answer:
'Open the product page and check the compatible models list. You can also search by your phone model in the shop to see matching cases, cables, and spare parts.',
},
{
question: 'Can I return an accessory if it does not fit?',
answer:
'Unused accessories in original packing can be returned within the return window shown at checkout. Opened or used items may be ineligible except when the product is defective.',
},
{
question: 'Do you sell original OEM spare parts?',
answer:
'Yes. We stock certified OEM and high-grade compatible parts for screens, batteries, charging ports, and more. The product title and description state the grade before you buy.',
},
],
},
{
slug: 'buyback',
title: 'Buyback FAQs',
description: 'Sell your old phone, laptop, or wearable to iFixKart.',
faqs: [
{
question: 'How do I sell my device to iFixKart?',
answer:
'Choose your brand and model, answer the condition questions, and get an instant price. Confirm the quote, schedule a pickup or store drop-off, and receive payment after the device is verified.',
},
{
question: 'When do I receive the payment?',
answer:
'After the physical inspection matches your declaration, payment is issued to your UPI or bank account, usually within 24 hours of pickup approval.',
},
{
question: 'What should I do before handing over the device?',
answer:
'Back up your data, sign out of iCloud, Google, and Find My Device, factory-reset the phone, and remove the SIM and memory card. Locked accounts can delay or cancel the buyback.',
},
{
question: 'Can I cancel a buyback after pickup is booked?',
answer:
'Yes. You can cancel from your account or by contacting support before the executive collects the device. After pickup, cancellation depends on whether inspection has already started.',
},
],
},
],
};
export function slugifyFaq(value: string): string {
return String(value || '')
.trim()
.toLowerCase()
.replace(/&/g, 'and')
.replace(/[^a-z0-9]+/g, '-')
.replace(/^-+|-+$/g, '');
}
export function matchFaqCategory(
categories: FaqCategory[],
slug?: string | null
): FaqCategory | null {
if (!slug) return null;
const needle = slugifyFaq(slug);
return (
categories.find((c) => slugifyFaq(c.slug) === needle) ||
categories.find((c) => slugifyFaq(c.title) === needle) ||
categories.find((c) => slugifyFaq(c.slug).includes(needle)) ||
categories.find((c) => needle.includes(slugifyFaq(c.slug))) ||
null
);
}