' <div class="t-store__relevants-grid-cont js-store-relevants-grid-cont ' +
2213 verticalAlignClass + 2227 * Make a HTML code that will contain the product description 2229 * @returns {string} - HTML code 2231function t_store_get_productPopup_text_html() { 2233 str += '<div class="js-store-prod-text t-store__prod-popup__text t-typography__descr t-descr t-descr_xxs"></div>'; 2238 * Make a size chart link 2240 * @returns {string} - HTML code 2242function t_store_get_productPopup_linksSizeChart_html() { 2244 str += '<div class="t-store__prod-popup__links-wrapper"></div>'; 2249 * Make 'buy' button in the popup 2251 * @param {object} options 2252 * @returns {string} - HTML code 2254function t_store_get_productPopup_buyBtn_html(options) { 2255 const template = document.getElementById(`button_buy_${options.recid}`); 2257 if (!template || !template.content) return t_store_get_productPopup_buyBtn_html_legacy(options); 2259 const buttonTemplate = template.content.cloneNode(true); 2262 <div class="t-store__prod-popup__btn-wrapper js-store-buttons-wrapper"> 2263 ${buttonTemplate.firstElementChild.outerHTML} 2269 * Функция оставлена для обратной совместимости 2270 * со старыми блоками, где нет нового шаблона кнопки 2272function t_store_get_productPopup_buyBtn_html_legacy(options) { 2274 var btnStyle = options.btn1_style; 2275 var btnTitle = options.popup_opts.btnTitle; 2277 if (btnTitle !== '') { 2278 str += '<div class="t-store__prod-popup__btn-wrapper js-store-buttons-wrapper">'; 2279 str += '<a href="#order" class="t-store__prod-popup__btn t-btn t-btn_sm" style="' + btnStyle + '">'; 2280 str += '<table style="width:100%; height:100%;"><tr><td class="js-store-prod-popup-buy-btn-txt">'; 2282 str += '</td></tr></table>'; 2291 * Make HTML for the price of the product 2293 * @param {object} options 2294 * @param {string} type - 'current' or 'old' 2295 * @returns {string} - HTML code 2297function t_store_get_productPopup_onePrice_html(options, type) { 2299 var priceStylingClass =