Merge branch 'ticket-blockbestsellerProduct' into develop
This commit is contained in:
commit
2b726927cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user