Why not the amount is recalculated when you change the number of items in the cart Bitrix?

Changed standard component to suit your needs and now is not recalculated amount
so, was that's what

BasketPoolQuantity.prototype.changeQuantity = function(itemId)
{
 var quantity = BX('QUANTITY_' + itemId).value; //here it returns, a new number of goods
 var isPoolEmpty = this.isPoolEmpty(); //here true

 if (this.currentQuantity[itemId] && this.currentQuantity[itemId] != quantity) //here this.currentQuantity is {}
{
 this.poolQuantity[itemId] = this.currentQuantity[itemId] = quantity;
}

 if (!isPoolEmpty)
{
this.enableTimer(true);
}
else
{
this.trySendPool();
}
};


BasketPoolQuantity.prototype.trySendPool = function()
{

//but this test obviously fails... 
 if (!this.isPoolEmpty() && !this.isProcessing()) //this.isProcessing () false
{
this.enableTimer(false);
recalcBasketAjax({});
}
};


where does this variable isPoolEmpty?!
I don't know what it should be
March 19th 20 at 08:31
1 answer
March 19th 20 at 08:33
The new basket is quite technical improvements, better start old. Make parsing of a component with a print of all data, only then it makes sense to make their own improvements

Find more questions by tags 1C-Bitrix