if (options.price_old_typo) {
5314 t_store_parseTypoStylesConfig( 5316 '.t-store__card__price_old', 5317 options.price_old_typo, 5318 'js-store-relevants-old-price-typo-styles-' + recid 5324 * Устанавливает стили для описания товара в сниппете 5325 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 5326 * @param {string} recid - ID записи 5327 * @param {TildaStoreOptions} options - Объект настроек 5328 * @param {string} [bgColor] - Цвет фона 5330function t_store_setProductDescriptionStyles(snippetContainer, recid, options, bgColor) { 5331 const productDescr = snippetContainer.querySelector('.js-store-prod-text'); 5332 if (!productDescr) return; 5334 if (options.descr_typo) { 5335 t_store_parseTypoStylesConfig( 5337 '.t-store__prod-popup__text', 5339 'js-store-descr-typo-styles-' + recid 5344 const productDescrStyle = productDescr.getAttribute('style'); 5345 productDescr.setAttribute('style', t_store_removeSizesFromStylesLine(productDescrStyle)); 5348 const productDescrColor = options.typo.descrColor; 5349 t_store_applyContrastColorIfNecessary(productDescr, productDescrColor, bgColor); 5354 * Устанавливает стили для цены товара в сниппете 5355 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 5356 * @param {string} recid - ID записи 5357 * @param {TildaStoreOptions} options - Объект настроек 5358 * @param {string} [bgColor] - Цвет фона 5360function t_store_setProductPriceStyles(snippetContainer, recid, options, bgColor) { 5361 const productPrice = snippetContainer.querySelector('.js-store-prod-price'); 5362 if (!productPrice) return; 5364 if (options.price_typo) { 5365 t_store_parseTypoStylesConfig( 5367 '.t-store__prod-popup__price', 5369 'js-store-price-typo-styles-' + recid 5375 const productPriceColor = options.price.color; 5376 t_store_applyContrastColorIfNecessary(productPrice, productPriceColor, bgColor); 5381 * Устанавливает стили для старой цены товара в сниппете 5382 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 5383 * @param {string} recid - ID записи 5384 * @param {TildaStoreOptions} options - Объект настроек 5385 * @param {string} [bgColor] - Цвет фона 5387function t_store_setProductOldPriceStyles(snippetContainer, recid, options, bgColor) { 5388 const productOldPrice = snippetContainer.querySelector('.js-store-prod-price-old'); 5389 if (!productOldPrice) return; 5391 if (options.price_old_typo) { 5392 t_store_parseTypoStylesConfig( 5394 '.t-store__prod-popup__price_old', 5395 options.price_old_typo, 5396 'js-store-old-price-typo-styles-' + recid