CAFE COTON LA REUNION

74 rue Jean Chatel , 97435, Saint Denis

Reunion Island


02 62 50 20 06
:


Voir tous les magasins
$( document ).ready(function() { var base_url = window.location.protocol + '//' + window.location.host + '/'; $('.ajax_cart_quantity').css('color','#ffffff'); $.ajax({ type: "POST", url: base_url + "module/ps_shoppingcart/ajax", dataType:"json", success: function(retour) { $('.ajax_cart_quantity').css('color','#132339'); $('.ajax_cart_quantity').html("("+retour.nb+")"); } }); //on cache la zone de prix && on affiche le preloader $(this).find(".current-price").html(''); //Si page catégorie prods_ids = $('#product_page_product_id').val(); $(this).addClass('updated'); $.ajax({ type: "POST", dataType:"json", url: base_url + "module/boostcache/ajax", data:{ prods_id: prods_ids, // Second add quotes on the value. }, success: function(retour) { //on cache le preloader jQuery.each(retour, function(i, val) { var str= ""; //on charge les nouveaux prix if(val.has_percent_discount == true){ str = '
'+val.price+' €
'+val.new_price+'
'; //str = '
'+val.price+' € '+val.new_price+'
' }else{ str = '
'+val.price+' €
'; } $(".product-price-container").html(str); }); } }); // Autofill size var referrer = document.referrer; if (referrer !== "") { var url = new URL(referrer); var q = url.searchParams.get('q'); var taille = q.split('/').filter(v => v.startsWith("Taille")); if (taille.length === 1) { var elts = taille[0].split('-'); elts.shift(); var tailleSelect = $('.form-control-select[name="group[4]"] option'); if (tailleSelect.length > 0) { elts.map(function(elt) { Array.from(tailleSelect).map(function(s) { if (s.text == elt) { s.selected = 'selected' } } ) }) } } } }); tml>