| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/cp648411/www/simded.com/favorite/ |
Upload File : |
<?php
include('../include72/header.php');
include('../themesv2/menu.php');
?>
<div class="bg-3-cover">
<div class="container">
<?php include('../themesv2/menu2.php'); ?>
<?php include('../themesv2/favorite_hi.php'); ?>
</div>
<div class="container">
<div class="row">
<div class="col-12 text-center">
<?php include('../include/ad_google.php'); ?>
</div>
</div>
</div>
</div>
<script>
function cart_array()
{
swal(
'สั่งซื้อสินค้า!',
'เพิ่มสินค้าในตะกร้าเรียบร้อยแล้วค่ะ',
'success'
)
var checkvar = document.form1.elements['chk[]'];
var checked = false;
for (var i = 0; i < checkvar.length; i++) {
if (checkvar[i].checked==true){
checked = true;
}
}
if (checked == true){
checkvar[i].value;
}
// console.log(checkvar);
$.ajax({
url: "../include/ajax_cart_favorite.php", // Url to which the request is send
type: "POST", // Type of request to be send, called as method
data: 'id='+var1,
cache: false, // To unable request pages to be cached
processData:false, // To send DOMDocument or non processed data file it is set to false
success: function(data) // A function to be called if request succeeds
{
//testHoldon_cl('sk-circle');
console.log(data);
$("#alert_cart").html(data);
/*
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById('alert_cart_ok').innerHTML = this.responseText;
$('#alert_cart_ok').dropdown('toggle');
}
};
xmlhttp.open("GET", "../include/ajax_cartlist2.php", true);
xmlhttp.send();
*/
}
});
}
</script>
<!--/.container-->
<?php
include('../themesv2/footer2.php');
include('../include/footer_js.php');
?>