403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/namduongmarket.com-bk/public_html/site/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/namduongmarket.com-bk/public_html/site/views/popup.php
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js" type="text/javascript"></script>
<script>$.validate({});</script>

<div class="ajax-load">
	<span class="loading-icon">
		<svg version="1.1"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                 width="24px" height="30px" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
                <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0s" dur="0.6s" repeatCount="indefinite" />
                <animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0s" dur="0.6s" repeatCount="indefinite" />
                <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s" dur="0.6s" repeatCount="indefinite" />
            </rect>
            <rect x="8" y="10" width="4" height="10" fill="#333"  opacity="0.2">
                <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0.15s" dur="0.6s" repeatCount="indefinite" />
                <animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0.15s" dur="0.6s" repeatCount="indefinite" />
                <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0.15s" dur="0.6s" repeatCount="indefinite" />
            </rect>
            <rect x="16" y="10" width="4" height="10" fill="#333"  opacity="0.2">
                <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0.3s" dur="0.6s" repeatCount="indefinite" />
                <animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0.3s" dur="0.6s" repeatCount="indefinite" />
                <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0.3s" dur="0.6s" repeatCount="indefinite" />
            </rect>
        </svg> 
    </span> 
</div>
<div class="loading awe-popup">
    <div class="overlay"></div>
    <div class="loader" title="2"> 
    <svg version="1.1"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
             width="24px" height="30px" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;" xml:space="preserve">
        <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
            <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0s" dur="0.6s" repeatCount="indefinite" />
            <animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0s" dur="0.6s" repeatCount="indefinite" />
            <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s" dur="0.6s" repeatCount="indefinite" />
        </rect>
        <rect x="8" y="10" width="4" height="10" fill="#333"  opacity="0.2">
            <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0.15s" dur="0.6s" repeatCount="indefinite" />
            <animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0.15s" dur="0.6s" repeatCount="indefinite" />
            <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0.15s" dur="0.6s" repeatCount="indefinite" />
        </rect>
        <rect x="16" y="10" width="4" height="10" fill="#333"  opacity="0.2">
            <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" begin="0.3s" dur="0.6s" repeatCount="indefinite" />
            <animate attributeName="height" attributeType="XML" values="10; 20; 10" begin="0.3s" dur="0.6s" repeatCount="indefinite" />
            <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0.3s" dur="0.6s" repeatCount="indefinite" />
        </rect>
    </svg> 
    </div>
</div>
<div class="addcart-popup product-popup awe-popup">
    <div class="overlay no-background"></div>
    <div class="content">
        <div class="row row-noGutter">
            <div class="col-xl-6 col-xs-12">
                <div class="btn btn-full btn-primary a-left popup-title"><i class="fa fa-check"></i>Thêm vào giỏ hàng thành công </div>
                <a href="javascript:void(0)" class="close-window close-popup"><i class="fa fa-close"></i></a>
                <div class="info clearfix">
                    <div class="product-image margin-top-5"><img alt="popup" src="<?=skin?>images/logo.png" style="max-width:150px; height:auto"/></div>
                    <div class="product-info">
                        <p class="product-name"></p>
                        <p class="quantity color-main"><span>Số lượng: </span></p>
                        <p class="total-money color-main"><span>Tổng tiền: </span></p>
                    </div>
                    <div class="actions">
                        <button class="btn  btn-primary  margin-top-5 btn-continue">Tiếp tục mua hàng</button>
                        <button class="btn btn-gray margin-top-5" onclick="window.location='<?=site?>gio-hang.html'">Kiểm tra giỏ hàng</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="error-popup awe-popup">
    <div class="overlay no-background"></div>
    <div class="popup-inner content">
        <div class="error-message"></div>
    </div>
</div>
<script>
	Myweb.updateCartFromForm = function(cart, cart_summary_id, cart_count_id) {
		if ((typeof cart_summary_id) === 'string') {
			var cart_summary = jQuery(cart_summary_id);
			if (cart_summary.length) {
				cart_summary.empty();      
				jQuery.each(cart, function(key, value) {
					if (key === 'items') {
						var table = jQuery(cart_summary_id);           
						if (value.length) {   
							jQuery('<ul class="list-item-cart"></ul>').appendTo(table);
							jQuery.each(value, function(i, item) {	
								var src = item.image;
								if(src == null){
									src = "http://myweb.dktcdn.net/thumb/large/assets/themes_support/noimage.gif";
								}
								var buttonQty = "";
								if(item.quantity == '1'){
									buttonQty = 'disabled';
								}else{
									buttonQty = '';
								}
								jQuery('<li class="item productid-' + item.proid +'"><a class="product-image" href="' + item.url + '" title="' + item.name + '">'
									   + '<img alt="'+  item.name  + '" src="' + src +  '"width="'+ '80' +'"\></a>'
									   + '<div class="detail-item"><div class="product-details"> <a href="javascript:;" data-id="'+ item.proid +'" title="Xóa" class="remove-item-cart fa fa-remove">&nbsp;</a>'
									   + '<p class="product-name"> <a href="' + item.url + '" title="' + item.name + '">' + item.name + '</a></p></div>'
									   + '<div class="product-details-bottom"><span class="price pricechange">' + Myweb.formatMoney(item.price, "{{amount_no_decimals_with_comma_separator}}₫") + '</span>'
																														 + '<div class="quantity-select"><input class="variantID" type="hidden" name="variantId" value="'+ item.proid +'"><button onClick="var result = document.getElementById(\'qty'+ item.proid +'\'); var qty'+ item.proid +' = result.value; if( !isNaN( qty'+ item.proid +' ) &amp;&amp; qty'+ item.proid +' &gt; 1 ) result.value--;return false;" class="reduced items-count btn-minus" ' + buttonQty + ' type="button">–</button><input type="text" disabled maxlength="3" min="1" onchange="if(this.value == 0)this.value=1;" class="input-text number-sidebar qty'+ item.proid +'" id="qty'+ item.proid +'" name="Lines" id="updates_'+ item.proid +'" size="4" value="'+ item.quantity +'"><button onClick="var result = document.getElementById(\'qty'+ item.proid +'\'); var qty'+ item.proid +' = result.value; if( !isNaN( qty'+ item.proid +' )) result.value++;return false;" class="increase items-count btn-plus" type="button">+</button></div></div></li>').appendTo(table.children('.list-item-cart'));
									   }); 
								jQuery('<div><div class="top-subtotal">Tổng cộng: <span class="price">' + Myweb.formatMoney(cart.total_price, "{{amount_no_decimals_with_comma_separator}}₫") + '</span></div></div>').appendTo(table);
																															 jQuery('<div><div class="actions clearfix"><a href="<?=site?>thanh-toan.html" class="btn btn-gray btn-checkout" title="Thanh toán"><span>Thanh toán</span></a><a href="<?=site?>gio-hang.html" class="view-cart btn btn-white margin-left-5" title="Giỏ hàng"><span>Giỏ hàng</span></a></div></div>').appendTo(table);
									   }
									   else {
									   jQuery('<div class="no-item"><p>Không có sản phẩm nào trong giỏ hàng.</p></div>').appendTo(table);
							}
										}
										});
						}
					}
		updateCartDesc(cart);
		var numInput = document.querySelector('#cart-sidebar input.input-text');
		if (numInput != null){
			numInput.addEventListener('input', function(){
				var num = this.value.match(/^\d+$/);
				if (num == 0) {
					this.value = 1;
				}
				if (num === null) {
					this.value = "";
				}
			}, false)
		}
	}
	Myweb.updateCartPageForm = function(cart, cart_summary_id, cart_count_id) {
		if ((typeof cart_summary_id) === 'string') {
			var cart_summary = jQuery(cart_summary_id);
			if (cart_summary.length) {
				cart_summary.empty();      
				jQuery.each(cart, function(key, value) {
					if (key === 'items') {
						var table = jQuery(cart_summary_id);           
						if (value.length) {  
							var pageCart = '<div class="cart page_cart cart_des_page hidden-xs-down">'
							+ '<div class="col-xs-9 cart-col-1">'
							+ '<div class="cart-tbody">'
							+ '</div>'
							+ '</div>'
							+ '</div>';
							var pageCartCheckout = '<div class="col-xs-3 cart-col-2 cart-collaterals cart_submit">'
							+ '<div id="right-affix">'
							+ '<div class="each-row">'
							+ '<div class="box-style fee">'
							+ '<p class="list-info-price">'
							+ '<span>Tạm tính: </span>'
							+ '<strong class="totals_price price _text-right text_color_right1">65756756756</strong></p></div>'
							+ '<div class="box-style fee">'
							+ '<div class="total2 clearfix">'
							+ '<span class="text-label">Thành tiền: </span>'
							+ '<div class="amount">'
							+ '<p><strong class="totals_price">' + Myweb.formatMoney(cart.total_price, "{{amount_no_decimals_with_comma_separator}}₫") + '</strong></p>'
							+ '</div></div></div>'
							+ '<button class="button btn-proceed-checkout btn btn-large btn-block btn-danger btn-checkout" title="Thanh toán ngay" type="button" onclick="window.location.href=\'<?=site?>thanh-toan.html\'">Thanh toán ngay</button>'
							+ '<button class="button btn-proceed-checkout btn btn-large btn-block btn-danger btn-checkouts" title="Tiếp tục mua hàng" type="button" onclick="window.location.href=\'/collections/all\'">Tiếp tục mua hàng</button>'
							+ '</div></div></div>';
							jQuery(pageCart).appendTo(table);
							jQuery.each(value, function(i, item) {
								var buttonQty = "";
								if(item.quantity == '1'){
									buttonQty = 'disabled';
								}else{
									buttonQty = '';
								}
								var link_img1 = Myweb.resizeImage(item.image, 'medium');
								if(link_img1=="null" || link_img1 =='' || link_img1 ==null){
									link_img1 = 'https://myweb.dktcdn.net/thumb/large/assets/themes_support/noimage.gif';
								}
								var date = "";
								if(item.properties['khuyến mãi'] == null){
									date="Đang cập nhật";
								}else{
									date = item.properties['khuyến mãi'];
								}
								if(item.price == 0){
									var price = "Tặng kèm";
									var hidden = "hidden";
								}else{
									var hidden = "";
									var price = Myweb.formatMoney(item.price, "{{amount_no_decimals_with_comma_separator}}₫");
								}
								var item_price = item.price * item.quantity;
								var pageCartItem = '<div class="row shopping-cart-item productid-' + item.proid +'">'
								+ '<div class="col-xs-3 img-thumnail-custom">'
								+ '<p class="image">'
								+ '<a href="' + item.url + '" title="' + item.name + '" target="_blank">'
								+ '<img class="img-responsive" src="' + link_img1 +  '" alt="' + item.name + '" />'
								+ '</a>'
								+ '</p>'
								+ '</div>'
								+ '<div class="col-right col-xs-9">'
								+ '<div class="box-info-product">'
								+ '<p class="name">'
								+ '<a href="' + item.url + '" title="' + item.name + '" target="_blank">' + item.name + '</a>'
								+ '</p>'
								+ '<p class="date-tour">'
								+ 'Khuyến mãi: ' + date + ''
								+ '</p>'
								+ '<p class="seller-by hidden">' + item.variant_title + '</p>'
								+ '<p class="action">'
								+ '<a href="javascript:;" class="btn btn-link btn-item-delete remove-item-cart" data-id="'+ item.proid +'" title="Xóa">Xóa</a>'
								+ '</p>'
								+ '</div>'
								+ '<div class="box-price">'
								+ '<p class="price pricechange">' + price + '</p>'
																		   + '</div>'
																		   + '<div class="quantity-block">'
																		   + '<div class="input-group bootstrap-touchspin">'
																		   + '<div class="input-group-btn">'
																		   + '<input class="variantID" type="hidden" name="variantId" value="'+ item.proid +'">'
																		   + '<button onClick="var result = document.getElementById(\'qtyItem'+ item.proid +'\'); var qtyItem'+ item.proid +' = result.value; if( !isNaN( qtyItem'+ item.proid +' )) result.value++;return false;" class="increase_pop items-count btn-plus btn btn-default bootstrap-touchspin-up" type="button">+</button>'
																		   + '<input type="text" onchange="if(this.value == 0)this.value=1;" maxlength="12" min="1" disabled class="form-control quantity-r2 quantity js-quantity-product input-text number-sidebar input_pop input_pop qtyItem'+ item.proid +'" id="qtyItem'+ item.proid +'" name="Lines" id="updates_'+ item.proid +'" size="4" value="'+ item.quantity +'">'
																		   + '<button onClick="var result = document.getElementById(\'qtyItem'+ item.proid +'\'); var qtyItem'+ item.proid +' = result.value; if( !isNaN( qtyItem'+ item.proid +' ) &amp;&amp; qtyItem'+ item.proid +' &gt; 1 ) result.value--;return false;" ' + buttonQty + ' class="reduced_pop items-count btn-minus btn btn-default bootstrap-touchspin-down" type="button">–</button>'
																		   + '</div>'
																		   + '</div>'
																		   + '</div>'
																		   + '</div>'
																		   + '</div>';
																		   jQuery(pageCartItem).appendTo(table.find('.cart-tbody'));
								if(item.variant_title == 'Default Title'){
									$('.seller-by').hide();
								}
							}); 
							jQuery(pageCartCheckout).appendTo(table.children('.cart'));
						}else {
							jQuery('<p class="hidden-xs-down">Không có sản phẩm nào trong giỏ hàng. Quay lại <a href="/" style="color:;">cửa hàng</a> để tiếp tục mua sắm.</p>').appendTo(table);
								   jQuery('.cart_desktop_page').css('min-height', 'auto');
						}
					}
				});
			}
		}
		updateCartDesc(cart);
		jQuery('#wait').hide();
	}
	Myweb.updateCartPopupForm = function(cart, cart_summary_id, cart_count_id) {
		if ((typeof cart_summary_id) === 'string') {
			var cart_summary = jQuery(cart_summary_id);
			if (cart_summary.length) {
				cart_summary.empty();      
				jQuery.each(cart, function(key, value) {
					if (key === 'items') {
						var table = jQuery(cart_summary_id);           
						if (value.length) { 
							jQuery.each(value, function(i, item) {
								var link_img1 = Myweb.resizeImage(item.image, 'small');
								if(link_img1=="null" || link_img1 =='' || link_img1 ==null){
									link_img1 = 'https://myweb.dktcdn.net/thumb/large/assets/themes_support/noimage.gif';
								}
								var buttonQty = "";
								if(item.quantity == '1'){
									buttonQty = 'disabled';
								}else{
									buttonQty = '';
								}
								var title_va = item.variant_title;
								if( title_va == 'Default Title'){
									title_va = "";
								}else {
									title_va = item.variant_title;
								}
								var date = "";
								if(item.properties['khuyến mãi'] == null){
									date="Đang cập nhật";
								}else{
									date = item.properties['khuyến mãi'];
								}
								var pageCartItem = '<div class="item-popup productid-' + item.proid +'"><div style="width: 55%;" class="text-left"><div class="item-image">'
								+ '<a class="product-image" href="' + item.url + '" title="' + item.name + '"><img alt="'+  item.name  + '" src="' + link_img1 +  '"width="'+ '80' +'"\></a>'
								+ '</div><div class="item-info"><p class="item-name"><a href="' + item.url + '" title="' + item.name + '">' + item.title + '</a></p>'
								+ '<p class="variant-title-popup">' + title_va + '</span>'
								+ '<p class="item-remove"><a href="javascript:;" class="remove-item-cart" title="Xóa" data-id="'+ item.proid +'"><i class="fa fa-close"></i> Bỏ sản phẩm</a></p><p class="addpass" style="color:#fff;">'+ item.proid +'</p></div></div>'
								+ '<div style="width: 15%;" class="text-right"><div class="item-price"><span class="price pricechange">' + Myweb.formatMoney(item.price, "{{amount_no_decimals_with_comma_separator}}₫") + '</span>'
					+ '</div></div><div style="width: 15%;" class="text-center"><input class="variantID" type="hidden" name="variantId" value="'+ item.proid +'">'
					+ '<button onClick="var result = document.getElementById(\'qtyItem'+ item.proid +'\'); var qtyItem'+ item.proid +' = result.value; if( !isNaN( qtyItem'+ item.proid +' ) &amp;&amp; qtyItem'+ item.proid +' &gt; 1 ) result.value--;return false;" ' + buttonQty + ' class="reduced items-count btn-minus" type="button">–</button>'
					+ '<input disabled type="text" maxlength="12" min="0" class="input-text number-sidebar qtyItem'+ item.proid +'" id="qtyItem'+ item.proid +'" name="Lines" id="updates_'+ item.proid +'" size="4" value="'+ item.quantity +'">'
					+ '<button onClick="var result = document.getElementById(\'qtyItem'+ item.proid +'\'); var qtyItem'+ item.proid +' = result.value; if( !isNaN( qtyItem'+ item.proid +' )) result.value++;return false;" class="increase items-count btn-plus" type="button">+</button></div>'
					+ '<div style="width: 15%;" class="text-right"><span class="cart-price"> <span class="price">'+ Myweb.formatMoney(item.price * item.quantity, "{{amount_no_decimals_with_comma_separator}}₫") +'</span> </span></div>'
					+ '<div class="date-tour" style="width:100%;">'
					+ 'Khuyến mãi: ' + date + ''
					+ '</div></div>';
					jQuery(pageCartItem).prependTo(table);
								$('.link_product').text();
							}); 
						}
					}
				});
			}
		}
		jQuery('.total-price').html(Myweb.formatMoney(cart.total_price, "{{amount_no_decimals_with_comma_separator}}₫"));
	   updateCartDesc(cart);
	}
	Myweb.updateCartPageFormMobile = function(cart, cart_summary_id, cart_count_id) {
		if ((typeof cart_summary_id) === 'string') {
				var cart_summary = jQuery(cart_summary_id);
				if (cart_summary.length) {
					cart_summary.empty();      
					jQuery.each(cart, function(key, value) {
						if (key === 'items') {
							var table = jQuery(cart_summary_id);           
							if (value.length) {   
								jQuery('<div class="cart_page_mobile content-product-list"></div>').appendTo(table);
								jQuery.each(value, function(i, item) {
									if( item.image != null){
										var src = Myweb.resizeImage(item.image, 'small');
									}else{
										var src = "https://myweb.dktcdn.net/thumb/large/assets/themes_support/noimage.gif";
									}
									var date = "";
									if(item.properties['khuyến mãi'] == null){
										date="Đang cập nhật";
									}else{
										date = item.properties['khuyến mãi'];
									}
									jQuery('<div class="item-product item productid-' + item.proid +' "><div class="item-product-cart-mobile"><a class="product-images1" href="' + item.url + '"  title="' + item.name + '"><img width="80" height="150" alt="" src="' + src +  '" alt="' + item.name + '"></a></div>'
										   + '<div class="title-product-cart-mobile"><h3><a href="' + item.url + '" title="' + item.name + '">' + item.name + '</a></h3><p>Giá: <span class="pricechange">' + Myweb.formatMoney(item.price, "{{amount_no_decimals_with_comma_separator}}₫") + '</span></p></div>'
						   + '<div class="select-item-qty-mobile"><div class="txt_center">'
						   + '<input class="variantID" type="hidden" name="variantId" value="'+ item.proid +'"><button onClick="var result = document.getElementById(\'qtyMobile'+ item.proid +'\'); var qtyMobile'+ item.proid +' = result.value; if( !isNaN( qtyMobile'+ item.proid +' ) &amp;&amp; qtyMobile'+ item.proid +' &gt; 1 ) result.value--;return false;" class="reduced items-count btn-minus" type="button">–</button><input type="text" maxlength="12" min="0" disabled class="input-text number-sidebar qtyMobile'+ item.proid +'" id="qtyMobile'+ item.proid +'" name="Lines" id="updates_'+ item.proid +'" size="4" value="'+ item.quantity +'"><button onClick="var result = document.getElementById(\'qtyMobile'+ item.proid +'\'); var qtyMobile'+ item.proid +' = result.value; if( !isNaN( qtyMobile'+ item.proid +' )) result.value++;return false;" class="increase items-count btn-plus" type="button">+</button></div>'
						   + '<a class="button remove-item remove-item-cart" href="javascript:;" data-id="'+ item.proid +'" title="Xóa">Xoá</a></div>'
						   + '<div class="clearfix"></div><div class="date-tour">'
					+ 'Khuyến mãi: ' + date + ''
					+ '</div>').appendTo(table.children('.content-product-list'));
										   });
									jQuery('<div class="header-cart-price" style=""><div class="title-cart clearfix"><h3 class="text-xs-left">Tổng tiền</h3><a class="text-xs-right totals_price_mobile" title="' + Myweb.formatMoney(cart.total_price, "{{amount_no_decimals_with_comma_separator}}₫") + '">' + Myweb.formatMoney(cart.total_price, "{{amount_no_decimals_with_comma_separator}}₫") + '</a></div>'
					   + '<div class="checkout"><button class="btn-proceed-checkout-mobile" title="Thanh toán ngay" type="button" onclick="window.location.href=\'<?=site?>thanh-toan.html\'">'
					   + '<span>Thanh toán ngay</span></button></div>'
					   + '<button class="btn btn-proceed-continues-mobile" title="Tiếp tục mua hàng" type="button" onclick="window.location.href=\'/collections/all\'">Tiếp tục mua hàng</button>'
					   +'</div>').appendTo(table);
										   }
										   }
										   });
								}
											}
		updateCartDesc(cart);
	}
	function updateCartDesc(data){
		var $cartPrice = Myweb.formatMoney(data.total_price, "{{amount_no_decimals_with_comma_separator}}₫"),
			$cartMobile = $('#header .cart-mobile .quantity-product'),
			$cartDesktop = $('.count_item_pr'),
			$cartDesktopList = $('.cart-counter-list'),
			$cartPopup = $('.cart-popup-count');
		switch(data.item_count){
			case 0:
				$cartMobile.text('0');
				$cartDesktop.text('0');
				$cartDesktopList.text('0');
				$cartPopup.text('0');
				break;
			case 1:
				$cartMobile.text('1');
				$cartDesktop.text('1');
				$cartDesktopList.text('1');
				$cartPopup.text('1');
				break;
			default:
				$cartMobile.text(data.item_count);
				$cartDesktop.text(data.item_count);
				$cartDesktopList.text(data.item_count);
				$cartPopup.text(data.item_count);
				break;
		}
		$('.top-cart-content .top-subtotal .price, aside.sidebar .block-cart .subtotal .price, .popup-total .total-price').html($cartPrice);
		$('.popup-total .total-price').html($cartPrice);
		$('.cart-collaterals .totals_price').html($cartPrice);
		$('.header-cart-price .totals_price_mobile').html($cartPrice);
		$('.cartCount, .cart-products-count').html(data.item_count);
	}
	Myweb.onCartUpdate = function(cart) {
		Myweb.updateCartFromForm(cart, '.mini-products-list');
		Myweb.updateCartPopupForm(cart, '#popup-cart-desktop .tbody-popup');
		
	};
	Myweb.onCartUpdateClick = function(cart, variantId) {
		jQuery.each(cart, function(key, value) {
			if (key === 'items') {    
				jQuery.each(value, function(i, item) {	
					if(item.proid == variantId){
						$('.productid-'+variantId).find('.pricechange').html(Myweb.formatMoney(item.price, "{{amount_no_decimals_with_comma_separator}}₫"));
						$('.productid-'+variantId).find('.cart-price span.price').html(Myweb.formatMoney(item.price * item.quantity, "{{amount_no_decimals_with_comma_separator}}₫"));
						$('.productid-'+variantId).find('.items-count').prop("disabled", false);
						$('.productid-'+variantId +' .number-sidebar').val(item.quantity);
						if(item.quantity == '1'){
							$('.productid-'+variantId).find('.items-count.btn-minus').prop("disabled", true);
						}
					}
				}); 
			}
		});
		updateCartDesc(cart);
	}
	Myweb.onCartRemoveClick = function(cart, variantId) {
		jQuery.each(cart, function(key, value) {
			if (key === 'items') {    
				jQuery.each(value, function(i, item) {	
					if(item.proid == variantId){
						$('.productid-'+variantId).remove();
					}
				}); 
			}
		});
		updateCartDesc(cart);
	}
	
	$(window).ready(function(){
		$.ajax({
			type: 'GET',
			url: site+'cart.js',
			async: false,
			cache: false,
			dataType: 'json',
			success: function (cart){
				Myweb.updateCartFromForm(cart, '.mini-products-list');
				Myweb.updateCartPopupForm(cart, '#popup-cart-desktop .tbody-popup'); 
				
			}
		});
	});
</script>
<div id="popup-cart" class="modal fade" role="dialog">
    <div id="popup-cart-desktop" class="clearfix">
        <div class="title-popup-cart"><i class="ion ion-md-notifications-outline" aria-hidden="true"></i> Bạn đã thêm <span class="cart-popup-name"></span> vào giỏ hàng</div>
        <div class="title-quantity-popup"><a href="<?=site?>gio-hang.html" title="Giỏ hàng của bạn">Giỏ hàng của bạn có <span class="cart-popup-count"></span> sản phẩm</a></div>
        <div class="content-popup-cart clearfix">
            <div class="thead-popup">
                <div style="width: 55%;" class="text-left">Sản phẩm</div>
                <div style="width: 15%;" class="text-center">Đơn giá</div>
                <div style="width: 15%;" class="text-center">Số lượng</div>
                <div style="width: 15%;" class="text-center">Thành tiền</div>
            </div>
            <div class="tbody-popup"></div>
            <div class="tfoot-popup">
                <div class="tfoot-popup-1 clearfix">
                    <div class="pull-left popupcon"><a class="button btn-continue" title="Tiếp tục mua hàng" onclick="$('#popup-cart').modal('hide');"><span><span><i class="fa fa-caret-left" aria-hidden="true"></i> Tiếp tục mua hàng</span></span></a></div>
                    <div class="pull-right popup-total">
                        <p>Thành tiền: <span class="total-price"></span></p>
                    </div>
                </div>
                <div class="tfoot-popup-2 clearfix"><a class="button btn-proceed-checkout" title="Thanh toán đơn hàng" href="<?=site?>thanh-toan.html"><span>Thanh toán đơn hàng</span></a></div>
            </div>
        </div>
        <a class="quickview-close close-window" href="javascript:;" onclick="$('#popup-cart').modal('hide');" title="Đóng"><i class="fa fa-times"></i></a> </div>
</div>
<div id="myModal" class="modal fade" role="dialog"></div>
<script src="<?=skin?>js/appear.js" type="text/javascript"></script> 
<script src="<?=skin?>js/cs.script.js" type="text/javascript"></script> 
<script src="<?=skin?>js/main.js" type="text/javascript"></script>
<link href="<?=skin?>css/lightbox.css" rel="stylesheet" type="text/css" />
<script src="<?=skin?>js/jquery.elevatezoom308.min.js" type="text/javascript"></script> 
<script src="<?=skin?>js/jquery.prettyphoto.min005e.js" type="text/javascript"></script> 
<script src="<?=skin?>js/jquery.prettyphoto.init.min367a.js" type="text/javascript"></script>
<div class="backdrop__body-backdrop___1rvky"></div>
<div class="mobile-main-menu">
    <div class="drawer-header"> <a href="account/login">
        <div class="drawer-header--auth">
            <div class="_object"><img src="<?=skin?>images/user.svg" alt="Ant Mobile" /></div>
            <div class="_body">ĐĂNG NHẬP<br>
                Nhận nhiều ưu đãi hơn</div>
        </div>
        </a> </div>
    <ul class="ul-first-menu">
        <li><a href="/account/login" title="Đăng nhập">Đăng nhập</a></li>
        <li><a href="/account/register" title="Đăng ký">Đăng ký</a></li>
    </ul>
    <div class="la-scroll-fix-infor-user">
        <div class="la-nav-menu-items">
            <div class="la-title-nav-items"><strong>Danh mục</strong></div>
            <ul class="la-nav-list-items">
                <li class="ng-scope"><a href="/" title="Trang chủ">Trang chủ</a></li>
                <li class="ng-scope"><a href="/gioi-thieu" title="Giới thiệu">Giới thiệu</a></li>
                <li class="ng-scope ng-has-child1"> <a href="/collections/all" title="Sản phẩm">Sản phẩm <i class="fa fa-plus fa1" aria-hidden="true"></i></a>
                    <ul class="ul-has-child1">
                        <li class="ng-scope ng-has-child2"><a href="/dien-thoai" title="Điện thoại">Điện thoại <i class="fa fa-plus fa2" aria-hidden="true"></i></a>
                            <ul class="ul-has-child2">
                                <li class="ng-scope"><a href="/samsung" title="Samsung">Samsung</a></li>
                                <li class="ng-scope"><a href="/apple" title="Apple">Apple</a></li>
                                <li class="ng-scope"><a href="/sony" title="Sony">Sony</a></li>
                                <li class="ng-scope"><a href="/oppo" title="Oppo">Oppo</a></li>
                                <li class="ng-scope"><a href="/huawei" title="Huawei">Huawei</a></li>
                                <li class="ng-scope"><a href="/xiaomi" title="Xiaomi">Xiaomi</a></li>
                                <li class="ng-scope"><a href="/vivo" title="Vivo">Vivo</a></li>
                            </ul>
                        </li>
                        <li class="ng-scope ng-has-child2"><a href="/tablet" title="Tablet">Tablet <i class="fa fa-plus fa2" aria-hidden="true"></i></a>
                            <ul class="ul-has-child2">
                                <li class="ng-scope"><a href="/apple-ipad" title="Apple (iPad)">Apple (iPad)</a></li>
                                <li class="ng-scope"><a href="/samsung-1" title="Samsung">Samsung</a></li>
                                <li class="ng-scope"><a href="/lenovo-1" title="Lenovo">Lenovo</a></li>
                                <li class="ng-scope"><a href="/masstel" title="Masstel">Masstel</a></li>
                                <li class="ng-scope"><a href="/huawei-1" title="Huawei">Huawei</a></li>
                                <li class="ng-scope"><a href="/itel" title="Itel">Itel</a></li>
                            </ul>
                        </li>
                        <li class="ng-scope ng-has-child2"><a href="/laptop" title="Laptop">Laptop <i class="fa fa-plus fa2" aria-hidden="true"></i></a>
                            <ul class="ul-has-child2">
                                <li class="ng-scope"><a href="/apple-macbook" title="Apple (Macbook)">Apple (Macbook)</a></li>
                                <li class="ng-scope"><a href="/asus" title="Asus">Asus</a></li>
                                <li class="ng-scope"><a href="/acer" title="Acer">Acer</a></li>
                                <li class="ng-scope"><a href="/dell" title="Dell">Dell</a></li>
                                <li class="ng-scope"><a href="/hp" title="HP">HP</a></li>
                                <li class="ng-scope"><a href="/lenovo" title="Lenovo">Lenovo</a></li>
                                <li class="ng-scope"><a href="/msi" title="MSI">MSI</a></li>
                            </ul>
                        </li>
                        <li class="ng-scope"><a href="/phu-kien" title="Phụ kiện">Phụ kiện</a></li>
                        <li class="ng-scope"><a href="/dong-ho" title="Đồng hồ">Đồng hồ</a></li>
                        <li class="ng-scope"><a href="/may-cu" title="Máy cũ">Máy cũ</a></li>
                    </ul>
                </li>
                <li class="ng-scope ng-has-child1"> <a href="/tin-tuc" title="Tin tức">Tin tức <i class="fa fa-plus fa1" aria-hidden="true"></i></a>
                    <ul class="ul-has-child1">
                        <li class="ng-scope ng-has-child2"><a href="/" title="Sản phẩm">Sản phẩm <i class="fa fa-plus fa2" aria-hidden="true"></i></a>
                            <ul class="ul-has-child2">
                                <li class="ng-scope"><a href="/dien-thoai" title="Điện thoại">Điện thoại</a></li>
                                <li class="ng-scope"><a href="/tablet" title="Tablet">Tablet</a></li>
                                <li class="ng-scope"><a href="/laptop" title="Laptop">Laptop</a></li>
                                <li class="ng-scope"><a href="/phu-kien" title="Phụ kiện">Phụ kiện</a></li>
                                <li class="ng-scope"><a href="/dong-ho" title="Đồng hồ">Đồng hồ</a></li>
                                <li class="ng-scope"><a href="/may-cu" title="Máy cũ">Máy cũ</a></li>
                            </ul>
                        </li>
                        <li class="ng-scope"><a href="/" title="Liên hệ">Liên hệ</a></li>
                        <li class="ng-scope ng-has-child2"><a href="/" title="Tin tức">Tin tức <i class="fa fa-plus fa2" aria-hidden="true"></i></a>
                            <ul class="ul-has-child2">
                                <li class="ng-scope"><a href="/" title="Sản phẩm">Sản phẩm</a></li>
                                <li class="ng-scope"><a href="/" title="Liên hệ">Liên hệ</a></li>
                                <li class="ng-scope"><a href="/" title="Tin tức">Tin tức</a></li>
                            </ul>
                        </li>
                    </ul>
                </li>
                <li class="ng-scope"><a href="/lien-he" title="Liên hệ">Liên hệ</a></li>
            </ul>
        </div>
    </div>
    <ul class="mobile-support">
        <li>
            <div class="drawer-text-support">HỖ TRỢ</div>
        </li>
        <li><i class="fa fa-phone" aria-hidden="true"></i> HOTLINE: <a href="tel:18006750" title="18006750">1800 6750</a></li>
        <li><i class="fa fa-envelope" aria-hidden="true"></i> EMAIL: <a href="mailto:baotrung304@gmail.com" title="baotrung304@gmail.com">baotrung304@gmail.com</a></li>
    </ul>
</div>
<script type="text/javascript">
	WebFontConfig = {
		custom: {
			families: ['FontAwesome'],
			urls: ['https://use.fontawesome.com/releases/v5.7.2/css/all.css']
		}
	};
	(function() {
		var wf = document.createElement('script');
		wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
		wf.type = 'text/javascript';
		wf.async = 'true';
		var s = document.getElementsByTagName('script')[0];
		s.parentNode.insertBefore(wf, s);
	})();
</script>
<div class="support-cart mini-cart hidden-sm hidden-xs"> <a class="btn-support-cart" href="<?=site?>cart"> 
	<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 435.104 435.104" style="enable-background:new 0 0 435.104 435.104;" xml:space="preserve" width="30px" height="30px">
    <g>
        <circle cx="154.112" cy="377.684" r="52.736" data-original="#000000" class="active-path" data-old_color="#Ffffff" fill="#FFFFFF"/>
        <path d="M323.072,324.436L323.072,324.436c-29.267-2.88-55.327,18.51-58.207,47.777c-2.88,29.267,18.51,55.327,47.777,58.207     c3.468,0.341,6.962,0.341,10.43,0c29.267-2.88,50.657-28.94,47.777-58.207C368.361,346.928,348.356,326.924,323.072,324.436z" data-original="#000000" class="active-path" data-old_color="#F8F8F8" fill="#FFFFFF"/>
        <path d="M431.616,123.732c-2.62-3.923-7.059-6.239-11.776-6.144h-58.368v-1.024C361.476,54.637,311.278,4.432,249.351,4.428     C187.425,4.424,137.22,54.622,137.216,116.549c0,0.005,0,0.01,0,0.015v1.024h-43.52L78.848,50.004     C77.199,43.129,71.07,38.268,64,38.228H0v30.72h51.712l47.616,218.624c1.257,7.188,7.552,12.397,14.848,12.288h267.776     c7.07-0.041,13.198-4.901,14.848-11.776l37.888-151.552C435.799,132.019,434.654,127.248,431.616,123.732z M249.344,197.972     c-44.96,0-81.408-36.448-81.408-81.408s36.448-81.408,81.408-81.408s81.408,36.448,81.408,81.408     C330.473,161.408,294.188,197.692,249.344,197.972z" data-original="#000000" class="active-path" data-old_color="#F8F8F8" fill="#FFFFFF"/>
        <path d="M237.056,118.1l-28.16-28.672l-22.016,21.504l38.912,39.424c2.836,2.894,6.7,4.55,10.752,4.608     c3.999,0.196,7.897-1.289,10.752-4.096l64.512-60.928l-20.992-22.528L237.056,118.1z" data-original="#000000" class="active-path" data-old_color="#F8F8F8" fill="#FFFFFF"/>
		</g>
    </svg>
    <div class="animated infinite zoomIn kenit-alo-circle"></div>
    <div class="animated infinite pulse kenit-alo-circle-fill"></div>
    <span class="cnt crl-bg count_item_pr">0</span> </a>
    <div class="top-cart-content hidden-md hidden-sm hidden-xs">
        <ul id="cart-sidebar" class="mini-products-list count_li">
            <li class="list-item">
                <ul>
                </ul>
            </li>
            <li class="action">
                <ul>
                    <li class="li-fix-1">
                        <div class="top-subtotal">Tổng tiền thanh toán:<span class="price"></span></div>
                    </li>
                    <li class="li-fix-2">
                        <div class="actions clearfix"> <a href="<?=site?>gio-hang.html" class="btn btn-primary">Giỏ hàng</a> <a href="<?=site?>thanh-toan.html" class="btn btn-checkout btn-gray">Thanh toán</a> </div>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>
<div id="menu-overlay" class=""></div>

Youez - 2016 - github.com/yon3zu
LinuXploit