Nobo Shako

Back to Category
'; $('#itemDetails .price').html(html); /* $('#itemDetails .stock').html(stock);*/ $('#itemDetails .details').html(response.item.description); $('#itemDetails .big-image img').attr('src', 'https://ecommerce.datasoftnext-int.com/images/product/' + response.item.image); console.log(response); var images = ''; $.each(response.itemImages, function (i, item) { images += ''; }) $('#itemDetails .small-images').html(images); var bookimage = ''; $.each(response.bookImages, function (i, item) { bookimage += ''; }) $('#itemDetails .tailoring-images').html(bookimage); $('.product_id').val(response.item.id); } }); $('.site-header').css("z-index", "1"); document.location.hash = "#itemDetails"; } $(document).on("click", ".item-small-image", function () { var name = $(this).data('name'); $('#itemDetails .big-image img').attr('src', 'https://ecommerce.datasoftnext-int.com/images/product/' + name); }); function openQuotation() { var qty = $('.qty').val(); $('.product_qty').val(qty); $('.site-header').css("z-index", "1"); document.location.hash = "#quotation-modal"; } function showBook() { $('.site-header').css("z-index", "1"); document.location.hash = "#bookImage"; } function bookSelected(id, img) { $('.book_id').val(id); $('.clear-look').show(); $('.selected').attr('src', 'https://ecommerce.datasoftnext-int.com/images/cms/' + img).show(); // let href = $('#btnAddToCart').attr('href'); $('#btnAddToCart').attr('href', product_cart_url + '/' + id); alert('Look Book Selected'); closeBookImage(); // document.location.hash = "#bookImage"; } function clearLookBook() { $('.selected').hide(); $('.clear-look').hide(); } function closeBookImage() { document.location.hash = "#itemDetails"; } $('html').click(function (e) { var container = $(".tailoring-images"); if (!container.is(e.target) && e.target.className != 'select' && container.has(e.target).length === 0) // ... nor a descendant of the container { container.hide(); } });