picuslab Posted October 31, 2012 Report Share Posted October 31, 2012 Есть следующая проблема:несколько вариантов товара с разной ценой http://clip2net.com/s/2s8uYно на сайте при выборе вариантов цена не меняется http://med-asfera.ru/products/stolik-anesteziologa- Quote Link to post Share on other sites
Danya Posted October 31, 2012 Report Share Posted October 31, 2012 это что-то со скриптом в шаблоне Quote Link to post Share on other sites
picuslab Posted October 31, 2012 Author Report Share Posted October 31, 2012 {if $product->variants|count > 0} <!-- Цена и заказ товара --> <form class="cart" action="cart" method="get"> <!-- Выбор варианта товара --> {* Не показывать выбор варианта, если он один и без названия *} <select name="variant" {if $product->variants|count==1 && !$product->variant->name}style='display:none;'{/if}> {foreach $product->variants as $v} <option value="{$v->id}" {if $v->compare_price > 0}compare_price="{$v->compare_price|convert}"{/if} price="{$v->price|convert}" {if $v->id == $product->variant->id}selected{/if}> {$v->name} </option> {/foreach} </select> <!-- Выбор варианта товара (The End) --> <!-- Цена товара --> <div class="price"> {if $v->compare_price > 0}<span class="compare_price">{$v->compare_price|convert}</span>{/if} {if $v->price|convert <1} <span class="price">цена по запросу </span> {else} <span class="price">{$v->price|convert} <span class="currency">{$currency->sign|escape}</span></span> {/if} </div> Quote Link to post Share on other sites
iluwka Posted October 31, 2012 Report Share Posted October 31, 2012 для кого придумали это? Quote Link to post Share on other sites
picuslab Posted November 1, 2012 Author Report Share Posted November 1, 2012 Честно говоря, тут как-то криво вставилось.А есть какой-то вариант получше?Нужно было чтобы варианты выпадающим списком были, т.к. их может быть много. Quote Link to post Share on other sites
picuslab Posted November 1, 2012 Author Report Share Posted November 1, 2012 кто может помочь решить этот вопрос за фин. вознаграждение? Quote Link to post Share on other sites
Danya Posted November 1, 2012 Report Share Posted November 1, 2012 пиши в личку, помогу Quote Link to post Share on other sites
picuslab Posted November 7, 2012 Author Report Share Posted November 7, 2012 Вопрос не решен, может есть какие-нибудь идеи? Код вроде посмотрели, все верно.Уже не знаю что и сделать... Quote Link to post Share on other sites
delprofile Posted November 7, 2012 Report Share Posted November 7, 2012 если вы выправили только в шаблоне то ясен фиг что и не будет другой цены 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.