Skip to content

Commit

Permalink
Merge pull request PuneethReddyHC#2 from serj99/local-florin
Browse files Browse the repository at this point in the history
update
  • Loading branch information
Lynxu authored Sep 11, 2019
2 parents 7ca7eaa + 7bef4b0 commit 7154cd4
Show file tree
Hide file tree
Showing 13 changed files with 206 additions and 318 deletions.
238 changes: 31 additions & 207 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<div class='product-body'>
<p class='product-category'>$cat_name</p>
<h3 class='product-name header-cart-item-name'><a href='product.php?p=$pro_id'>$pro_title</a></h3>
<h4 class='product-price header-cart-item-info'>$pro_price<del class='product-old-price'>$990.00</del></h4>
<h4 class='product-price header-cart-item-info'>$pro_price LEI</h4>
<div class='product-rating'>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
Expand Down Expand Up @@ -165,11 +165,10 @@
}else {

$keyword = $_POST["keyword"];
header('Location:store.php');
$sql = "SELECT * FROM products,categories WHERE product_cat=cat_id AND product_keywords LIKE '%$keyword%'";
//header('Location:store.php');
$sql = "SELECT * FROM products WHERE product_keywords LIKE '%$keyword%'";
//exit($sql);
}

$run_query = mysqli_query($con,$sql);
while($row=mysqli_fetch_array($run_query)){
$pro_id = $row['product_id'];
Expand All @@ -194,7 +193,7 @@
<div class='product-body'>
<p class='product-category'>$cat_name</p>
<h3 class='product-name header-cart-item-name'><a href='product.php?p=$pro_id'>$pro_title</a></h3>
<h4 class='product-price header-cart-item-info'>$pro_price<del class='product-old-price'>$990.00</del></h4>
<h4 class='product-price header-cart-item-info'>$pro_price LEI</h4>
<div class='product-rating'>
<i class='fa fa-star'></i>
<i class='fa fa-star'></i>
Expand Down Expand Up @@ -370,9 +369,9 @@
<table id="cart" class="table table-hover table-condensed" id="">
<thead>
<tr>
<th style="width:50%">Product</th>
<th style="width:10%">Price</th>
<th style="width:8%">Quantity</th>
<th style="width:50%">Produs</th>
<th style="width:10%">Pret</th>
<th style="width:8%">Cantitate</th>
<th style="width:7%" class="text-center">Subtotal</th>
<th style="width:10%"></th>
</tr>
Expand All @@ -385,6 +384,7 @@
$product_id = $row["product_id"];
$product_title = $row["product_title"];
$product_price = $row["product_price"];
$product_description = $row["product_desc"];
$product_image = $row["product_image"];
$cart_item_id = $row["id"];
$qty = $row["qty"];
Expand All @@ -401,7 +401,7 @@
</div>
<div class="col-sm-6">
<div style="max-width=50px;">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,</p>
<p>$product_description</p>
</div>
</div>
Expand Down Expand Up @@ -432,7 +432,7 @@
<tfoot>
<tr>
<td><a href="store.php" class="btn btn-warning"><i class="fa fa-angle-left"></i> Continue Shopping</a></td>
<td><a href="store.php" class="btn btn-warning"><i class="fa fa-angle-left"></i> Inapoi la magazin</a></td>
<td colspan="2" class="hidden-xs"></td>
<td class="hidden-xs text-center"><b class="net_total" ></b></td>
<div id="issessionset"></div>
Expand All @@ -442,7 +442,7 @@
if (!isset($_SESSION["uid"])) {
echo '
<a href="" data-toggle="modal" data-target="#Modal_register" class="btn btn-success">Ready to Checkout</a></td>
<a href="" data-toggle="modal" data-target="#Modal_register" class="btn btn-success">Comanda</a></td>
</tr>
</tfoot>
Expand Down Expand Up @@ -477,7 +477,7 @@
<input type="hidden" name="cancel_return" value="http://localhost/myfiles/public_html/cancel.php"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="custom" value="'.$_SESSION["uid"].'"/>
<input type="submit" id="submit" name="login_user_with_product" name="submit" class="btn btn-success" value="Ready to Checkout">
<input type="submit" id="submit" name="login_user_with_product" name="submit" class="btn btn-success" value="Comanda">
</form></td>
</tr>
Expand Down
Loading

0 comments on commit 7154cd4

Please sign in to comment.