Example #1
0
   <td width="115" align="left" valign="middle" class="brdr_2">Product Name</td>
   <td width="66" align="center" valign="middle" class="brdr_2">Unit Price</td>
   <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 {
Example #2
0
                                                                                            <td align="center" width="20%" valign="middle" bgcolor="#f68210"  class="brdr">Sub Category</td>
                                                                                            <td align="center" width="20%" valign="middle" bgcolor="#f68210"  class="brdr">Product Name</td>
                                                                                            <td align="center" width="15%" valign="middle" bgcolor="#f68210"  class="brdr">List Price</td>
                                                                                            <td align="center" width="5%" valign="middle" bgcolor="#f68210"  class="brdr">Discount(%)</td>
                                                                                            <td align="center" width="35%" valign="middle" bgcolor="#f68210"  class="brdr">Selling Price</td>                                                                            
                                                                                            <td align="center" width="" valign="middle" bgcolor="#f68210"  class="brdr">Action</td>
                                                                                        </tr>

                                                                                        <?php 
            $special_price = getSpecialProduct($cumpony_id);
            if (count($special_price) > 0) {
                $k = 1;
                foreach ($special_price as $Special_Product) {
                    $super_id = getsuper($Special_Product['sp_product_id']);
                    $cat_id = getcat($Special_Product['sp_product_id']);
                    $sub_id = getsub($Special_Product['sp_product_id']);
                    $super_name = getsuperN($super_id);
                    $cat_name = getcatN($cat_id);
                    $sub_name = getsubN($sub_id);
                    $special_id = $Special_Product['sp_id'];
                    $product_name = getorderProd($Special_Product['sp_product_id']);
                    $list_price = $Special_Product['sp_list_price'];
                    $discount_price = $Special_Product['sp_discount'];
                    $selling_price = $Special_Product['sp_special_price'];
                    ?>
 

                                                                                                <tr style="background-color: #F9F2DE;" id="test_<?php 
                    echo $cumpony_id;
                    ?>
_<?php 
Example #3
0
                                        <td width="80" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Quantity</td>
                                        <td width="100" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Unit Price</td>
                                        <td width="110" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Total</td>
                                    </tr>
                                    <?php 
$total = 0;
$i = 1;
foreach ($view_orders as $ord) {
    $rowColor = $i % 2 != 0 ? '#dfdfdf' : '#eeeeee';
    $rowColor1 = $i % 2 != 0 ? '#eeeeee' : '#f6f2f2';
    $prod_id = $ord['product_id'];
    $shipping = SelectAllAddress($ord['shipping_add_id']);
    $id = $ord['id'];
    $super_id = getsuper($prod_id);
    $cat_id = getcat($prod_id);
    $sub_id = getsub($prod_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;
    ?>
                                    <tr>
                                        <td width="40" align="left" valign="middle" bgcolor="<?php 
    echo $rowColor1;
    ?>
" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-left:20px;"><?php 
    echo $i;
    ?>
</td>
                                        <td width="400" align="center" valign="middle" bgcolor="<?php 
Example #4
0
" />     
            <div style="float: left;width: 100%;text-align: right;padding-bottom: 10px;"><input type="submit" name="Delete" value="REMOVE" style="background: #00979D;color: #FFF;padding: 5px 10px;border-radius: 7px;font-weight: bold;cursor: pointer;" /></div>
            <table align="left" width="100%">
                <tr bgcolor="#ff7e00">
                    <td>Product Name</td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 
Example #5
0
             $i++;
         }
     }
 } elseif (count($search) > 0) {
     $i = 1;
     for ($x = 2; $x <= (count($search) - 1); $x++) {
         $series[] = $x;
     }
     foreach ($search as $src) {
         $rowColor = ($i % 2 != 0) ? '#fcd9a9' : '#f9f2de';
         $rowColor1 = ($i % 2 != 0) ? '#fde8cb' : '#fbf7eb';
         $checked_quantity = '';
         $checked_total = '0.00';
         $super_id = getsuper($src['id']);
         $cat_id = getcat($src['id']);
         $sub_id = getsub($src['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) : '';
         ?> 
         <tr>
             <input type="hidden" name="count_pro" id="count_pro" value="<?php echo count($search); ?>" />
             <td bgcolor="<?php echo $rowColor; ?>" style="width:50px"><div id="j"></div></td>
             <td bgcolor="<?php echo $rowColor; ?>" style="text-align: left;" width="300" height="25">
                 <span><?php echo stripslashes($src['product_name']); ?></span></br>
                 <span class="trail" style="font-size: 11px;color: #2a9be3;"><?php echo $super_name . $cat_name . $sub_name; ?></span>    
             </td>
             <td bgcolor="<?php echo $rowColor1; ?>" style="text-align:right;padding-right: 35px"><?php echo $src['price']; ?><input type="hidden"  id="product_id_<?php echo $src['id']; ?>" name="price[]" value="<?php echo $src['price']; ?>" /></td>
             <td bgcolor="<?php echo $rowColor; ?>"><input class="proquan quantity_check" onchange="return myFunction('<?php echo $src['id']; ?>');" onkeyup="return quantity_val('<?php echo $src['id']; ?>');" price="<?php echo $src['price']; ?>" productid="<?php echo $src['sku_id']; ?>" name="quantity[]" id="quantity_<?php echo $src['id']; ?>"  value="" style="text-align: right;padding:1px;width:64px;border:1px solid #CCC;" type="text"></td>
             <td bgcolor="<?php echo $rowColor1; ?>" style="text-align:right;padding-right: 10px"><div class="sub_total_<?php echo $src['id']; ?>"><?php echo $checked_total; ?></div><input class="sub_total_txt_<?php echo $src['id']; ?>" id="sub_total_txt_id_<?php echo $src['id']; ?>" type="hidden" value="" /><input class="dummy1" id="dummy1" type="hidden" value="" /></td>
             <td align="center" bgcolor="<?php echo $rowColor; ?>" style="width:50px">