Updated the code.
This commit is contained in:
parent
06499d1e93
commit
00578fd21e
3 changed files with 4 additions and 4 deletions
2
README.md
vendored
2
README.md
vendored
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
A cool shopping site made using PHP, CSS, Javascript and MySQL.
|
A cool shopping site made using PHP, CSS, Javascript and MySQL.
|
||||||
|
|
||||||
Note: Adding to Carts needs to be modified. Also the code has security vulnerability against SQL injection so the SQL code needs to be improved.
|
Note: Pricing Slider doesn't work. Also the code has security vulnerability against SQL injection so the SQL code needs to be improved.
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
|
|
@ -458,7 +458,7 @@ if (isset($_POST["Common"])) {
|
||||||
</div>
|
</div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 class="product-name"><a href="#">'.$product_title.'</a></h3>
|
<h3 class="product-name"><a href="#">'.$product_title.'</a></h3>
|
||||||
<h4 class="product-price"><span class="qty">'.$n.'</span>$'.$product_price.'</h4>
|
<h4 class="product-price"><span class="qty">'.$n.'</span>'.$product_price.'$</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>'
|
</div>'
|
||||||
|
@ -470,7 +470,7 @@ if (isset($_POST["Common"])) {
|
||||||
|
|
||||||
echo '<div class="cart-summary">
|
echo '<div class="cart-summary">
|
||||||
<small class="qty">'.$n.' Item(s) selected</small>
|
<small class="qty">'.$n.' Item(s) selected</small>
|
||||||
<h5>Rs'.$total_price.'</h5>
|
<h5>'.$total_price.'$</h5>
|
||||||
</div>'
|
</div>'
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
2
js/actions.js
vendored
2
js/actions.js
vendored
|
@ -508,7 +508,7 @@ $(document).ready(function(){
|
||||||
$('.total').each(function(){
|
$('.total').each(function(){
|
||||||
net_total += ($(this).val()-0);
|
net_total += ($(this).val()-0);
|
||||||
})
|
})
|
||||||
$('.net_total').html("Total : Rs " +net_total);
|
$('.net_total').html("Total : " +net_total+"$");
|
||||||
}
|
}
|
||||||
|
|
||||||
//remove product from cart
|
//remove product from cart
|
||||||
|
|
Loading…
Reference in a new issue