riovip
November 29, 2018, 12:00am
1
Hello, We really need your help. We want to change the color of the item price to which the discount is worth. Tried to change in css styles, "ty-price", but it is applied and, for goods on which there is no discount. It is necessary that it was as in the screenshot. Please tell me how to implement it.
https://ibb.co/1Mmsk5K
ЗдравÑтвуйте, нам очень нужна Ваша помощь. Мы хотим изменить цвет цены товара на, котором Ñтоит Ñкидка. Пробовали изменить в ÑтилÑÑ… css, "ty-price", но он применÑетÑÑ Ð¸, Ð´Ð»Ñ Ñ‚Ð¾Ð²Ð°Ñ€Ð¾Ð² на, которых нету Ñкидки. Ðужно, чтоб было как на Ñкриншоте. ПодÑкажите пожалуйÑта, как Ñто реализовать.
Unfortunately, discounted price does not have special CSS class. So it is required to change price template and add new class for such cases
riovip
November 30, 2018, 12:00am
3
Unfortunately, discounted price does not have special CSS class. So it is required to change price template and add new class for such cases
Thanks for the reply. Do not tell me how it will be better to implement. Can be added in this part of the code.
{assign var="old_price" value="old_price_`$obj_id`"}
{if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price nofilter}{/if}
{assign var="price" value="price_`$obj_id`"}
{$smarty.capture.$price nofilter}
{assign var="clean_price" value="clean_price_`$obj_id`"}
{$smarty.capture.$clean_price nofilter}
{assign var="list_discount" value="list_discount_`$obj_id`"}
{$smarty.capture.$list_discount nofilter}