1 2 3 4 5 6
{if $wa->user("id")} {$discount = shopGroupdiscountPlugin::getDiscount($wa->user("id"), $p.price)} <span data-price="{shop_currency_html($discount['client_price'], null, null, 0)}" class="price nowrap">{shop_currency_html($discount['client_price'])}</span> {else} <span data-price="{shop_currency($product.price, null, null, 0)}" class="price nowrap">{shop_currency_html($product.price)}</span> {/if}