


มีทั้งหมด 8 แบบ









REVIEW รีวิว จากลูกค้าทางบ้าน

function payment(divshow){ document.getElementById(divshow).classList.add('divshow'); document.getElementById(divshow).classList.remove('divhide'); } function paymenthide(divhide){ document.getElementById(divhide).classList.add('divhide'); document.getElementById(divhide).classList.remove('divshow'); }document.getElementById("proname").innerHTML = deproname;document.getElementById("proprice").innerHTML = deproprice;document.getElementById("propromotion").innerHTML = depropromotion;document.getElementById("propromotionshow").innerHTML = addCommas(depropromotion);document.getElementById("shipprice").innerHTML = deshipprice;document.getElementById("hidnameship").value =deshipname;document.getElementById("payment").innerHTML = depayment;document.getElementById("idpayment").value =depayment;document.getElementById("hidnameproduct").value = deproname;total();
function summary(deproname,deproprice,depropromotion){document.getElementById("proname").innerHTML = deproname;document.getElementById("proprice").innerHTML = deproprice;document.getElementById("propromotion").innerHTML = depropromotion;document.getElementById("propromotionshow").innerHTML = addCommas(depropromotion);document.getElementById("hidnameproduct").value = deproname;total();}
function paymentbuy(depayment,depaymentlast){document.getElementById("payment").innerHTML = depayment;document.getElementById("paymentlast").innerHTML = depaymentlast;document.getElementById("idpayment").value =depayment;
total();}
function ship(shipname,shipprice){document.getElementById("shipprice").innerHTML = shipprice;document.getElementById("hidnameship").value =shipname;total();}
function total(){var shipprice = document.getElementById('shipprice');valueshipprice = shipprice.textContent;var paymentlast = document.getElementById('paymentlast');valuepaymentlast = paymentlast.textContent;var propromotion = document.getElementById('propromotion');valuepropromotion = propromotion.textContent;
var total = parseInt(valueshipprice)+parseInt(valuepropromotion)+parseInt(valuepaymentlast);document.getElementById("total").innerHTML = total;document.getElementById("totalshow").innerHTML = addCommas(total);document.getElementById("hidtotal").value = total;document.getElementById("hidpropromotion").value = valuepropromotion;document.getElementById("hidshipprice").value = valueshipprice;document.getElementById("hidpaymentlast").value = paymentlast;}function addCommas(nStr){nStr += '';x = nStr.split('.');x1 = x[0];x2 = x.length > 1 ? '.' + x[1] : '';var rgx = /(d+)(d{3})/;while (rgx.test(x1)) {x1 = x1.replace(rgx, '$1' + ',' + '$2');}return x1 + x2;}
function unchecktranfer(){
var x = document.getElementById("paymenttranfer");if (x.style.display === "none") {x.style.display = "none";} else {x.style.display = "none";}var element = document.getElementById("birthdaytime");element.classList.remove("required");var element = document.getElementById("inputtranfer");element.classList.remove("required");var element = document.getElementById("tname");element.classList.remove("required");}
function numberstat(){var priceEls = document.getElementsByClassName("post-views-count");
for (var i = 0; i < priceEls.length; i++) {var price = priceEls[i].innerText;document.getElementById("numberstat").innerHTML = price;sold=document.getElementById("sold").innerHTML;price=parseFloat(price);sold=3248;totalsold=price+sold;document.getElementById("sold").innerHTML=totalsold;
}}