skglobalfruit.com
Open in
urlscan Pro
2606:4700:3033::ac43:c8cc
Public Scan
URL:
https://skglobalfruit.com/
Submission: On June 12 via api from US — Scanned from DE
Submission: On June 12 via api from US — Scanned from DE
Form analysis
1 forms found in the DOMPOST https://skglobalfruit.com/salepage/durian-golden-premium/form?
<form id="product-form" action="https://skglobalfruit.com/salepage/durian-golden-premium/form?" method="POST" style="position: relative">
<input type="hidden" name="_token" value="W5KjEwFn2EBOIr6PP9pAfijsFyUgOK8wrpwKRXH7">
<input id="price" type="hidden" name="price" value="0.00" required="">
<input id="coupon" type="radio" name="coupon" class="d-none" value="">
<div class="container">
<section class="page-content" style="padding-bottom: 90px;">
<div class="hero-header">
<div id="hero-header" class="carousel slide" data-ride="carousel" data-interval="3000">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://storage.fastcommerz.com/media/images/product/cover/17930/43724/381bbd41df64a9d0446aa7a1d28031844dfaf599.webp" alt="" class="lazy">
</div>
</div>
</div>
</div>
<div class="px-3 py-4">
<div class="progress" style="height: 30px;">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 50%; background-color: red; text-align: start;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"><span class="text-over-page"
style="position: absolute;">
<style>
svg {
width: 50px;
height: 65px;
position: relative;
}
</style>
<svg class="fire" viewBox="0 -20 120 240">
<defs>
<linearGradient id="fire-gradient-basic" x1="0%" y1="0%" x2="0%" y2="100%">
<stop stop-color="#ffb200" offset="0.2"></stop>
<stop stop-color="#dc0000" offset="1"></stop>
</linearGradient>
<linearGradient id="fire-gradient-red" x1="0%" y1="0%" x2="0%" y2="100%">
<stop stop-color="#ffb200" offset="0"></stop>
<stop stop-color="#dc0000" offset="0.9"></stop>
</linearGradient>
<linearGradient id="fire-gradient-yellow" x1="0%" y1="0%" x2="0%" y2="100%">
<stop stop-color="#ffb200" offset="0.3"></stop>
<stop stop-color="#dc0000" offset="1"></stop>
</linearGradient>
</defs>
<g stroke-width="0.5" stroke-opacity="0.5">
<path class="spark" fill="#ffd700" stroke="#ff0" d="M13 90c-8,-10 -6,-14 -5,-21 3,-3 0,-7 -2,-19 8,11 18,12 7,40l0 0z"></path>
<path class="spark" fill="#ffd700" stroke="#ff0" d="M36 45c8,-10 6,-14 5,-21 -3,-3 0,-7 2,-19 -8,11 -18,12 -7,40l0 0z"></path>
<path class="spark" fill="#ffd700" stroke="#ff0" d="M63 48c8,-10 6,-14 5,-21 -3,-3 0,-7 2,-19 -8,11 -18,12 -7,40l0 0z"></path>
<path class="spark" fill="#ffd700" stroke="#ff0" d="M83 80c-8,-10 -6,-14 -5,-21 3,-3 0,-7 -2,-19 8,11 18,12 7,40l0 0z"></path>
<path class="spark" fill="#ffd700" stroke="#ff0" d="M94 126c8,-10 6,-14 5,-21 -3,-3 0,-7 2,-19 -8,11 -18,12 -7,40l0 0z"></path>
<path class="flame" fill="url(#fire-gradient-basic)" stroke="#ff0"
d="M46 50c1,13 -15,26 -13,44 0,11 -4,-17 -2,-26 -1,-8 -3,-16 -9,-21 8,42 -28,33 -5,88 -4,-2 -8,-4 -12,-7 4,13 9,21 15,28 9,9 21,13 39,16 13,4 28,2 38,-6 10,-7 15,-19 12,-34 -3,6 -7,10 -13,12 3,-17 -14,-25 -7,-42 10,-20 3,-45 0,-32 -4,12 -11,21 -20,29 22,-70 -10,-53 -11,-88 -9,12 -14,23 -12,39z">
</path>
<path class="flame" fill="url(#fire-gradient-yellow)" stroke="#ff0" d="M51 168c-55,-58 30,-62 -11,-121 11,39 -13,64 -21,76 -5,-15 -1,-21 5,-39 -38,42 -9,63 27,84l0 0z"></path>
<path class="flame" fill="url(#fire-gradient-yellow)" stroke-width="0.5" stroke="#ff0" d="M55 168c-1,-14 -3,-25 15,-38 31,-22 16,-34 -3,-57 5,22 -4,40 -12,52 -5,8 -23,23 0,43z"></path>
<path class="flame" fill="url(#fire-gradient-red)" stroke="#ff0" d="M63 172c9,-5 11,-20 12,-37 2,-17 7,-33 34,-36 -11,9 -20,20 -16,41 -1,31 -24,29 -30,32l0 0z"></path>
</g>
</svg><strong style="font-size: 15px;">ขายไปแล้ว </strong>
</span></div>
</div>
</div>
<div id="price-panel">
<div class="mt-4">
<input type="hidden" id="token-qty" value="0">
<style>
.table-tr {
border-style: inset !important;
border-width: 1px !important;
}
.table-order {
border-collapse: collapse !important;
}
</style>
<div class="row" style="margin: 5px;">
<div class="table-responsive">
</div>
<h5 class="ml-1 mb-1">ตัวเลือกสินค้า</h5>
<div class="table-responsive">
<table class="table table-hover table-order">
<thead>
<tr class="table-tr">
<th class="text-center" style="width:30px;">รูป</th>
<th class="text-center" style="width:30px;">เลือกซื้อได้เลยจ้า</th>
<th style="width:30px;" class="text-center">ราคา</th>
<th style="width:30px;">จำนวน</th>
<th class="text-right" style="width:80px;">ราคารวม</th>
</tr>
</thead>
<tbody>
<tr class="table-tr">
<td class="text-center" rowspan="6">
<img width="100%" src="https://storage.fastcommerz.com/media/product/option/thumbnail/66153da83bde4.jpg" class="lazy">
<br> ทุเรียนเลือกซื้อได้เลยจ้า : เลือกซื้อด้านข้างได้เลยนะคะ ขั้นต่ำ 1 โล
</td>
</tr>
<tr class="table-tr">
<td class="text-center" width="30px;">เนื้อทุเรียนแกะเกรดพรีเมียม 1 โล</td>
<td class="text-center" data-target="option-2479112-2479113" data-value="999" data-label="price" data-action="total"> 999 </td>
<td>
<input class="form-control" name="options[2479112][2479113]" type="number" value="" step="1" min="1" max="999999" data-label="amount" data-action="total" data-target="option-2479112-2479113" data-check="value" autocomplete="off"
data-basket="non_basket">
</td>
<td class="text-right" data-label="html" data-action="total" data-target="option-2479112-2479113"> 0.00 </td>
</tr>
<tr class="table-tr">
<td class="text-center" width="30px;">เนื้อทุเรียนแกะเกรดพรีเมียม ครึ่งโล</td>
<td class="text-center" data-target="option-2479112-2479114" data-value="549" data-label="price" data-action="total"> 549 </td>
<td>
<input class="form-control" name="options[2479112][2479114]" type="number" value="" step="1" min="1" max="999999" data-label="amount" data-action="total" data-target="option-2479112-2479114" data-check="value" autocomplete="off"
data-basket="non_basket">
</td>
<td class="text-right" data-label="html" data-action="total" data-target="option-2479112-2479114"> 0.00 </td>
</tr>
<tr class="table-tr">
<td class="text-center" width="30px;">เนื้อทุเรียนแกะเกรดAAA พูเล็ก</td>
<td class="text-center" data-target="option-2479112-2479115" data-value="259" data-label="price" data-action="total"> 259 </td>
<td>
<input class="form-control" name="options[2479112][2479115]" type="number" value="" step="1" min="1" max="999999" data-label="amount" data-action="total" data-target="option-2479112-2479115" data-check="value" autocomplete="off"
data-basket="non_basket">
</td>
<td class="text-right" data-label="html" data-action="total" data-target="option-2479112-2479115"> 0.00 </td>
</tr>
<tr class="table-tr">
<td class="text-center" width="30px;">ทุเรียน ลูกสด เกรด AB 1 โล</td>
<td class="text-center" data-target="option-2479112-2479116" data-value="259" data-label="price" data-action="total"> 259 </td>
<td>
<input class="form-control" name="options[2479112][2479116]" type="number" value="" step="1" min="1" max="999999" data-label="amount" data-action="total" data-target="option-2479112-2479116" data-check="value" autocomplete="off"
data-basket="non_basket">
</td>
<td class="text-right" data-label="html" data-action="total" data-target="option-2479112-2479116"> 0.00 </td>
</tr>
<tr class="table-tr">
<td class="text-center" width="30px;">ทุเรียน ลูกสด เกรดลูกเล็ก 1 โล</td>
<td class="text-center" data-target="option-2479112-2479117" data-value="159" data-label="price" data-action="total"> 159 </td>
<td>
<input class="form-control" name="options[2479112][2479117]" type="number" value="" step="1" min="1" max="999999" data-label="amount" data-action="total" data-target="option-2479112-2479117" data-check="value" autocomplete="off"
data-basket="non_basket">
</td>
<td class="text-right" data-label="html" data-action="total" data-target="option-2479112-2479117"> 0.00 </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="part-item desc mt-0 product-description">
<p><img src="https://storage.fastcommerz.com/media/uploads/summernote/2024/04/18/662071aa1facc.webp" class="lazy" style="display: inline-block;"></p>
<p><img src="https://storage.fastcommerz.com/media/uploads/summernote/2024/04/18/662071e1c3248.webp" class="lazy" style="display: inline-block;"></p>
<p><img src="/images/default/load-image-logo2.gif" data-src="https://storage.fastcommerz.com/media/uploads/summernote/2024/04/18/662071fd94353.webp" class="lazy"></p>
<p><img src="/images/default/load-image-logo2.gif" data-src="https://storage.fastcommerz.com/media/uploads/summernote/2024/04/18/6620720917b7e.webp" class="lazy"><br></p>
</div>
<div class="part-item">
<div class="panel">
<div class="row">
<a class="linkline mt-2" href="https://lin.ee/ZgrXt4V" target="_blank" onclick="btn_contact()">
<img class="w-100 lazy" src="https://storage.fastcommerz.com/default/img-line.gif" alt="line">
</a>
<a class="linkcall mt-2" href="tel:0980210246" target="_blank" onclick="btn_contact()">
<img class="w-100 lazy" src="https://storage.fastcommerz.com/default/img-phone.gif" alt="phone">
</a>
</div>
</div>
</div>
<div class="btn-sticky">
<div class="d-flex my-2 mt-0 justify-content-center px-1">
<button type="button" class="btn btn-lg btn-primary text-break" data-action="check-qty" style="width: 100%; font-size: 20px;"> ซื้อสินค้า </button>
<div id="addToContact" class="btn btn-lg bg-markety btn-contact font-size-14 text-break" style="" title="ติดต่อเพิ่มเติม" onclick="btn_contact()">
<i class="fas fa-comments"></i> ติดต่อ
</div>
<div id="container-floating">
<a id="call_btn" href="tel:0630316206" class="nd1 nds" onclick="btn_contact()">
<p class="letter"><i class="fas fa-phone"></i></p>
<span class="tooltiptext">โทรหาเรา</span>
</a>
<a id="line_btn" href="https://lin.ee/ZgrXt4V" class="nd3 nds" onclick="btn_contact()">
<p class="letter"><i class="fab fa-line"></i></p>
<span class="tooltiptext">แชทผ่าน LINE</span>
</a>
<a id="facebook_btn" target="_blank" href="https://m.me/profile.php?id=61558031679162" class="nd4 nds" onclick="btn_contact()">
<p class="letter"><i class="fab fa-facebook-messenger"></i></p>
<span class="tooltiptext">แชทผ่าน FACEBOOK</span>
</a>
</div>
</div>
</div>
</section>
<div class="footer font-size-18"> Powered by <a href="https://fastcommerz.com/" target="_blank">Fastcommerz</a>
</div>
<script src="https://skglobalfruit.com/plugins/jquery.min.js?v=2.12.3"></script>
<script src="https://skglobalfruit.com/plugins/bootstrap.min.js?v=2.12.3"></script>
<script src="https://skglobalfruit.com/plugins/formvalidation/formValidation.min.js?v=2.12.3"></script>
<script src="https://skglobalfruit.com/plugins/formvalidation/framework/bootstrap.min.js?v=2.12.3"></script>
<script src="/plugins/formvalidation/language/th.js?v=2.12.3"></script>
<script src="https://skglobalfruit.com/plugins/bootstrap-sweetalert/sweetalert.min.js?v=2.12.3"></script>
<script src="/plugins/jquery.lazy.min.js?v=2.12.3"></script>
<script src="/vendors/toastr/toastr.min.js?v=2.12.3"></script>
<script src="/plugins/countdown/jquery.downCount.js"></script>
<script src="/plugins/slick/slick.min.js"></script>
<script>
$('.form-validation').formValidation({
framework: 'bootstrap'
});
jQuery(document).ready(function($) {
$(function() {
$('.lazy').Lazy();
});
$(".button-contact").on('click', function(event) {
btn_contact();
});
$(".button-register").on('click', function(event) {
btn_register();
});
});
</script>
<script>
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 0
})
function chkNumber(ele) {
var vchar = String.fromCharCode(event.keyCode);
if ((vchar < '0' || vchar > '9') && (vchar == '.')) return false;
ele.onKeyPress = vchar;
}
</script>
<script>
//-- click show add basket --//
$("input:radio[name='toggler']").click(function() {
$(this).parent().find('input[name="child"]').val(1);
var target = $(this).data('target');
$(".btn-cart").hide().removeClass("shown");
$("#btn-cart-" + $(this).val()).show();
setTimeout(function() {
$(".hidden").addClass("shown");
}, 0);
});
</script>
<script>
var count = '5';
var totalPoints = 0;
// ADD / REDUCE input
$(document).on('click', '[data-action="reduce-qty"]', function() {
var $input = $(this).parents('.input-number-group').find('.input-number');
var val = parseInt($input.val(), 10);
var option_id = $(this).data('option-id');
var price = $(this).data('price');
var id = $(this).data('id');
val = isNaN(val) ? 1 : val;
if (val > 1) {
val -= 1;
}
$(this).parent().find('input[data-option-id="' + option_id + '" ]').val(val);
var basket = $('#basket-total-' + id).val();
if (parseFloat(basket) > 0) {
var total = parseFloat(parseFloat(price) * parseInt(val));
var total = Number.isNaN(total) ? 0 : total;
if ($(this).attr('data-basket') != '' && $(this).attr('data-basket') != undefined && $(this).attr('data-basket') == "in_basket") {
$('#price-qty-' + option_id).html('฿ ' + currencyFormat(total));
$('#basket-total-' + id).val(total);
}
let q_qty = parseInt(total_qty);
// if(q_qty > 1){
if (val > 1) {
total_qty = q_qty - 1;
}
calculator();
}
});
// todo Auy::timer
let timeMer;
$(document).on('click', '[data-action="add-qty"]', function() {
var $input = $(this).parents('.input-number-group').find('.input-number');
var val = parseInt($input.val(), 10);
var option_id = $(this).data('option-id');
var price = $(this).data('price');
var id = $(this).data('id');
let total_price = $('[name="total"]').val();
val = isNaN(val) ? 1 : val
total_price = isNaN(total_price) ? 0 : parseFloat(total_price);
let check_total = parseFloat(price) + parseFloat(total_price);
if ($(this).attr('data-basket') != '' && $(this).attr('data-basket') != undefined && $(this).attr('data-basket') == "in_basket") {
if (val < 999999 && check_total < 9999999) {
val += 1;
} else if (check_total > 9999999) {
clearTimeout(timeMer);
timeMer = setTimeout(() => {
toastr.warning('ราคาสินค้ารวมทั้งหมดต้องไม่เกิน 9,999,999');
}, 500);
}
} else {
if (val < 999999) {
val += 1;
}
}
$(this).parent().find('input[data-option-id="' + option_id + '" ]').val(val);
var basket = $('#basket-total-' + id).val();
if (parseFloat(basket) > 0) {
var total = parseFloat(parseFloat(price) * parseInt(val));
var total = Number.isNaN(total) ? 0 : total;
if ($(this).attr('data-basket') != '' && $(this).attr('data-basket') != undefined && $(this).attr('data-basket') == "in_basket") {
$('#price-qty-' + option_id).html('฿ ' + currencyFormat(total));
$('#basket-total-' + id).val(total);
}
calculator();
total_qty = parseInt(total_qty) + 1;
}
});
// -------------input number value-------------//
$('.add-basket-btn').on('click', function() {
var id = $(this).data('id');
var target = $(this).data('target');
var price = $(this).data('price');
var qty = $("#target-" + target).val();
let check_price = parseFloat(qty) * parseFloat(price);
let total_price = $('[name="total"]').val();
total_price = isNaN(total_price) ? 0 : total_price;
check_price = parseFloat(check_price) + parseFloat(total_price);
if (check_price > 9999999) {
clearTimeout(timeMer);
timeMer = setTimeout(() => {
toastr.warning('ราคาสินค้ารวมทั้งหมดต้องไม่เกิน 9,999,999');
}, 500);
} else if (qty != undefined && qty > 0 && qty != '') {
// หากมีค่า 2 ตำแหน่ง จะเข้าสู่เงื่อนไข และ จะแปลงเลขหากเลขเป็นแบบ 01 001 0001 หากมีศูนย์อยู่หน้าค่าจะถูกลบ 0 ออกทันที
if ($('[name="child"]').val().length > 1) {
$('[name="child"][data-option-id="' + target + '"]').val(parseInt($('[name="child"][data-option-id="' + target + '"]').val()));
}
let cild_qty = $("#child-" + target).val();
cild_qty = cild_qty != '' && cild_qty != null ? cild_qty : 0;
cild_qty = parseInt(cild_qty) + parseInt(qty);
$("#basket-product-" + target).removeClass("hidden");
$("#child-" + target).val(cild_qty);
// $("#child-" + target).val(qty);
var total = parseFloat(parseFloat(price) * parseInt(qty));
var total = Number.isNaN(total) ? 0 : total;
let price_qty = parseInt(cild_qty) * parseInt(price);
$('#basket-total-' + id).val(price_qty);
$('#price-qty-' + target).html('฿ ' + currencyFormat(price_qty));
// $('#price-qty-' + target).html('฿ ' + currencyFormat(total));
clearTimeout(timeMer);
timeMer = setTimeout(() => {
toastr.success('เพิ่มสินค้าลงตะกร้าสำเร็จ');
}, 500);
calculator();
} else {
$('[name="child"]').val(1);
clearTimeout(timeMer);
timeMer = setTimeout(() => {
toastr.warning('จำนวนสินค้าต้องมากกว่าหรือเท่ากับ 1');
}, 500);
}
});
$('.delete-btn').on('click', function() {
var id = $(this).data('id');
var target = $(this).data('target');
let options = $('[name="options[' + id + ']"').val();
total_qty = parseInt(total_qty) - parseInt(options);
$('#basket-total-' + target).val(0);
$("#basket-product-" + id).addClass("hidden");
$("#child-" + id).val(0);
calculator();
});
function calculator() {
var sum = 0;
for (var index = 1; index <= count; index++) {
var basket = $('#basket-total-' + index).val();
sum = sum + parseFloat(basket);
}
var total = Number.isNaN(sum) ? 0 : sum;
$("#total").val(total);
if (total == 0) {
$("#basket-null").removeClass("hidden");
// toastr.warning('ไม่มีสินค้าในตะกร้า');
} else {
$("#basket-null").addClass("hidden");
}
let cal_total_price = 0;
$('#total-price').html('฿ ' + currencyFormat(total));
check_coupon(total)
// $('#total-price').html('฿ ' + currencyFormat(total));
var sum_qty = 0;
$('[data-action=total][data-label=amount]').each(function() {
let total_qty_item = $(this).val();
if (total_qty_item != '') {
total_qty_item = parseInt(total_qty_item);
total_qty_item = Number.isNaN(total_qty_item) ? 0 : total_qty_item;
sum_qty = parseInt(sum_qty) + parseInt(total_qty_item);
}
});
$('#total-product').html(formatter.format(sum_qty));
$('#count-cart').html(formatter.format(sum_qty));
}
//check lenght > 6 form input type number
$(document).ready(function() {
$('input[type=number][max]:not([max=""])').on('input', function(ev) {
let $this = $(this);
let maxlength = $this.attr('max').length;
let value = $this.val();
if (value && value.length >= maxlength) {
$this.val(value.substr(0, maxlength));
}
});
});
</script>
<script>
$(document).on('keypress change keyup', '[data-action=total][data-label=amount]', function() {
var target = $(this).data('target');
var amount = $(this).val();
var price = $('[data-action=total][data-label=price][data-target=' + target + ']');
var html = $('[data-action=total][data-label=html][data-target=' + target + ']');
var total = parseFloat(parseFloat(price.data('value')) * parseInt(amount));
var total = Number.isNaN(total) ? 0 : total;
$(html).html(currencyFormat(total));
checkTotalPrice($(this));
});
function currencyFormat(num) {
return num.toFixed(2).replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
}
//เช็คค่าว่างของสินค้าหากมีสินค้าที่ไม่ระบุจะนวน หรือ ระบุจำนวนเป็น 0 จะถูกปรับเป็น 1 ทันที
// $(document).on('change', '[data-action=total][data-label=amount][data-basket="input_basket"]', function() {
// let price = $(this).parent().find('[data-action="add-qty"]').data('price');
// let val = $(this).val() != '' && $(this).val() != undefined && $(this).val() != 0 ? $(this).val() : 1;
// let option_id = $(this).attr('data-option-id');
// let total_price = parseInt(val) * parseFloat(price);
// total_price = isNaN(total_price) ? 0 : parseFloat(total_price);
// $(this).val(val);
// $(this).parent().find('[name="basket_total"]').val(total_price);
// $('#price-qty-' + option_id).html('฿ ' + currencyFormat(total_price));
// calculator();
// checkTotalPrice($(this));
// });
//เช็คราคาเกิน 7 หลักตะกร้า
$(document).on('keypress change keyup', '[data-action=total][data-label=amount][data-basket="input_basket"]', function() {
let price = $(this).parent().find('[data-action="add-qty"]').data('price');
let val = $(this).val();
let option_id = $(this).attr('data-option-id');
let total_price = parseInt(val) * parseFloat(price);
if (val < 1 || val == undefined || val == '') {
$(this).val(1)
clearTimeout(timeMer)
timeMer = setTimeout(() => {
toastr.warning('จำนวนสินค้าต้องมากกว่าหรือเท่ากับ 1')
}, 500);
val = $(this).val()
total_price = parseInt(val) * parseFloat(price)
}
total_price = isNaN(total_price) ? 0 : parseFloat(total_price);
$(this).parent().find('[name="basket_total"]').val(total_price);
$('#price-qty-' + option_id).html('฿ ' + currencyFormat(total_price));
calculator();
checkTotalPrice($(this));
});
// เช็คว่าราคารวมเกิน 9,999,999 หรือไม่
function checkTotalPrice(ele) {
let noti = [];
if (ele.data('basket') != undefined && ele.data('basket') == 'input_basket') {
let total_price = $('#total-price').html();
total_price = total_price.replace(/,|$|฿/gi, '');
total_price = String(~~total_price);
if (total_price != undefined && total_price.length > 7) {
let price = ele.parent().find('[data-action="add-qty"]').data('price');
let option_id = ele.attr('data-option-id');
let total_length = total_price.length;
let new_amount = 0;
new_amount = ele.val(ele.val().substring(0, ele.val().length - 1));
new_amount = ele.val();
new_amount = parseFloat(new_amount) * parseFloat(price);
new_amount = isNaN(new_amount) ? 0 : parseFloat(new_amount);
ele.parent().find('[name="basket_total"]').val(new_amount);
$('#price-qty-' + option_id).html('฿ ' + currencyFormat(new_amount));
noti.push(true);
calculator();
}
} else if (ele.data('basket') != undefined && ele.data('basket') == 'non_basket') {
let target = ele.data('target');
let amount = ele.val();
let price = $('[data-action=total][data-label=price][data-target=' + target + ']');
let html = $('[data-action=total][data-label=html][data-target=' + target + ']');
let price_html = 0;
// //หลายตัวเลือกแต่ไม่มีตะกร้า
$('[data-action=total][data-label=html]').each(function() {
let price = $(this).html()
price = price.replace(/,|$|฿/gi, '');
price = price != '' && price != undefined ? parseFloat(price) : 0;
price = isNaN(price) ? 0 : price;
price_html += price;
})
price_html = parseInt(price_html);
if (String(price_html).length > 7) {
let new_amount = 0;
new_amount = ele.val(amount.substring(0, amount.length - 1));
new_amount = ele.val();
new_amount = parseFloat(parseFloat(price.data('value')) * parseInt(new_amount));
new_amount = isNaN(new_amount) ? 0 : parseFloat(new_amount);
$(html).html(currencyFormat(new_amount));
noti.push(true);
}
check_coupon(price_html)
}
if (noti.length > 0 && noti != '' && noti != undefined) {
clearTimeout(timeMer)
timeMer = setTimeout(() => {
toastr.warning('ราคาสินค้ารวมทั้งหมดต้องไม่เกิน 9,999,999');
}, 500);
}
}
$(document).on('change', 'input[name="child"]', function() {
if ($(this).val() < 1) {
$(this).val(1)
}
})
$(document).on('keyup change keypress', '[non_basket]', function() {
checkTotalPrice($(this));
});
$(document).on('keyup change keypress', '[data-basket="non_basket"]', function() {
checkTotalPrice($(this));
});
//check coupon
function check_coupon(price) {
let total_price = price;
total_price = !isNaN(total_price) && total_price != '' && total_price != null ? parseInt(total_price) : 0;
$('[coupon-li]').addClass('grayscale-100')
let count = 0;
$('[data-coupons="list"]').each(function(index, ele) {
let min_spend = $(this).attr('min-spend')
min_spend = !isNaN(min_spend) && min_spend != '' && min_spend != null ? parseInt(min_spend) : 0;
if (total_price >= min_spend) {
$(this).closest('[coupon-li]').not('[coupon-balance="Empty"]').removeClass('grayscale-100')
} else {
if (count > 0) {
$(this).parent().addClass('add-margin-left');
}
$(this).parent().appendTo($('ul.coupon-list'))
count++;
}
});
}
</script>
<script src="https://fastcommerz.com/plugins/jquery.bcSwipe.min.js"></script>
<script>
var total_qty = 0;
var minimum_order = 1;
var status_basket = 'inactive';
$(document).ready(function(param) {
$("img").addClass("lazy");
$('[data-action=coupon]').click(function() {
var coupon = $('[name=coupon]');
coupon.prop("checked", true);
swal({
type: "success",
title: "Success",
text: "รับคูปองเรียบร้อยแล้ว",
confirmButtonClass: "btn-success",
timer: 2000,
});
});
$('[data-action="check-qty"]').click(function(event) {
var options = 2;
var tableOption = true;
var disablePrice = true;
var value = tableOption ? 0 : $("#input-qty").val() ? parseInt($("#input-qty").val(), 10) : 0;
value = disablePrice ? 1 : value;
var mainOptionIsCheck = true;
var subOptionIsCheck = true;
var subPriceIsCheck = true;
var tablePrice = 0;
var qtyOption = 0;
var cVal = 0;
var price = $("#price").val();
var valueTiktok = 1;
var totalTikTok = $('[name="total"]').val();
var priceTikTok = $('[name="price"]').val();
var qtyTikTok = $('[name="qty"]').val();
if (typeof(totalTikTok) != "undefined" && totalTikTok !== null) {
valueTiktok = totalTikTok;
} else if (priceTikTok != "0.00" && (typeof(qtyTikTok) != "undefined" && qtyTikTok !== null)) {
valueTiktok = priceTikTok * qtyTikTok;
}
if ($('[data-basket="input_basket"]').attr('data-basket') != undefined && $('[data-basket="input_basket"]').attr('data-basket') != '' && $('[data-basket="input_basket"]').attr('data-basket') == 'input_basket') {
$('[data-basket="input_basket"]').each(function() {
if ($(this).val() == '' || $(this).val() == 0) {
let option_id = $(this).attr('data-option-id');
$('[data-id="' + option_id + '"]').click();
}
});
}
if (tableOption) {
if (parseInt(minimum_order) > 0) {
$('[data-check="value"]').each(function(index, el) {
cVal = $(el).val();
if (cVal && parseInt(cVal, 10) > 0) {
qtyOption = parseInt(qtyOption, 10) + parseInt(cVal, 10);
}
});
if (parseInt(qtyOption) >= parseInt(minimum_order)) {
btn_sale(valueTiktok)
tablePrice = cVal;
document.getElementById("product-form").submit(true)
//แก้ไข iphone กดกลับมาแต่สินค้ายังอยู่ในตะกร้าแต่ไม่มีจำนวนสินค้า
setTimeout(() => {
$('div#group1-show').find('.items').addClass('hidden')
$('div#group1-show').find('[data-basket="input_basket"]').val('')
$('div#basket-null').removeClass('hidden')
}, 500);
} else {
$('html,body').animate({
scrollTop: $("#price-panel").offset().top + 20
}, 'slow');
if (status_basket == 'active') {
toastr.warning('สั่งซื้อสินค้าขั้นต่ำ ' + minimum_order + ' ชิ้น');
} else {
toastr.warning('สั่งซื้อสินค้าขั้นต่ำ ' + minimum_order + ' ชิ้น');
}
}
} else {
$('[data-check="value"]').each(function(index, el) {
var cVal = $(el).val();
if (parseInt(cVal) > 0) {
total_qty = total_qty + parseInt(cVal);
}
if (cVal && parseInt(cVal, 10) > 0) {
value = cVal;
tablePrice = value;
btn_sale(valueTiktok)
document.getElementById("product-form").submit(true)
} else {
$('html,body').animate({
scrollTop: $("#price-panel").offset().top + 20
}, 'slow');
$('#product-form').submit(false);
}
});
}
} else {
switch (options) {
case 2:
mainOptionIsCheck = $('input[name=option_0]:checked').length > 0;
subOptionIsCheck = $('input[name=option_1]:checked').length > 0;
break;
case 1:
mainOptionIsCheck = $('input[name=option_0]:checked').length > 0;
break;
}
}
var inValid = !value || !mainOptionIsCheck || !subOptionIsCheck;
if (tableOption != true) {
if (mainOptionIsCheck == true && subOptionIsCheck == true) {
var prices = parseFloat(price);
if (prices == 0) {
$('html,body').animate({
scrollTop: $("#price-panel").offset().top + 20
}, 'slow');
$('#product-form').submit(false);
toastr.error('กรุณาเลือกตัวเลือกอีกครั้ง');
} else {
btn_sale(valueTiktok)
document.getElementById("product-form").submit(true)
}
} else if (inValid) {
$('html,body').animate({
scrollTop: $("#price-panel").offset().top + 20
}, 'slow');
$('#product-form').submit(false);
if (!mainOptionIsCheck || !subOptionIsCheck) {
toastr.error('กรุณาเลือกตัวเลือก');
}
}
} else {
// document.getElementById("product-form").submit(true)
}
});
});
$('#hero-header').bcSwipe({
threshold: 50
});
$('.about-slider-content').on('beforeChange', function(event, slick, currentSlide, nextSlide) {
var currentSlideIndex = nextSlide;
// Rest of your code...
});
$(document).ready(function() {
$(".float").click(function() {
$(".btn-sticky").toggleClass("stop-stick");
});
$(".btn-contact").click(function() {
$("#container-floating").toggleClass("show");
});
});
$(function() {
var $quote = $(".btn-sticky .btn-primary");
var $numWords = $quote.text().split(" ").length;
if (($numWords >= 1) && ($numWords < 25)) {
$quote.css("font-size", "20px");
} else if (($numWords >= 25) && ($numWords < 40)) {
$quote.css("font-size", "18px");
} else if (($numWords >= 40) && ($numWords < 55)) {
$quote.css("font-size", "16px");
} else if (($numWords >= 55) && ($numWords < 69)) {
$quote.css("font-size", "14px");
} else {
$quote.css("font-size", "20px");
}
});
$(document).on('click', '[data-action="check-qty"]', function() {
$('#total-price').html('฿ 0')
$('#total-product').html('0')
$('[name="total"]').val(0);
$('input[name="options"]').val(0);
$('[name="total_qty"]').val(0);
$('[name="basket_total"]').val(0);
$('.delete-btn').click()
$('form').trigger('reset')
$('td.text-right[data-label="html"]').html('0.00')
})
</script>
<script>
localStorage.removeItem("event_id");
</script>
<!-- Facebook Pixel Code -->
<script>
var event_id = localStorage.getItem("event_id");
if (!event_id) {
var p_id = '74440';
let ms = Date.now();
localStorage.setItem("event_id", p_id + '-' + ms);
var event_id = p_id + '-' + ms;
}
</script>
<script>
! function(f, b, e, v, n, t, s) {
if (f.fbq) return;
n = f.fbq = function() {
n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
};
if (!f._fbq) f._fbq = n;
n.push = n;
n.loaded = !0;
n.version = '2.0';
n.queue = [];
t = b.createElement(e);
t.async = !0;
t.src = v;
s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s)
}(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '443724264993478');
fbq('track', 'PageView');
fbq('track', 'ViewContent', {
content_name: 'p-0004372417930'
});
setTimeout(function() {
fbq('trackCustom', 'Page_view_3s');
}, 3000);
setTimeout(function() {
fbq('trackCustom', 'Page_view_10s');
}, 10000);
setTimeout(function() {
fbq('trackCustom', 'Page_view_30s');
}, 30000);
var executeWhenReachedPagePercentage = function(percentage, callback) {
if (typeof percentage !== 'number') {
console.error('First parameter must be a number, got', typeof percentage, 'instead', );
}
if (typeof callback !== 'function') {
console.error('Second parameter must be a function, got', typeof callback, 'instead', );
}
function getDocumentLength() {
var D = document;
return Math.max(D.body.scrollHeight, D.documentElement.scrollHeight, D.body.offsetHeight, D.documentElement.offsetHeight, D.body.clientHeight, D.documentElement.clientHeight)
}
function getWindowLength() {
return window.innerHeight || (document.documentElement || document.body).clientHeight;
}
function getScrollableLength() {
if (getDocumentLength() > getWindowLength()) {
return getDocumentLength() - getWindowLength();
} else {
return 0;
}
}
var scrollableLength = getScrollableLength();
window.addEventListener("resize", function() {
scrollableLength = getScrollableLength();
}, false)
function getCurrentScrolledLengthPosition() {
return window.pageYOffset || (document.documentElement || document.body.parentNode || document.body).scrollTop;
}
function getPercentageScrolled() {
if (scrollableLength == 0) {
return 100;
} else {
return getCurrentScrolledLengthPosition() / scrollableLength * 100;
}
}
var executeCallback = (function() {
var wasExecuted = false;
return function() {
if (!wasExecuted && getPercentageScrolled() > percentage) {
wasExecuted = true;
callback();
}
};
})();
if (getDocumentLength() == 0 || (getWindowLength() / getDocumentLength() * 100 >= percentage)) {
callback();
} else {
window.addEventListener('scroll', executeCallback, false);
}
};
executeWhenReachedPagePercentage(25, function() {
fbq('trackCustom', 'ScrollTracking_25');
});
executeWhenReachedPagePercentage(50, function() {
fbq('trackCustom', 'ScrollTracking_50');
});
executeWhenReachedPagePercentage(75, function() {
fbq('trackCustom', 'ScrollTracking_75');
});
executeWhenReachedPagePercentage(99, function() {
fbq('trackCustom', 'ScrollTracking_100');
});
$('#call_btn').click(function() {
fbq('trackCustom', 'Contact', {
content_name: 'ButtonCall'
});
});
$('#line_btn').click(function() {
fbq('trackCustom', 'Contact', {
content_name: 'ButtonLine'
});
});
$('#facebook_btn').click(function() {
fbq('trackCustom', 'Contact', {
content_name: 'ButtonMessenger'
});
});
$('.linkcall').click(function() {
fbq('trackCustom', 'Contact', {
content_name: 'LinkCall'
});
});
$('.linkline').click(function() {
fbq('trackCustom', 'Contact', {
content_name: 'LinkLine'
});
});
$('.linkmessenger').click(function() {
fbq('trackCustom', 'Contact', {
content_name: 'LinkMessenger'
});
});
</script>
<noscript>
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=443724264993478&ev=PageView&noscript=1">
</noscript>
<script>
$(window).scroll(function() {
if ($(window).scrollTop() + $(window).height() == $(document).height()) {
$(".btn-sticky").addClass("btn-sticky-mb");
} else {
$(".btn-sticky").removeClass("btn-sticky-mb");
}
});
</script>
<script>
// slick slide
var rev = $('.rev_slider');
rev.slick({
className: "center",
autoplay: true,
speed: 500,
focusOnSelect: true,
infinite: true,
centerMode: true,
slidesToShow: 1,
slidesToScroll: 1,
centerPadding: '130px',
swipe: true,
});
</script>
<script>
$('.hero-header_new').ready(function() {
$('.hero-header_new').removeClass('d-none');
})
</script>
<!-- Product site tag (gtag.js) - Google Analytics -->
<!-- End Google Analytics -->
<script>
$(document).ready(function() {
setTimeout(function() {
GetIp();
}, 10000);
});
function GetIp() {
var url = 'http://skglobalfruit.com';
var ip = '2001:1b60:2:240:3247::11'
var time = localStorage.getItem("time");
var address = localStorage.getItem("address");
var old_url = localStorage.getItem("url");
var milliseconds = 900000;
var getTime = (new Date()).getTime();
var overTime = new Date(getTime + (milliseconds));
if (address) {
if (address == ip) {
if (old_url != url) {
localStorage.setItem("url", url);
localStorage.setItem("time", getTime + (milliseconds));
SendVisitors();
} else if (time) {
var now = (new Date()).getTime()
if (now > time) {
localStorage.setItem("time", getTime + (milliseconds));
SendVisitors();
}
} else {
localStorage.setItem("time", getTime + (milliseconds));
}
} else {
localStorage.setItem("address", ip);
localStorage.setItem("time", getTime + (milliseconds));
SendVisitors();
}
} else {
localStorage.setItem("url", url);
localStorage.setItem("address", ip);
localStorage.setItem("time", getTime + (milliseconds));
SendVisitors();
}
// localStorage.setItem("date_time", overTime.toLocaleString());
}
function SendVisitors() {
var id = 'eyJpdiI6IjYyckw0Z2JPdHRoKzdoMFowbWdHT0E9PSIsInZhbHVlIjoiK1BBZDJEU2g4U1NrK0JNaUt5Q0F1Zz09IiwibWFjIjoiZDNhYjA3ZWJmMzU1NTAxOTQzZWUzNGM2ZmM4ZWE1OTllMThmMWY0ZWUyYTRmZDEzZDg5MjMwMzJkMGNiMTc3NiIsInRhZyI6IiJ9';
$.ajax({
url: "/send-visitors",
type: "POST",
data: {
_token: 'W5KjEwFn2EBOIr6PP9pAfijsFyUgOK8wrpwKRXH7',
id: id,
},
dataType: 'JSON',
success: function(data) {}
});
}
</script>
<script>
</script>
</div>
</form>
Text Content
SAIFA ขายไปแล้ว ตัวเลือกสินค้า รูป เลือกซื้อได้เลยจ้า ราคา จำนวน ราคารวม ทุเรียนเลือกซื้อได้เลยจ้า : เลือกซื้อด้านข้างได้เลยนะคะ ขั้นต่ำ 1 โล เนื้อทุเรียนแกะเกรดพรีเมียม 1 โล 999 0.00 เนื้อทุเรียนแกะเกรดพรีเมียม ครึ่งโล 549 0.00 เนื้อทุเรียนแกะเกรดAAA พูเล็ก 259 0.00 ทุเรียน ลูกสด เกรด AB 1 โล 259 0.00 ทุเรียน ลูกสด เกรดลูกเล็ก 1 โล 159 0.00 ซื้อสินค้า ติดต่อ โทรหาเรา แชทผ่าน LINE แชทผ่าน FACEBOOK Powered by Fastcommerz