Merge branch 'ticket-blockbestsellerProduct' into develop

This commit is contained in:
Marion Muszynski 2016-06-28 16:07:49 +02:00
commit 2b726927cf

View File

@ -601,7 +601,7 @@
$('#add_to_cart_product_footer').click(function(){
$(this).hide();
var idProduct = $('#buy_block_footer input[name="id_product"]').val();
var idAttribute = $('#buy_block_footer input[name="id_product_attribute"]').val();
var idCombination = $('#buy_block_footer input[name="id_product_attribute"]').val();
var quantity = $('#buy_block_footer #quantity_wanted').val();
if ($(this).attr('disabled') != 'disabled' && $('#buy_block_footer #quantity_wanted:visible').length > 0){
$.ajax({
@ -610,7 +610,7 @@
async: true,
cache: false,
dataType : "json",
data: 'add=1&ajax=true&qty=' + quantity +'&id_product=' + idProduct + '&ipa=' + idAttribute + '&token=' + static_token + '&ipa=',
data: 'add=1&ajax=true&qty=' + quantity +'&id_product=' + idProduct + '&idCombination=' + idCombination + '&token=' + static_token,
success: function(jsonData,textStatus,jqXHR)
{
window.parent.ajaxCart.updateCartInformation(jsonData, false);