Buyjee Ynr Si 4

Buyjee Ynr Si 4

About Creator

Shipping and Returns

// fancy box $(".btn-gallery").on('click', function() { $.fancybox.open([{ src : $(this).attr("vlt"), },],{ loop : false, arrows : true, infobar : true, margin : [44,0,22,0], buttons : [ // 'arrowLeft', // 'counter', // 'arrowRight', 'close' ], thumbs : { autoStart : true, axis : 'y' } // hash : "btn-gallery" }); }); /*$().fancybox({ selector : '.item a:visible', });*/ /*single product page price*/ $(document).ready(function () { $(document).on('change', '#vvariationtion', function () { var variationId = $(this).val(); if (variationId != '0') { $.ajax({ url : "https://buyjee.com/action", method: 'GET', data: { variation_id: variationId }, success: function (response) { //alert('hello'); console.log("Server Response:", response); var responseParts = response.split('|'); if (responseParts[0] === 'Success') { var regularPrice = responseParts[1].replace('Regular Price: ', ''); var SalePrice = responseParts[2].replace('Sale Price: ', ''); salePrice = SalePrice.replace(/[^0-9.-]+/g, ''); // Display the prices $('#singleo_price').html(regularPrice); $('#singlep_price').html('₹'+salePrice); } else { $('#size-msg').text(responseParts[1]); } }, error: function (xhr, status, error) { console.error("AJAX Error: ", error); $('#size-msg').text('Error fetching price'); } }); } else { $('#size-msg').text('Select a size to see the price'); } }); });