/>` : tmst__createNoImageHtml('tmst-order-details__product-image'); return ` <li class="tmst-order-details__product-item"> <div class="tmst-order-details__product-image-wrapper"> <a href="${productUrl}" target="_blank"> ${productImageHtml} </a> </div> <div class="tmst-order-details__product-item-content"> <div class="tmst-order-details__product-title-wrapper"> <div class="tmst-order-details__product-title"> <a href="${productUrl}" target="_blank">${productTitle}</a> </div> ${optionsHtml} ${skuHtml} ${pricePortionUnitHtml} </div> <div class="tmst-order-details__product-quantity"> <span>${product.quantity}</span> </div> <div class="tmst-order-details__product-price-wrapper"> ${ isPromocodeDetails ? tmst__orders__createProductPriceHtml( product, order.promocode, formatOrderPrice ) : `<span class="tmst-order-details__product-price">${formatOrderPrice(product.amount)}</span>` } ${portionUnitHtml} </div> </div> </li>`; }) .join(''); } // Доставка let deliveryHtml = ''; if (order.shipping) { deliveryHtml = ` <div class="tmst-order-details__main-info-content"> <h3 class="tmst-order-details__section-title">${t('delivery_title')}</h3> ${tmst__orders__createDeliveryHtml(order.shipping, order.tracking)} </div> `; } // Статус заказа const orderStatusInHeaderHtml = tmst__createStatusHtml(order.status); // Оплата заказа let payedDateHtml = ''; if (order.paystatus === 'paid') { payedDateHtml = ` <div class="tmst-order-details__text tmst-order-details__text-end"> <dt>${t('payment_date')}:</dt> <dd>${tmst__orders__createOrderDateTimeHtml(order.payed, { includeTime: true })}</dd> </div> <div class="tmst-order-details__text tmst-order-details__text-end"> <dt>${t('payment_status')}:</dt> <dd>${t('status_paid')}</dd> </div> `; } // Статус: не/оплачен const orderPayedInHeaderHtml = tmst__createPaymentStatusHtml(order.paystatus, order.status); let grandTotalHtml = ''; if (deliveryDetailsHtml || (isPromocodeDetails && promocodeHtml) || discounDetailstHtml || loyaltyDiscountHtml) { grandTotalHtml = ` ${deliveryDetailsHtml} ${promocodeHtml} ${discounDetailstHtml} ${loyaltyDiscountHtml} <div class="tmst-order-details__text tmst-order-details__text-end tmst-order-details__text__bold"><dt>${t('amount_total')}:</dt> <dd>${formatOrderPrice(order.amount_total)}</dd></div> `; } let paymentHtml = ''; const paymentName = tmst__orders__formatPaymentSystem(order.syspayment);