From 00578fd21e6cb55865a0981f15a4c5e236a5e881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Berk=20Ba=C5=9Fo=C4=9Flu?= Date: Sun, 9 Jun 2024 21:30:51 -0400 Subject: [PATCH] Updated the code. --- README.md | 2 +- action.php | 4 ++-- js/actions.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2f8267..6e78a7a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 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 diff --git a/action.php b/action.php index ae5a2de..83384e8 100644 --- a/action.php +++ b/action.php @@ -458,7 +458,7 @@ if (isset($_POST["Common"])) {

'.$product_title.'

-

'.$n.'$'.$product_price.'

+

'.$n.''.$product_price.'$

' @@ -470,7 +470,7 @@ if (isset($_POST["Common"])) { echo '
'.$n.' Item(s) selected -
Rs'.$total_price.'
+
'.$total_price.'$
' ?> diff --git a/js/actions.js b/js/actions.js index ace2287..fafbd11 100644 --- a/js/actions.js +++ b/js/actions.js @@ -508,7 +508,7 @@ $(document).ready(function(){ $('.total').each(function(){ net_total += ($(this).val()-0); }) - $('.net_total').html("Total : Rs " +net_total); + $('.net_total').html("Total : " +net_total+"$"); } //remove product from cart