Hỗ Trợ
Mr Tung: 0903 333 977
(28)3849 0673
(28)3849 4589
';
//html += '
' + $(element).find('.cart').html() + '
';
//html += '
' + $(element).find('.wishlist').html() + '
';
//html += '
' + $(element).find('.compare').html() + '
';
html += '
';
html += '';
var image = $(element).find('.image').html();
if (image != null) {
html += '
' + image + '
';
}
var price = $(element).find('.price').html();
if (price != null) {
html += '
' + price + '
';
}
html += '
' + $(element).find('.name').html() + '
';
html += '
' + $(element).find('.description').html() + '
';
var rating = $(element).find('.rating').html();
if (rating != null) {
html += '
' + rating + '
';
}
html += '
';
$(element).html(html);
});
$('.display').html('Hiển thị: Danh sách / Lưới');
$.cookie('display', 'list');
} else {
$('.product-list').attr('class', 'product-grid');
$('.product-grid > div').each(function(index, element) {
html = '';
html += ' ';
var image = $(element).find('.image').html();
if (image != null) {
html += '' + image + '
';
}
html += '' + $(element).find('.name').html() + '
';
html += '' + $(element).find('.description').html() + '
';
var price = $(element).find('.price').html();
if (price != null) {
html += '' + price + '
';
}
var rating = $(element).find('.rating').html();
if (rating != null) {
html += '' + rating + '
';
}
//html += '' + $(element).find('.cart').html() + '
';
//html += '' + $(element).find('.wishlist').html() + '
';
//html += '' + $(element).find('.compare').html() + '
';
$(element).html(html);
});
$('.display').html('Hiển thị: Danh sách / Lưới');
$.cookie('display', 'grid');
}
}
view = $.cookie('display');
if (view) {
display(view);
} else {
display('grid');
}
//-->
BACK TO TOP