A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: menus

Filename: controllers/bookshop.php

Line Number: 197

A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 323

A PHP Error was encountered

Severity: Notice

Message: Undefined index: Your cart is empty

Filename: bookshop/view_cart.php

Line Number: 16

"); } }); } function set_currency(currency){ $.ajax({ type: "POST", url: "http://9jaacademy.com/index.php/bookshop/setCurrency", data: {"currency":currency}, cache: false, success: function (html){ window.location.reload(); } }); } function removeItem(key){ $.ajax({ type: "POST", url: "http://9jaacademy.com/index.php/bookshop/removeItem", data: {"key":key}, cache: false, success: function (html){ window.location.reload(); } }); } function increaseqty(elm){ var total_cart_price = total_items = total_cart_price_in_usd = 0; var qty = $(elm).parent().find(".cart_quantity_input").val(); var price = $(elm).parent().parent().parent().find(".price").text(); var price_in_usd = $(elm).parent().parent().parent().find(".price_in_usd").text(); qty++; $(elm).parent().find(".cart_quantity_input").val(qty); var total_price = price*qty; var total_price_in_usd = price_in_usd*qty; $(elm).parent().parent().parent().find(".total_price").text(total_price); $(elm).parent().parent().parent().find(".total_cost").val(total_price); $(elm).parent().parent().parent().parent().find(".total_price").each(function(){ total_cart_price += parseInt($(this).text()); }); $(elm).parent().parent().parent().find(".total_price_in_usd").text(total_price_in_usd); $(elm).parent().parent().parent().find(".total_cost_in_usd").val(total_price_in_usd); $(elm).parent().parent().parent().parent().find(".total_price_in_usd").each(function(){ total_cart_price_in_usd += parseInt($(this).text()); }); $(elm).parent().parent().parent().parent().find(".cart_quantity_input").each(function(){ total_items += parseInt($(this).val()); }); $(".total_items").text(total_items); $(".total_cart_price").text(total_cart_price); $(".total_cart_price_in_usd").text(total_cart_price_in_usd); } function decreaseqty(elm){ var total_cart_price = total_items = total_cart_price_in_usd = 0; var qty = $(elm).parent().find(".cart_quantity_input").val(); if(qty <= 1){ if($(elm).parent().find('.msg').length <= 0) $(elm).parent().append("

A PHP Error was encountered

Severity: Notice

Message: Undefined index: Quantity can not be less than

Filename: bookshop/view_cart.php

Line Number: 229

1
"); return false; } var price = $(elm).parent().parent().parent().find(".price").text(); var price_in_usd = $(elm).parent().parent().parent().find(".price_in_usd").text(); qty--; $(elm).parent().find(".cart_quantity_input").val(qty); var total_price = price*qty; var total_price_in_usd = price_in_usd*qty; $(elm).parent().parent().parent().find(".total_price").text(total_price); $(elm).parent().parent().parent().find(".total_cost").val(total_price); $(elm).parent().parent().parent().parent().find(".total_price").each(function(){ total_cart_price += parseInt($(this).text()); }); $(elm).parent().parent().parent().find(".total_price_in_usd").text(total_price_in_usd); $(elm).parent().parent().parent().find(".total_cost_in_usd").val(total_price_in_usd); $(elm).parent().parent().parent().parent().find(".total_price_in_usd").each(function(){ total_cart_price_in_usd += parseInt($(this).text()); }); $(elm).parent().parent().parent().parent().find(".cart_quantity_input").each(function(){ total_items += parseInt($(this).val()); }); $(".total_items").text(total_items); $(".total_cart_price").text(total_cart_price); $(".total_cart_price_in_usd").text(total_cart_price_in_usd); }