File: /var/www/selfanalyse/wp-content/plugins/psychometrics/psy_plans.php
<?php
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
global $wpdb;
$PSY_PLANS = $wpdb->prefix . PSY_PLANS;
//get plans
$getPlans = $wpdb->get_results("SELECT plan_id, plan_name, plan_price, plan_short_desc,plan_image FROM $PSY_PLANS where status='1' order by display_order asc");
?>
<!-- PLANS PAGE SECTION -->
<section class="all-pages-header-section">
<div class="all-pages-header-bg" style="background: url(/wp-content/themes/psychometrics/images/new/all-page-header-bg.png) center center;"></div>
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="all-pages-header-box">
<h4><a href="">Home</a> <i class="fas fa-chevron-right"></i> Buy Plan</h4>
</div>
</div>
</div>
</div>
</section>
<section class="plan-page-section">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<h1 class="plan-page-head">Test Packages Offered</h1>
<p class="plan-page-para">The tests have been combined into different packages for ease of use for different users. The tests can be taken individually as well. For ease of use for different users and to get relative inferences during one to one counselling.</p>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<?php foreach ($getPlans as $pl) { ?>
<div class="plan-page-box">
<div class="plan-page-img-box">
<img src="/wp-content/themes/psychometrics/images/<?php echo $pl->plan_image; ?>" alt="">
<h4><?php echo $pl->plan_name; ?></h4>
</div>
<?php echo $pl->plan_short_desc; ?>
<div class="plan-page-details-box">
<h6>₹ <?php echo $pl->plan_price; ?> /-</h6>
<form action="<?php echo ROOT_LINK . 'checkout' ?>" method="post">
<input type="hidden" name="ref_id" value="<?php echo $pl->plan_id; ?>">
<input type="hidden" name="txn_type" value="P">
<button type="submit">Buy Now</button>
</form>
</div>
</div>
<?php } ?>
<h5 class="notes-plans">*Note: All tests must be taken within 15 days from the date of purchase.</h5>
</div>
</div>
</div>
</section>
<!-- END PLANS PAGE SECTION -->
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('.plan-page-box ul').addClass('plan-page-ul');
});
</script>