Şuanki Dizin: /home/wwwdreamtechnolo/public_html/cakedarbar.in/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/cakedarbar.in/add-cart-background.php |
<?php require_once("lib/functions.php"); $db = new login_function(); $current_session = session_id(); if(isset($_POST['c_id']) AND isset($_POST['actual_price']) AND isset($_POST['selling_price']) AND isset($_POST['grams']) AND isset($_POST['unit']) AND isset($_POST['p_id'])) { $c_id = $_POST['c_id']; $actual_price = $_POST['actual_price']; $qty = $_POST['qnty']; $selling_price = $_POST['selling_price']; $grams = $_POST['grams']; $unit = $_POST['unit']; $product_a_price=$db->get_product_price($p_id); $product_s_price=$db->get_product_selling_price($p_id); $actual_price = $actual_price * $qty; $selling_price = $selling_price * $qty; $check_exist = $db->check_product_exist($current_session, $c_id); if($check_exist == "") { if($db->add_temp_cart($current_session, $c_id, $qty, $actual_price, $selling_price, $grams, $unit)) { echo "success"; } else { echo "failed"; } } else { if($db->update_cart($current_session, $c_id, $qty, $actual_price,$selling_price)) { echo "success"; } else { echo "failed"; } } } ?>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4