query("SELECT razorpay_key, site_name, primary_color, secondary_color FROM theme_settings WHERE id=1");
$webSet = $stmtSet->fetch(PDO::FETCH_ASSOC);
$razorpay_key = $webSet['razorpay_key'] ?? '';
$site_name = $webSet['site_name'] ?? 'SejiStore';
$primary_color = $webSet['primary_color'] ?? '#16a34a';
$secondary_color = $webSet['secondary_color'] ?? '#dcfce7';
} catch (Exception $e) {
$razorpay_key = '';
$site_name = 'SejiStore';
$primary_color = '#16a34a';
$secondary_color = '#dcfce7';
}
// --- 3. FETCH HERO IMAGES (COLLAGE) ---
try {
$stmtHero = $pdo->query("SELECT image FROM products WHERE image != '' ORDER BY RAND() LIMIT 4");
$heroImages = $stmtHero->fetchAll(PDO::FETCH_ASSOC);
} catch (Exception $e) { $heroImages = []; }
// --- 4. FETCH LATEST PRODUCTS ---
try {
$stmt = $pdo->query("SELECT * FROM products ORDER BY id DESC LIMIT 8");
$products = $stmt->fetchAll(PDO::FETCH_ASSOC);
} catch (Exception $e) { $products = []; }
// --- 5. FETCH CATEGORIES (DYNAMIC) ---
try {
$catStmt = $pdo->query("SELECT * FROM categories WHERE status = 1 ORDER BY id DESC LIMIT 6");
$categories = $catStmt->fetchAll(PDO::FETCH_ASSOC);
} catch (Exception $e) { $categories = []; }
// --- 6. CHECK LOGIN STATUS (For JS) ---
$is_logged_in = isset($_SESSION['user_id']) ? 'true' : 'false';
?>
Our Satisfied Customers Most popular items this week ... No products found in database. Add products from Admin Panel. Explore SejiStore - smart, secure, and affordable. All files are 100% legal under GPL license. Get updated files automatically. Premium themes starting at just ₹99. 100% Virus free and clean files. Get access to free files anytime. Untouched original source codes.Access All Products
With Just One Click
64K+
Top Picks Just For You
Why We Are Best?
LEGAL DOWNLOADS
REGULAR UPDATES
BEST OFFERS
GENUINE PRODUCTS
FREE ACCESS
ORIGINAL FILES
Processing your order...
Your order has been confirmed and files are being prepared for download.
Order ID: #ORD-
Download links and invoice have been sent to your email.