hapciu80 Posted May 18, 2013 Share Posted May 18, 2013 Buna.cum se poate adauga un mesaj text simplu de confirmare atunci cand un produs este adaugat in cosul de cumparaturi.Sau o noua fereastra tip pop up avand 2 optiuni gen checkout sau continua cumparaturile. nu detin deloc cunostiinte de programare,am gasit ceva tutorial http://nemops.com/be...op-add-to-cart/,am inteles ca trebuie modificat ajax-cart.js,insa nu am reusit sa-i dau de cap.utilizez versiunea 1.5.4.1 de ps. va multumesc si astept raspunsurile voastre. Link to comment Share on other sites More sharing options...
valentin.g Posted May 20, 2013 Share Posted May 20, 2013 inlocuieste corespunzator fragmentul de mai jos success: function(jsonData,textStatus,jqXHR) { // add appliance to whishlist module if (whishlist && !jsonData.errors) WishlistAddProductCart(whishlist[0], idProduct, idCombination, whishlist[1]); var overlay = $('<div>').addClass('dark-overlay'); overlay.appendTo($('body')).fadeIn(); var checkout_link = $('#button_order_cart').attr('href'); /* Populating the box */ var floating_box = $('<div>').addClass('add-to-cart-popup'); floating_box.append('<p>'+ added_txt+'</p>'); floating_box.append('<a href="'+checkout_link+'" class="exclusive">'+ checkout_txt+'</a>'); floating_box.append('<a class="close-popup button">'+ continue_txt+'</a>'); $('.close-popup').click(function(){ $(this).parent().fadeOut(function(){ $(this).remove() }); $('.dark-overlay').fadeOut(function(){ $(this).remove() }); }) floating_box.appendTo($('body')).fadeIn(); ajaxCart.updateCartInformation(jsonData, addedFromProductPage); } Link to comment Share on other sites More sharing options...
Recommended Posts