Jump to content

Mesaj de confirmare adaugare produs BlockCart


Recommended Posts

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

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

×
×
  • Create New...