<td width="44" align="center" valign="middle" class="brdr_2">Qty</td> <td width="64" align="center" valign="middle" class="brdr_2">Line Price</td> <td width="243" align="left" valign="middle" class="brdr_2">Shipping Address</td> <td width="97" align="center" valign="middle" class="brdr_2">Option</td> </tr> <?php $i = 1; if (count($checkout_product) > 0) { foreach ($checkout_product as $chk) { $rowColor = ($i % 2 != 0) ? '#ffeee1' : '#fff6f0'; $id = $chk['id']; $super_id = getsuper($chk['product_id']); $cat_id = getcat($chk['product_id']); $sub_id = getsub($chk['product_id']); $super_name = getsuperN($super_id); $cat_name = getcatN($cat_id); $sub_name = getsubN($sub_id); $product_id = $chk['product_id']; $_SESSION['product_id'] = $chk['product_id']; $sku_id = getSku($chk['product_id']); $product_name = getProName($chk['product_id']); $quantity = $chk['quantity']; $unit_price = $chk['unit_price']; $price = getPriceCkt($user_id); $tax_status = getTaxStatusChk($user_id); if($tax_status == '1') { $tax_line = '8.875'; } else { $tax_line = '0'; }
<td width="229" align="left" valign="middle" class="brdr_2">Shipping Address</td> <td width="90" align="center" valign="middle" class="brdr_2">Option</td> </tr> <?php $i = 1; if (count($checkout_product) > 0) { foreach ($checkout_product as $chk) { $rowColor = ($i % 2 != 0) ? '#ffeee1' : '#fff6f0'; $id = $chk['id']; $user_id = $chk['user_id']; $comp_id = COMPID($user_id); $super_id = getsuper($chk['product_id']); $cat_id = getcat($chk['product_id']); $sub_id = getsub($chk['product_id']); $super_name = (getsuperN($super_id) != '') ? getsuperN($super_id) : ''; $cat_name_pre = (getcatN($cat_id) != '') ? getcatN($cat_id) : ''; $cat_name = ($cat_name_pre != '') ? '>>'.$cat_name_pre : $cat_name_pre ; $sub_name_pre = (getsubN($sub_id) != '') ? getsubN($sub_id):''; $sub_name = ($sub_name != '') ? '>>'.$sub_name_pre : $sub_name_pre; $product_id = $chk['product_id']; $_SESSION['product_id'] = $chk['product_id']; $sku_id = getSku($chk['product_id']); $product_name = getProName($chk['product_id']); $tail = $product_name; $quantity = $chk['quantity']; $unit_price = $chk['unit_price']; $price = getPriceCkt($user_id); $cart_val = totalCart($user_id); $tax_status = getTaxStatusChk($comp_id); $tax_value = TaxValue(); if($tax_status == '1')
<td align="left" valign="middle" style="padding-left:20px;"> </td> <td height="60" width="170" align="left" valign="middle"><a href="import_products.php"><img src="images/btn_importproducts.png" style="cursor:pointer;padding-right: 12px;" alt="Import Products" title="Import Products"/></a></td> <td height="60" align="left" valign="middle"><span style="width: 215px;float: left;font-size: 12px;">Please use this Excel file as a template or else your import may not work <a href="excel_template/product_template.xlsx">Download Template</a></span></td> <td height="60" align="right" valign="middle"><a href="add_new_products.php"><img src="images/btn_addproducts.png" width="123" height="34" alt="Add Product" title="Add Product"/></a></td> </tr> </table> </td> </tr> <tr> <td align="right" valign="top"> <?php if ($_GET['filter'] == '1') { $super_name = getsuperN($_GET['superc_id']); $cat_name = getcatN($_GET['cat_id']); $sub_name = getsubN($_GET['sub_id']); ?> <!-- Filter Start --> <table width="759" border="0" cellspacing="0" cellpadding="0" > <tr> <td height="38" colspan="7" align="left" valign="middle" class="add_title">Filtered Results : <?php echo $super_name?><span> » </span><?php echo $cat_name; ?><span> » </span><?php echo $sub_name; ?></td> </tr> <tr> <td width="20" height="28" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e">S.no</td> <td width="350" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e"><a style="text-decoration: none; color: #fff;" href="products.php?sort=<?php echo $sort_pn; ?>">Product Name <img src="images/<?php echo $sort_pn_img ; ?>.png" alt="" width="10px" height="5px"/></a></td> <td width="100" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e"><a style="text-decoration: none; color: #fff;" href="products.php?sort=<?php echo $sort_price; ?>">List Price </a></td> <td width="100" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e"><a style="text-decoration: none; color: #fff;" href="products.php?sort=<?php echo $sort_price; ?>">Discount </a></td> <td width="100" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e"><a style="text-decoration: none; color: #fff;" href="products.php?sort=<?php echo $sort_price; ?>">Sell Price </a></td> <td width="25" height="28" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e">status</td> <td width="64" height="28" align="center" valign="middle" class="td_brdr" bgcolor="#f99b3e">action</td>
<table align="left" width="100%"> <tr bgcolor="#ff7e00"> <td>Product Name</td> <td> </td> </tr> <?php $i = 1; foreach ($editfav as $fav) { $rowColor = $i % 2 != 0 ? '#ffeee1' : '#fff6f0'; $id = $fav['id']; $product_name = getProName($fav['product_id']); $super_id = getsuper($fav['product_id']); $cat_id = getcat($fav['product_id']); $sub_id = getsub($fav['product_id']); $super_name = getsuperN($super_id) != '' ? getsuperN($super_id) : ''; $cat_name_pre = getcatN($cat_id) != '' ? getcatN($cat_id) : ''; $cat_name = $cat_name_pre != '' ? '>>' . $cat_name_pre : $cat_name_pre; $sub_name_pre = getsubN($sub_id) != '' ? getsubN($sub_id) : ''; $sub_name = $sub_name_pre != '' ? '>>' . $sub_name_pre : $sub_name_pre; ?> <tr bgcolor="<?php echo $rowColor; ?> "> <td align="left" valign="middle" class="brdr_1" style="font-size: 15px;"> <?php echo $product_name . '<br>'; ?> <span class="trail" style="font-size: 11px;color: #2a9be3;"><?php echo $super_name . $cat_name . $sub_name; ?>
<div style="width:12%;float: left;">Sub Cate</div> <div style="width:19%;float: left;">Product Name</div> <div style="width:12%;float: left;">List Price</div> <div style="width:10%;float: left;">%</div> <div style="width:15%;float: left;">Selling Price</div> </div> <?php $favorites = ALLFAV($company_id); if (count($favorites) > 0) { $k = 1; foreach ($favorites as $Special_Product) { $super_id = getsuper($Special_Product['product_id']); $cat_id = getcat($Special_Product['product_id']); $sub_id = getsub($Special_Product['product_id']); $super_name = (getsuperN($super_id) == '') ? '--' : getsuperN($super_id); $cat_name = (getcatN($cat_id) == '') ? '--' : getcatN($cat_id); $sub_name = (getsubN($sub_id) == '') ? '--' : getsubN($sub_id); $special_id = $Special_Product['sp_id']; $product_name = (getorderProd($Special_Product['product_id']) == '') ? '--' : getorderProd($Special_Product['product_id']); $list_price = $Special_Product['list_price']; $discount_price = $Special_Product['discount_price']; $sell_price = $Special_Product['sell_price']; ?> <div style="width: 99.5%;float: left;margin-bottom: 5px;"> <div style="width:7%;float: left;"><?php echo $k; ?></div> <div style="width:12%;float: left;"><?php echo $super_name; ?></div> <div style="width:12%;float: left;"><?php echo $cat_name; ?></div> <div style="width:12%;float: left;"><?php echo $sub_name; ?></div> <div style="width:19%;float: left;"><?php echo $product_name; ?></div> <div style="width:12%;float: left;"><?php echo $list_price; ?></div> <div style="width:10%;float: left;"><?php echo $discount_price; ?></div>