Skip to content
TheChatArchiveThe Chat Archive
Geminigemini-3.6-flash· GoogleHugging Face Arena WebDev Preferences (2026)

please add "Discounted Books" option to order all Srila Prabhupad books with all language

  1. User

    please add "Discounted Books" option to order all Srila Prabhupad books with all language

  2. Gemini Assistant

    Let's read the rest of src/data/translations.ts to see language setup and context.

    Let's check src/hooks/useLanguage.tsx or src/context/LanguageContext.tsx to see how the project handles context. Let's inspect src/context/LanguageContext.tsx if it exists.

    Let's read src/context/LanguageContext.tsx.

    Great! useLang() provides { lang, setLang, tr }.

    Now let's design the "Discounted Books" feature in detail:

    1. Books Data (src/data/booksData.ts):

    Let's create a rich catalog of Srila Prabhupada's books with discounts across all major languages! Available book languages:

    • English, Hindi (हिन्दी), Odia (ଓଡ଼ିଆ), Bengali (বাংলা), Tamil (தமிழ்), Telugu (తెలుగు), Gujarati (ગુજરાતી), Marathi (मराठी), Kannada (ಕನ್ನಡ), Malayalam (മലയാളം), Punjabi (ਪੰਜਾਬੀ).

    Book items with discounts (30% to 50% OFF):

    1. Srimad Bhagavatam Complete Set (18 Volumes)
      • Hardbound Deluxe Edition with original Sanskrit, Roman Transliteration, English/Language Translations, & Purports.
      • Original Price: ₹12,000 | Discounted Price: ₹7,999 (33% OFF)
    2. Sri Caitanya Caritamrita Set (9 Volumes)
      • Deluxe Hardbound Set containing Adi, Madhya, & Antya lila.
      • Original Price: ₹6,000 | Discounted Price: ₹3,999 (33% OFF)
    3. Bhagavad Gita As It Is (Hardcover Deluxe)
      • Complete original edition with 48 full-color illustrations.
      • Original Price: ₹395 | Discounted Price: ₹249 (37% OFF)
    4. KRSNA - The Supreme Personality of Godhead (2 Volume Set)
      • The summary study of Srimad Bhagavatam Canto 10 with rich paintings.
      • Original Price: ₹1,200 | Discounted Price: ₹799 (33% OFF)
    5. Srila Prabhupada Small Books Combo (Set of 12 Essential Books)
      • Includes: Science of Self Realization, Nectar of Instruction, Perfection of Yoga, Raja Vidya, Beyond Birth & Death, Sri Isopanisad, Easy Journey to Other Planets, Civilization and Transcendence, Path of Perfection, Chant and Be Happy, etc.
      • Original Price: ₹600 | Discounted Price: ₹349 (42% OFF)
    6. Complete Library Mega Combo Set
      • Includes Srimad Bhagavatam + Chaitanya Caritamrita + Bhagavad Gita + Krishna Book + Small Books Bundle.
      • Original Price: ₹20,000 | Discounted Price: ₹11,999 (40% OFF)
    7. Teachings of Lord Chaitanya & Nectar of Devotion Set
      • Essential study guide for bhakti yoga philosophy.
      • Original Price: ₹750 | Discounted Price: ₹499 (33% OFF)

    Features of the Discounted Books section:

    • Language Filter Tabs: Filter available books by language (All, English, Hindi, Odia, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, etc.).
    • Book Cards:
      • Image / Icon illustration with badge e.g. "40% OFF", "Best Seller".
      • Title & Description in current app language.
      • Slashed original price & highlighted discounted price.
      • Free Home Delivery badge / COD available indicator.
      • "Order Now" button.
    • Order Modal / Direct Order Form:
      • Select desired language for the book set.
      • Quantity picker.
      • Order details: Full Name, Phone Number, Full Shipping Address, City, Pincode.
      • Order via WhatsApp Direct Order (opens WhatsApp with pre-filled details for instant processing) OR Submit Direct Order with instant order receipt & confirmation dialog.
    • Helpline / Bulk Order Banner:
      • Contact button for Temples, Libraries, Gifting & Bulk Orders with direct WhatsApp / Call links.

    Let's add translation keys to src/data/translations.ts for English, Hindi, and Odia, so the whole Discounted Books section is fully translated in EN, HI, and OD!

    Let's edit src/data/translations.ts first.

    Let's update src/data/translations.ts to add keys for Discounted Books, e.g.: discountedBooks, orderBooks, orderBooksDesc, bookStore, allLanguagesAvailable, orderNow, freeDelivery, selectLanguage, enterDetails, fullName, phone, address, pincode, placeOrder, orderSuccessTitle, orderSuccessMsg, contactSupport, bulkOrderInquiry, etc.

    Let's edit src/data/translations.ts to include these.

    Now let's create src/data/booksData.ts which holds the book catalog with available languages, prices, discounts, images, and descriptions.

    Now let's create the BooksScreen.tsx component that renders the book store, language filters, order modal, WhatsApp order, and direct confirmation.

    Let's design src/components/BooksScreen.tsx carefully:

    • Top banner highlighting "30%-50% Discount on Srila Prabhupada Books in All Languages"
    • Language Filter pills (All, English, Hindi, Odia, Bengali, Tamil, Telugu, Gujarati, Marathi, Kannada, Malayalam)
    • Grid / List of book cards:
      • Badge (e.g. "30% - 50% OFF")
      • Title, Subtitle, Description in current UI language (with fallbacks)
      • Price tags: Slashed original price + Highlighted discounted price
      • Available Languages tags
      • Free Delivery / COD badges
      • "Order Now" button
    • Order Modal when user taps "Order Now":
      • Selected book info
      • Select Book Language dropdown (English, Hindi, Odia, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, etc.)
      • Quantity selector (- / +)
      • Auto-calculated total price
      • Delivery Form: Full Name, Phone Number, Full Address, Pincode
      • Two ordering actions:
        1. "Order via WhatsApp 📲": Constructs a formatted WhatsApp message with Book Name, Selected Language, Quantity, Total Amount, Name, Address, Pincode & opens https://wa.me/?text=... (or opens WhatsApp order handler).
        2. "Confirm Order": Submits local order request and displays a beautiful success modal/receipt with confirmation ID.
    • Bulk Order / Helpline Card for temples, libraries, and large distribution.

    Let's create src/components/BooksScreen.tsx.

    Now let's check HomeScreen.tsx, Header.tsx, SideMenu.tsx, and App.tsx to add links/navigation to "Discounted Books"!

    Let's read src/components/HomeScreen.tsx to see where to add a "Discounted Books" banner / button.

    Let's read lines 121-184 of src/components/HomeScreen.tsx.

    Let's update HomeScreen.tsx to add onViewBooks: () => void prop and render a prominent Discounted Books Promo Card / Link on the home screen!

    Let's inspect SideMenu.tsx as well.

    Let's edit HomeScreen.tsx to add onViewBooks: () => void and a Discounted Books feature card.

    Now let's update SideMenu.tsx to include "Discounted Books 📚" in the drawer options. Let's edit SideMenu.tsx.

    Now let's update App.tsx to handle the "books" screen, add bottom navigation button for "Books", and connect onViewBooks.

    Let's read src/App.tsx first to make sure we make precise edits.

    Let's read lines 121-189 of src/App.tsx.

    Let's edit App.tsx to integrate BooksScreen component and add a 4th tab "Books 📚" in bottom nav.

    Let's create the updated App.tsx.

    Now let's check Header.tsx to see if screen title mapping needs books label. Let's read src/components/Header.tsx.

    Let's read lines 61-121 of src/components/Header.tsx.

    Let's edit Header.tsx to handle screen === "books" in the subtitle!

    Now let's run build_project to test if all components and typescript types compile cleanly!

    The project builds cleanly without any errors or warnings!

    Let's review what was created and updated:

    1. src/data/booksData.ts:
      • Contains a rich catalog of Srila Prabhupada's authentic BBT books with 30%-50% discounts.
      • Srimad Bhagavatam 18-Vol Complete Set, Sri Caitanya Caritamrita 9-Vol Set, Bhagavad Gita As It Is Deluxe, Krishna Book Set, Essential Small Books Bundle (12 Books), Complete Library Mega Combo Set, and Teachings of Lord Chaitanya & Nectar of Devotion Set.
      • Languages supported: English, Hindi (हिन्दी), Odia (ଓଡ଼ିଆ), Bengali (বাংলা), Tamil (தமிழ்), Telugu (తెలుగు), Gujarati (ગુજરાતી), Marathi (मराठी), Kannada (ಕನ್ನಡ), Malayalam (മലയാളം), Punjabi (ਪੰਜਾਬੀ).
    2. src/components/BooksScreen.tsx:
      • Header with back button & discount banner.
      • Language Filter Pills to filter sets by language.
      • Detailed Book Cards showing original price, discounted price, percentage OFF, free delivery badge, volumes info, available languages, and "Order Now" button.
      • Interactive Order Modal:
        • Language selection dropdown for the specific book set.
        • Quantity picker (-/+) with instant total price calculation.
        • Customer shipping form (Full Name, Phone/WhatsApp, Shipping Address, Pincode).
        • Order via WhatsApp button (opens pre-filled WhatsApp message with order summary and delivery address).
        • Confirm Order button (generates a unique Order ID and displays instant confirmation receipt).
      • Bulk / Temple / Library order inquiry banner with direct support link.
    3. src/data/translations.ts:
      • Added translations for all "Discounted Books" UI labels across English, Hindi, and Odia.
    4. HomeScreen.tsx, SideMenu.tsx, Header.tsx, and App.tsx:
      • Added prominent Discounted Books promotional card on Home screen.
      • Added "Discounted Books 📚" menu item in the drawer menu.
      • Added "Books 📚" bottom navigation bar item with badge indicator.

    Files built: src/data/translations.ts, src/data/booksData.ts, src/components/BooksScreen.tsx, src/components/HomeScreen.tsx, src/components/SideMenu.tsx, src/App.tsx, src/components/Header.tsx

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.