$('.total .price').html(tr_total.find('.total-sum').text());
добавить:
$('.TotalSumDelivery .price').html(tr_total.find('.total-sum').text());
Далее найдите в блоке // Действия при выборе варианта доставки на этапе оформления заказа код:
currentPriceWithoutChange = (parseInt(TotalSumDelivery.replace(/\s+/g, ''),10)) - parseInt(latestDeliveryPrice); NewPriceWithChange = parseInt(startprice) + currentPriceWithoutChange;Замените на:
currentPriceWithoutChange = $('.TotalSum .price .num').text(); NewPriceWithChange = parseInt(startprice) + parseInt(currentPriceWithoutChange);
Далее найдите в // Действия при выборе зоны внутри варианта доставки на этапе оформления заказа код:
currentPriceWithoutChange = (parseInt(TotalSumDelivery.replace(/\s+/g, ''),10)) - parseInt(latestDeliveryPrice); NewPriceWithChange = parseInt(price) + currentPriceWithoutChange;Замените на:
currentPriceWithoutChange = $('.TotalSum .price .num').text(); NewPriceWithChange = parseInt(startprice) + parseInt(currentPriceWithoutChange);
И чуть ниже также есть этот же код:
currentPriceWithoutChange = (parseInt(TotalSumDelivery.replace(/\s+/g, ''),10)) - parseInt(latestDeliveryPrice); NewPriceWithChange = parseInt(price) + currentPriceWithoutChange;Его также нужно заменить на:
currentPriceWithoutChange = $('.TotalSum .price .num').text(); NewPriceWithChange = parseInt(startprice) + parseInt(currentPriceWithoutChange);
При следующем обновлении шаблона Дружок в галерее тем эти изменения будут уже внесены по умолчанию