Вывод второй цены на странице Категория

Автор alkokoal, 04 марта 2015, 13:46:23

« назад - далее »

mistral

Вот так попробуйте
{hook h="displayProductPriceBlock" product=$product type="unit_price"}

alkokoal

Поменяла, все равно осталось

"per упаковку"


alkokoal

Помогли на другом форуме.
Если кому понадобится, вот решение

{if !empty($product.unity) && $product.unit_price_ratio > 0.000000}
    {math equation="pprice / punit_price"  pprice=$product.price punit_price=$product.unit_price_ratio assign=unit_price}
    <p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product.unity|escape:'html':'UTF-8'}</p>
{/if}

Спасибо за помощь Вам