delman777 Posted March 7, 2013 Report Share Posted March 7, 2013 Несколько дней голову ломаю, что нужно оставить, что бы выводилась только стоимость обведенная красным: {foreach $new_products as $product} <article class="product thumb"> <div class="r"> <a href="products/{$product->url}" class="nounderline" title="{$product->name|escape}"> <span class="image-container"> <span class="image"> {if $product->image} <img src="{$product->image->filename|resize:200:145}" alt="{$product->name|escape}" title="{$product->meta_title|escape}"/> {/if} </span> </span> <span class="underline h4">{$product->name|escape}</span> </a> {if $product->variants|count > 0} <form class="variants" action="/cart"> {foreach $product->variants as $v} <dl> <dd> <input id="featured_{$v->id}" name="variant" value="{$v->id}" type="radio" class="variant_radiobutton" {if $v@first}checked{/if} {if $product->variants|count<2}style="display:none;"{/if}/> {if $v->name}<label class="variant_name" for="featured_{$v->id}">{$v->name}</label>{/if} </dd> <dt class="price small"> {if $v->compare_price > 0}<span class="old-price">{$v->compare_price|convert} {$currency->sign|escape}</span> <span class="new-price">{$v->price|convert} {$currency->sign|escape}</span> {else}{$v->price|convert} {$currency->sign|escape} {/if} </dt> </dl> {/foreach} <input type="submit" class="button small" value="В корзину" data-result-text="Добавлено"/> </form> {else} <input type="submit" class="disabled small" value="Нет в наличии" disabled/> {/if} </div> </article> {/foreach} </section> {/if} Quote Link to post Share on other sites
Kosjak76 Posted March 7, 2013 Report Share Posted March 7, 2013 Это просто ТОРБА... С такими исходными данными вы еще лет 8 будете голову ломать... Quote Link to post Share on other sites
Rash Posted March 7, 2013 Report Share Posted March 7, 2013 delman777, Посетил 43 раза, а BB code так и не научился пользоваться, печально дружище.... идешь по наклонной (((( Quote Link to post Share on other sites
Kosjak76 Posted March 7, 2013 Report Share Posted March 7, 2013 {$product->variant->price}цена первого варианта...ХЗ, подойдет ли под обведенную :-) Quote Link to post Share on other sites
delman777 Posted March 7, 2013 Author Report Share Posted March 7, 2013 Kosjak76: спасибо, сработало. тема закрыта. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.