Untitled
plain_text
a month ago
1.1 kB
3
Indexable
Never
var image = ''; if(line_item['image'] == null){ //line_item = add.js isteğinden dönen item image = 'https://hstatic.net/0/0/global/noDefaultImage6.gif'; } else{ image = Haravan.resizeImage(line_item['image'], 'small'); } var $info = '<div class="row"><div class="col-md-12 col-xs-12"><p class="jGowl-text">Đã thêm vào giỏ hàng thành công!</p></div><div class="col-md-4 col-xs-4"><a href="' + line_item['url'] + '"><img width="70px" src="' + image + '" alt="' + line_item['title'] + '"/></a></div><div class="col-md-8 col-xs-8"><div class="jGrowl-note"><a class="jGrowl-title" href="' + line_item['url'] + '">' + line_item['title'] + '</a><ins>' + Haravan.formatMoney(line_item['price'], formatMoney) + '</ins></div></div></div>'; $('#modal-quickview').modal('hide'); HRT.All.notifyProduct($info); $('.proloop-actions[data-vrid="'+variant_id+'"] .proloop-value').val(line_item.quantity); HRT.All.getCartModal(); if($(window).width() < 992){HRT.All.sidenav_open($site_cart, '#js-sitenav-cart', 'js-current')}