update1
This commit is contained in:
@@ -253,7 +253,7 @@
|
|||||||
<div class="header-menu-container">
|
<div class="header-menu-container">
|
||||||
<p class="title"> DANH MỤC SẢN PHẨM </p>
|
<p class="title"> DANH MỤC SẢN PHẨM </p>
|
||||||
<div class="center"></div>
|
<div class="center"></div>
|
||||||
<div class="global-menu-list bg-white">
|
<div class="global-menu-list bg-white hide">
|
||||||
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<a href="/nong-nghiep-may-moc" class="d-flex
|
<a href="/nong-nghiep-may-moc" class="d-flex
|
||||||
@@ -533,7 +533,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="homepage container">
|
<section class="homepage container hide">
|
||||||
<h1 style="position: absolute;top: -999999999999999999999px;">Chào mừng
|
<h1 style="position: absolute;top: -999999999999999999999px;">Chào mừng
|
||||||
bạn đã đến với Chico</h1>
|
bạn đã đến với Chico</h1>
|
||||||
<div class="home-banner-container hover-img">
|
<div class="home-banner-container hover-img">
|
||||||
@@ -2140,7 +2140,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!----BREADCRUMB-->
|
<!----BREADCRUMB-->
|
||||||
<div class="container d-flex align-items-center box-breadcrumb hide">
|
<div class="container d-flex align-items-center box-breadcrumb">
|
||||||
<div class="global-menu-breadcrumb header-menu-container">
|
<div class="global-menu-breadcrumb header-menu-container">
|
||||||
<p class="menu-title"> DANH MỤC SẢN PHẨM </p>
|
<p class="menu-title"> DANH MỤC SẢN PHẨM </p>
|
||||||
<div class="global-menu-list bg-white global-other-page ">
|
<div class="global-menu-list bg-white global-other-page ">
|
||||||
@@ -2967,7 +2967,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<section class="product-detail-page container hide" data-item_id="9"
|
<section class="product-detail-page container " data-item_id="9"
|
||||||
data-item_category-id="2" data-item_time-deal-end="0">
|
data-item_category-id="2" data-item_time-deal-end="0">
|
||||||
<div class="product-info-top">
|
<div class="product-info-top">
|
||||||
<h1 class="product-name font-weight-700">Sản phẩm TEST</h1>
|
<h1 class="product-name font-weight-700">Sản phẩm TEST</h1>
|
||||||
@@ -3221,8 +3221,7 @@
|
|||||||
|
|
||||||
<div class="product-info-support d-flex align-items-center">
|
<div class="product-info-support d-flex align-items-center">
|
||||||
<div class="form-holder d-flex align-items-center">
|
<div class="form-holder d-flex align-items-center">
|
||||||
<input type="text" placeholder="Hãy để lại số điện thoại để được
|
<input type="text" placeholder="Hãy để lại số điện thoại để được tư vấn" autocomplete="off" id="phone-now" name="contact_tel">
|
||||||
tư vấn" autocomplete="off" id="phone-now" name="contact_tel">
|
|
||||||
<a href="javascript:void(0)" class="call-for-me d-flex
|
<a href="javascript:void(0)" class="call-for-me d-flex
|
||||||
align-items-center justify-content-center"
|
align-items-center justify-content-center"
|
||||||
onclick="callForMe()">
|
onclick="callForMe()">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
// LAZY FOOTER ARTICLE
|
// LAZY FOOTER ARTICLE
|
||||||
lazy_load_group.push(
|
lazy_load_group.push(
|
||||||
{
|
{
|
||||||
id: 'js-artilce-product-detail',
|
id: 'js-artilce-product-detail',
|
||||||
@@ -117,11 +117,11 @@
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fancyBox();
|
fancyBox();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function callForMe(){
|
function callForMe(){
|
||||||
var error = "";
|
var error = "";
|
||||||
var number_regex1 = /^[0]\d{9}$/i;
|
var number_regex1 = /^[0]\d{9}$/i;
|
||||||
@@ -196,10 +196,10 @@
|
|||||||
},800);
|
},800);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_showProductDescription();
|
_showProductDescription();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ADD PRODUCT TO CART - PRODUCT DETAILS
|
// ADD PRODUCT TO CART - PRODUCT DETAILS
|
||||||
function addProductToCart(product_id, variant_id_fake, props) {
|
function addProductToCart(product_id, variant_id_fake, props) {
|
||||||
const props_quantity = parseInt($(".js-buy-quantity-temp").attr("value"));
|
const props_quantity = parseInt($(".js-buy-quantity-temp").attr("value"));
|
||||||
@@ -293,12 +293,12 @@
|
|||||||
$(".js-buy-quantity-temp").attr("value", totalQuantity);
|
$(".js-buy-quantity-temp").attr("value", totalQuantity);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
listenQuantityBuy();
|
listenQuantityBuy();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function renReplyReview(new_replies){
|
function renReplyReview(new_replies){
|
||||||
var html = '';
|
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-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-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-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!=''){
|
if(error!=''){
|
||||||
alert(error);
|
alert(error);
|
||||||
@@ -504,6 +505,7 @@ function send_vote(){
|
|||||||
item_title : `{{ page.product_info.productName }}`,
|
item_title : `{{ page.product_info.productName }}`,
|
||||||
user_name : $("#rating-name").val(),
|
user_name : $("#rating-name").val(),
|
||||||
user_email : $("#rating-email").val(),
|
user_email : $("#rating-email").val(),
|
||||||
|
user_tel : $("#rating-tel").val(),
|
||||||
user_avatar : '',
|
user_avatar : '',
|
||||||
user_note : '',
|
user_note : '',
|
||||||
rate : $("#select-rate-pro input:checked").val(),
|
rate : $("#select-rate-pro input:checked").val(),
|
||||||
@@ -843,12 +845,12 @@ function showFormReply(a) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
productBottomBoxSwiper();
|
productBottomBoxSwiper();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CẤU HÌNH : KÍCH THƯỚC, DUNG LƯỢNG, MÀU SẮC
|
// CẤU HÌNH : KÍCH THƯỚC, DUNG LƯỢNG, MÀU SẮC
|
||||||
function _setVariantColor() {
|
function _setVariantColor() {
|
||||||
$('#js-variant-holder .js-variant-option-value').each(function () {
|
$('#js-variant-holder .js-variant-option-value').each(function () {
|
||||||
@@ -864,6 +866,7 @@ function showFormReply(a) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
_setVariantColor();
|
_setVariantColor();
|
||||||
|
|
||||||
function _changePriceVariant() {
|
function _changePriceVariant() {
|
||||||
$('.js-variant-option-value').click(function () {
|
$('.js-variant-option-value').click(function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@@ -917,4 +920,4 @@ function showFormReply(a) {
|
|||||||
});
|
});
|
||||||
//$('.js-variant-option-value:first-child').click();
|
//$('.js-variant-option-value:first-child').click();
|
||||||
}
|
}
|
||||||
_changePriceVariant()
|
_changePriceVariant();
|
||||||
Reference in New Issue
Block a user