Example #1
0
                                                                    
                                                                    
                                                                    <div class="add-to-links">
                                                                        <a style="display:none;" href="girem-masen-poka.html"></a>
                                                                        <!-- QUICLVIEW -->
                                                                    </div>

                                                                    <div class="other-infor">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="ltabs-item new-ltabs-item respl-item">
                                                                <div class="item-inner">
                                                                    <div class="w-image-box">
                                                                        <a class="item-image" href="<?php 
echo product_url(8520, 'Eurosonic 4.1 Litre Electric Stainless Kettle');
?>
">
                                                                            <img title="" alt="Girem masen poka na" src="<?php 
echo base_url();
?>
images/new_images/home/topselling/electric_kettle.jpg" />
                                                                        </a>
                                                                    </div>
                                                                    
                                                                    
                                                                    <div class="add-to-links">
                                                                        <a style="display:none;" href="girem-masen-poka.html"></a>
                                                                        <!-- QUICLVIEW -->
                                                                    </div>
Example #2
0
	
				</h1>
			</div>
		</div>
		<hr class="">
		<div class="well">

			<div id="alert"></div>

			<div class="row">
				<?php 
$num_plus = 0;
foreach ($this->cart->contents() as $items) {
    $product = $products["{$items['id']}"];
    $path = "/" . $product['product_image_path'];
    $url = product_url($product);
    $image_properties = array('src' => "{$path}", 'class' => 'img-responsive');
    ?>
			        <div class="col-md-12">
			        	<div class="pull-right">
							<h4><a href= <?php 
    echo site_url("cart/remove/{$items['rowid']}");
    ?>
>Remove <i class="fa fa-times"></i></a></h4>
						</div>
			        	<div class="col-md-2 col-lg-2 ">
							<?php 
    echo anchor($url, img($image_properties));
    ?>
						</div>
						<div class="col-md-10">
			</div>
		</div>
<?php 
}
?>
		<div class="row top-bottom-space">
			<div class="col-md-12">
				<h3 class="text-center play"> Last Order : 
				<?php 
foreach ($latest_order as $key => $order) {
    ?>
					<?php 
    foreach ($order['order_items'] as $key => $items) {
        ?>
						<?php 
        $url = product_url($items['product']);
        ?>
						<a href= <?php 
        echo $url;
        ?>
 ><?php 
        echo $items['product']['product_name'];
        ?>
</a>,
					<?php 
    }
    ?>
				<?php 
}
?>
				<?php 
Example #4
0
				</div>
				<div class="clearfix"></div>
			</div>
		</li>
	<?php 
        foreach ($productArr as $productId => $productVal) {
            ?>
			
			<li class="sp_grid"> 
				<a href="<?php 
            echo product_url($productId, $productVal['productName']);
            ?>
" class="search_text"></a>
				<div class="col-sm-12 search-main">
					<a href="<?php 
            echo product_url($productId, $productVal['productName']);
            ?>
" class="search_text">
						<div class="col-sm-12 padding_left_zero padding_right_zero auto-search-img" style="margin:0 auto;">
							<?php 
            if (!empty($productVal['productImage']) && file_exists('uploads/product/thumb500_500/' . $productVal['productImage'])) {
                ?>
								<img src="<?php 
                echo base_url() . 'uploads/product/thumb500_500/' . $productVal['productImage'];
                ?>
" width="90" style="margin: 5px; max-height:90px;">
							<?php 
            } elseif (!empty($productVal['productImage']) && file_exists('uploads/product/' . $productVal['productImage'])) {
                ?>
								<img src="<?php 
                echo base_url() . 'uploads/product/' . $productVal['productImage'];
Example #5
0
                  <div class="soldby-div-list col-sm-8 padding_left_zero">
                  	<label>Sold By</label>
                    <p class="solder-name-list">
					<?php 
            echo $row->organizationName;
            ?>
					</p>
                  </div>

				  <?php 
        }
        ?>
                  <div class="actions col-sm-4 pull-right">
                    <!--<button class="button btn-cart ajx-cart" title="Add to Cart" type="button"><span>Add to Cart</span></button>-->
                    <a class="btn button btn-show-more ajx-cart pull-right" href="<?php 
        echo product_url($row->productId, $row->productName);
        ?>
" title="<?php 
        echo $row->productName;
        ?>
" type="button"><span>See More</span></a>
                     </div>
                </div>
              </li>
			  <hr />
		<?php 
    }
} else {
    if ($page_number == 0) {
        ?>
		<li class="item item-animate last">
Example #6
0
            ?>
                  <div class="soldby-div-list col-sm-8 padding_left_zero">
                  	<label>Sold By</label>
                    <p class="solder-name-list">
					<?php 
            echo $row['organizationName'];
            ?>
					</p>
                  </div>
				  <?php 
        }
        ?>
                  <div class="actions col-sm-4 pull-right">
                    <!--<button class="button btn-cart ajx-cart" title="Add to Cart" type="button"><span>Add to Cart</span></button>-->
                    <a class="btn button btn-show-more ajx-cart pull-right" href="<?php 
        echo product_url($row['productId'], $row['productName']);
        ?>
" title="<?php 
        echo $row['productName'];
        ?>
" type="button"><span>See More</span></a>
                     </div>
                </div>
              </li>
			  <hr />
		<?php 
    }
} else {
    if ($page_number == 0) {
        ?>
		<li class="item item-animate last">
Example #7
0
 function product($id, $url = null)
 {
     $total_products = $this->database->GetMaxProductID();
     $url = $this->beautify($url, '_');
     $result = $this->database->GetProductById($id);
     if ($result) {
         $next = $prev = 0;
         $this->GetNextPreviousIds($result['product_id'], $next, $prev, $total_products);
         $data['product'] = $result;
         $data['total_products'] = $total_products;
         $data['product_state'] = $result['product_state'];
         $data['next_id'] = product_url($this->database->GetProductById($next), false);
         $data['prev_id'] = product_url($this->database->GetProductById($prev), false);
         $data['small_stock'] = "";
         $data['medium_stock'] = "";
         $data['large_stock'] = "";
         $data['xl_stock'] = "";
         $data['size_chart'] = site_url($this->config->item('size_chart'));
         $data['images'] = get_product_image($result['product_id']);
         if ($result['product_count_small'] <= 0) {
             $data['small_stock'] = 'disabled';
         }
         if ($result['product_count_medium'] <= 0) {
             $data['medium_stock'] = 'disabled';
         }
         if ($result['product_count_large'] <= 0) {
             $data['large_stock'] = 'disabled';
         }
         if ($result['product_count_xl'] <= 0) {
             $data['xl_stock'] = 'disabled';
         }
         //Generate Suggestions
         $data['suggested_products'] = $this->GenerateSuggestions($result, 3);
         $data['recently_viewed'] = $this->GetRecentlyViewed();
         $this->AddToRecentlyViewed($result);
         display('product', $data);
     } else {
         $data['heading'] = 'No Products Found';
         $data['content'] = "I am sure, this has something to do with G-Man, anyways just go somewhere else, try some other product";
         display('basic', $data);
     }
 }
Example #8
0
                                                                    <div class="w-image-box">
                                                                        <a class="item-image" href="<?php 
echo product_url(6283, 'Solar Panels 12v/130watts');
?>
">
                                                                            <img title="Solar Panels 12v/130watts" alt="Solar Panels 12v/130watts" src="<?php 
echo base_url();
?>
images/new_images/home/topsell/utility/Solar-Panels-12v130watts.jpg" />
                                                                        </a>
                                                                    </div>
                                                                    
                                                                    
                                                                    <div class="add-to-links">
                                                                        <a style="display:none;" href="<?php 
echo product_url(6283, 'Solar Panels 12v/130watts');
?>
"></a>
                                                                        <!-- QUICLVIEW -->
                                                                    </div>

                                                                    <div class="other-infor">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            
                                                            
                                                        </div>
													  
                                                    </div>
                                                    
<div class="row">
  <div class="col-md-12">
    <h3 class="text-left">Recently Viewed</h3>
    <hr>
  </div>

<?php 
if (is_array($recently_viewed) > 0) {
    foreach ($recently_viewed as $key => $product_item) {
        $url = product_url($product_item);
        $path = "/" . $product_item['product_image_path'];
        $image_properties = array('src' => "{$path}", 'class' => 'img-responsive');
        ?>
  <div class="product-link-sm col-md-2 col-sm-4 col-xs-4">
      <?php 
        echo anchor($url, img($image_properties));
        ?>
      
  </div>
  <?php 
    }
    ?>
  <?php 
}
?>
  </div>
Example #10
0
        } else {
            ?>
													<a class="product-image" href="javascript:void(0);">
														<img src="<?php 
            echo base_url() . 'img/no_image.jpg';
            ?>
" height="70" width="70"/>
													</a>
													<?php 
        }
        ?>
	
					  							</td>
												<td class="paddin-top15">
													<a href="<?php 
        echo product_url($row->productId, $row->code);
        ?>
">
														<?php 
        echo $row->code;
        ?>
													</a>
												</td>
												<td class="paddin-top15">&#x20A6;<?php 
        echo number_format($displayPrice, 2);
        ?>
</td>
												<td class="paddin-top15">
													<?php 
        if ($row->currentQty) {
            echo 'In Stock';
Example #11
0
 function _generate_products_table($products)
 {
     $this->load->library('table');
     $this->table->set_heading('id', 'type', 'game', 'name', 'url', 'image', 'price', 'small', 'med', 'lrg', 'xl', 'sold');
     $tmpl = array('table_open' => '<table class="table table-condensed" >');
     $this->table->set_template($tmpl);
     foreach ($products as $key => $prod) {
         //Edit link
         $product_id = $prod['product_id'];
         $prod_edit_link = site_url('admin/edit_product/' . $product_id);
         $prod_id_cell = "<a href={$prod_edit_link}> <i class=\"fa fa-pencil\"></i> {$product_id} </a> ";
         //Product Image
         $img_path = site_url($prod['product_image_path']);
         $image_cell = "<a href= {$img_path}><img class='img-responsive' width='75' src = {$img_path}></img></a>";
         //Product Link
         $prod_url = product_url($prod);
         $prod_name_cell = anchor($prod_url, $prod['product_name']);
         $this->table->add_row($prod_id_cell, $prod['product_type'], $prod['product_game'], $prod_name_cell, $prod['product_url'], $image_cell, $prod['product_price'], $prod['product_count_small'], $prod['product_count_medium'], $prod['product_count_large'], $prod['product_count_xl'], $prod['product_qty_sold']);
     }
     return $this->table->generate();
 }
						<td><input type="submit" class="btn" value="Add Note"></td>
				  </tr>';
            echo form_close();
            //prep for next display
            $week_total = 0;
            $curr_date = $o['oi_delivery_date'];
            //add title for delivery date
            echo '<tr>
					<td colspan="4"><h3>Orders for ' . date('D jS F', strtotime($curr_date)) . '</h3></td>
					</tr>';
        }
        $week_total += $o['oi_price'];
        echo '<tr class="vat" style="border-bottom:1px solid #ccc; line-height:30px;">';
        //<td>Order '. $o['oi_id'] .'</td>
        echo '<td>';
        echo '<a href="' . product_url($o) . '">' . $o['p_name'] . '</a>';
        if (isset($o['oi_source_or']) && $o['oi_source_or'] != null) {
            echo '<br /><small class="oi-recurring-note">This is part of an <a href="' . site_url('order/ongoing') . '">ongoing order</a>.</small>';
        }
        echo '</td>
			 <td>' . $o['oi_qty'] . ' ' . $o['pu_short_plural'] . '</td>
			 <td> &pound;' . number_format($o['oi_price'], 2) . '</td>
			 <td style="text-align:right; width: 230px;">';
        if ($o['oi_status'] == 'Reserved' || $o['oi_status'] == 'Expired') {
            if ($o['oi_status'] == 'Reserved') {
                echo '<em>Item reserved until ' . date('g:ia', strtotime($o['oi_ordered_date'] . ' + ' . $this->config->item('item_reserved_timeout'))) . '</em><br />';
            } else {
                echo '<em>Stock no longer reserved</em><br />';
            }
            $unconfirmed++;
            echo form_open(current_url(), array('id' => 'confirm_form', 'style' => 'display:inline;'));