$sprice_dprice[$newprice['sp_product_id']] = $newprice['sp_special_price']; } $user_checked_product = get_checked_item($_SESSION['sohorepro_userid']); //print_r($special_pricelist); $checked_product = array(); $checked_price = array(); foreach ($user_checked_product as $checked) { $checked_product[] = $checked['product_id']; $checked_price[$checked['product_id']] = $checked['quantity']; $checked_sub[$checked['product_id']] = $checked['sub_total']; } $user_fav_product = get_fav_item($_SESSION['sohorepro_companyid']); //print_r($user_fav_product); $fav_product = array(); foreach ($user_fav_product as $fav) { $fav_product[$fav['product_id']] = $fav['product_id']; } ?> <?php if ($result == "success") { ?> <div style="color:#007F2A; text-align:center; padding-bottom:10px;">Your order is placing</div> <script>setTimeout("location.href=\'get_order.php\'", 1000);</script> <?php } elseif ($result == "failure") {
include './config.php'; $Super = getSuperCategory(); $cumpony_id = $_POST['company_id']; $special_pricelist = get_special_price($cumpony_id); $sprice_product = array(); $sprice_dprice = array(); foreach ($special_pricelist as $newprice) { $sprice_product[] = $newprice['sp_product_id']; $sprice_dprice[$newprice['sp_product_id']] = array(); $sprice_dprice[$newprice['sp_product_id']][] = $newprice['sp_special_price']; $sprice_dprice[$newprice['sp_product_id']][] = $newprice['sp_discount']; $sprice_dprice[$newprice['sp_product_id']][] = $newprice['sp_list_price']; $sprice_dprice[$newprice['sp_product_id']][] = $newprice['sp_id']; } $user_fav_product = get_fav_item($cumpony_id); //print_r($user_fav_product); $fav_product = array(); foreach ($user_fav_product as $fav) { $fav_product[$fav['product_id']] = $fav['product_id']; } foreach ($Super as $super) { $c_id = $super['id']; $Category = getCategoryU($c_id); ?> <div class="super_cat" style="clear:both;" id="acc"><h1 title="Super Category" alt="Super Category"><?php echo $super['category_name']; ?> </h1></div> <ul class="acc sub_cat" id="acc" style="display:none;"> <?php