Exemplo n.º 1
0
   <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';       
                   }
                   $tax         = ($tax_line * ($price[0]['sub_total']/100));
Exemplo n.º 2
0
 </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')
                   {
                   $tax_line = '0';     
Exemplo n.º 3
0
                    <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 
    echo $super_name . $cat_name . $sub_name;
    ?>
</span>  
                    </td>
Exemplo n.º 4
0
 } 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">
                 <div id="supply_hdr" class="btn_addcart button_fixed"  >
                     <img src="images/add_cart_bg.png" onclick="return add_cart('<?php echo $src['id']; ?>', '<?php echo $prd_id; ?>');" class="click_<?php echo $src['id']; ?>" id="click_<?php echo $src['id']; ?>" style="cursor: pointer;" /><img class="click_i_<?php echo $src['id']; ?>" src="images/add_to_cart.png" style="display: none;"/>
                 </div>
Exemplo n.º 5
0
                 </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>  &raquo;  </span><?php echo $cat_name; ?><span>  &raquo;  </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&nbsp;<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&nbsp;</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&nbsp;</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&nbsp;</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>
                 </tr>
Exemplo n.º 6
0
     <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>
             <div style="width:15%;float: left;"><?php echo $sell_price; ?></div>