Answer the question
In order to leave comments, you need to log in
How to add your block to the updated list at the bottom of the cart?
The basket page (sale.basket.basket) in the "basket-total.php" template has its own markup with a value that is updated from Cookie. When updating this lower part, Bitrix somehow caches all its contents except for some dynamic blocks (for example, the cost of goods and the list of coupons).
I need to either add my block to the updated list (so that it is updated along with the price from the "basket-total.php" file), or exclude it from the updated list altogether, so that it is not updated from the cache either. The update from the cache is done in the "/js/component.js" file, in the "fillTotalBlocks()" function:
var totalNodes = this.getEntities(this.getCacheNode(this.ids.basketRoot), 'basket-total-block');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question