update1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
// LAZY FOOTER ARTICLE
|
||||
// LAZY FOOTER ARTICLE
|
||||
lazy_load_group.push(
|
||||
{
|
||||
id: 'js-artilce-product-detail',
|
||||
@@ -117,11 +117,11 @@
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
fancyBox();
|
||||
|
||||
|
||||
|
||||
|
||||
function callForMe(){
|
||||
var error = "";
|
||||
var number_regex1 = /^[0]\d{9}$/i;
|
||||
@@ -196,10 +196,10 @@
|
||||
},800);
|
||||
});
|
||||
}
|
||||
|
||||
_showProductDescription();
|
||||
|
||||
|
||||
|
||||
// ADD PRODUCT TO CART - PRODUCT DETAILS
|
||||
function addProductToCart(product_id, variant_id_fake, props) {
|
||||
const props_quantity = parseInt($(".js-buy-quantity-temp").attr("value"));
|
||||
@@ -293,12 +293,12 @@
|
||||
$(".js-buy-quantity-temp").attr("value", totalQuantity);
|
||||
});
|
||||
}
|
||||
|
||||
listenQuantityBuy();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function renReplyReview(new_replies){
|
||||
var html = '';
|
||||
|
||||
@@ -490,6 +490,7 @@ function send_vote(){
|
||||
if($("#rating-content").val() == '') error+="Bạn chưa nhập nội dung đánh giá\n";
|
||||
if($("#rating-name").val() == '') error+="Bạn chưa nhập tên\n";
|
||||
if($("#rating-email").val() == '') error+="Bạn chưa nhập email\n";
|
||||
if($("#rating-tel").val() == '') error+="Bạn chưa nhập số điện thoại\n";
|
||||
|
||||
if(error!=''){
|
||||
alert(error);
|
||||
@@ -504,6 +505,7 @@ function send_vote(){
|
||||
item_title : `{{ page.product_info.productName }}`,
|
||||
user_name : $("#rating-name").val(),
|
||||
user_email : $("#rating-email").val(),
|
||||
user_tel : $("#rating-tel").val(),
|
||||
user_avatar : '',
|
||||
user_note : '',
|
||||
rate : $("#select-rate-pro input:checked").val(),
|
||||
@@ -843,9 +845,9 @@ function showFormReply(a) {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
productBottomBoxSwiper();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -864,6 +866,7 @@ function showFormReply(a) {
|
||||
});
|
||||
}
|
||||
_setVariantColor();
|
||||
|
||||
function _changePriceVariant() {
|
||||
$('.js-variant-option-value').click(function () {
|
||||
setTimeout(function () {
|
||||
@@ -917,4 +920,4 @@ function showFormReply(a) {
|
||||
});
|
||||
//$('.js-variant-option-value:first-child').click();
|
||||
}
|
||||
_changePriceVariant()
|
||||
_changePriceVariant();
|
||||
Reference in New Issue
Block a user