mess@nger Posted March 25, 2013 Share Posted March 25, 2013 День добрый, Можно ли изменить шаблон так чтобы в списке товаров (в категории) отображалась скидка и начальная цена (при наличии скидки), а не только конечная? Как я понял в отображении продукта за это отвечает следующий код: <p id="reduction_percent" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}><span id="reduction_percent_display">{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}</span></p> <p id="reduction_amount" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'amount' && $product->specificPrice.reduction|intval ==0} style="display:none"{/if}><span id="reduction_amount_display">{if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|intval !=0}-{convertPrice price=$product->specificPrice.reduction|floatval}{/if}</span></p> {if $product->specificPrice AND $product->specificPrice.reduction} <p id="old_price"><span class="bold"> {if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutReduction > $productPrice} <span id="old_price_display">{convertPrice price=$productPriceWithoutReduction}</span> {/if} {/if} </span> </p> {/if} Но если это вставить в product-list то происходит ровно ничего. Link to comment Share on other sites More sharing options...
Kerm Posted March 26, 2013 Share Posted March 26, 2013 А скидку товару ставишь в админке в карточке товара на вкладке цена? Link to comment Share on other sites More sharing options...
mess@nger Posted March 27, 2013 Author Share Posted March 27, 2013 Да Prestashop 1.5.3 Link to comment Share on other sites More sharing options...
alkostar Posted April 14, 2013 Share Posted April 14, 2013 тоже интересует данный вопрос Link to comment Share on other sites More sharing options...
sors Posted April 15, 2013 Share Posted April 15, 2013 в config\smarty.config.inc.php заменить $smarty->force_compile = false; на $smarty->force_compile = true; Link to comment Share on other sites More sharing options...
Recommended Posts