Product Code: 53203013346
'); }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); $('#add-to-quote').bind('click', function() { var siteUrl = 'https://theoldschoolgamevault.com/'; $.ajax({ type: 'POST', url: siteUrl + 'index.php?option=com_eshop&task=quote.add', data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'), dataType: 'json', beforeSend: function() { $('#add-to-quote').attr('disabled', true); $('#add-to-quote').after('
'); }, complete: function() { $('#add-to-quote').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.error').remove(); if (json['error']) { if (json['error']['option']) { for (i in json['error']['option']) { $('#option-' + i).after('
' + json['error']['option'][i] + ''); } } } if (json['success']) { $.ajax({ url: siteUrl + 'index.php?option=com_eshop&view=quote&layout=popout&format=raw&pt=' + json['time'], dataType: 'html', success: function(html) { $.colorbox({ overlayClose: true, opacity: 0.5, width: '90%', maxWidth: '800px', href: false, html: html }); $.ajax({ url: siteUrl + 'index.php?option=com_eshop&view=quote&layout=mini&format=raw&pt=' + json['time'], dataType: 'html', success: function(html) { $('#eshop-quote').html(html); $('.eshop-content').hide(); }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } } }); }); // Submit review button $('#button-review').bind('click', function() { var siteUrl = 'https://theoldschoolgamevault.com/'; $.ajax({ url: siteUrl + 'index.php?option=com_eshop&task=product.writeReview', type: 'post', dataType: 'json', data: $('#reviews input[type=\'text\'], #reviews textarea, #reviews select, #reviews input[type=\'hidden\']'), beforeSend: function() { $('.success, .warning').remove(); $('#button-review').attr('disabled', true); $('#button-review').after('
'); }, complete: function() { $('#button-review').attr('disabled', false); $('.wait').remove(); }, success: function(data) { if (data['error']) { $('#review-title').after('
' + data['error'] + '
'); } if (data['success']) { $('#review-title').after('
' + data['success'] + '
'); $('input[name=\'author\']').val(''); $('input[name=\'email\']').val(''); $('textarea[name=\'review\']').val(''); $('input[name=\'rating\']:checked').attr('checked', ''); } } }); }); // Function to update price when options are added updatePrice = (function(){ var siteUrl = 'https://theoldschoolgamevault.com/'; $.ajax({ type: 'POST', url: siteUrl + 'index.php?option=com_eshop&view=product&id=11512&layout=price&format=raw', data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'), dataType: 'html', success: function(html) { $('#product-price').html(html); } }); }) updateInfo = (function(){ var siteUrl = 'https://theoldschoolgamevault.com/'; $.ajax({ type: 'POST', url: siteUrl + 'index.php?option=com_eshop&view=product&id=11512&layout=info&format=raw', data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'), dataType: 'html', success: function(html) { $('#product-dynamic-info').html(html); } }); }) $(document).ready(function(){ $('.image-additional').slick({ dots: false, infinite: false, touchMove: false, slidesToShow: 3, slidesToScroll: 1, autoplay: 0, autoplaySpeed: 3000, speed: 300 }); }); })