acehightech Posted September 6, 2012 Share Posted September 6, 2012 (edited) Hi Everyone, How do I set discount pricing so that it displays: 1. Pricing in acending order 2. Shows full cost instead of %discount or -$? For sample, I'd like it to show: 50 qty 100 qty 250 qty 500 qty $5.50 $5.00 $4.50 $3.95 ** I think I found the code to fix this, but I don't know html all that well. Anyone know how I can alter this code? ** {* quantity discount *} {if $quantity_discounts} <div id="quantityDiscount" class="bgcolor bordercolor"> <h3>{l s='Quantity discount'}</h3> <table> <tr> {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} <th class="bordercolor">{$quantity_discount.quantity|intval} {if $quantity_discount.quantity|intval > 1} {l s='quantities'} {else} {l s='quantity'} {/if} </th> {/foreach} </tr> <tr> {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} <td> {if $quantity_discount.price != 0 OR $quantity_discount.reduction_type == 'amount'} -{convertPrice price=$quantity_discount.real_value|floatval} {else} -{$quantity_discount.real_value|floatval}% {/if} </td> {/foreach} </tr> </table> </div> Edited September 7, 2012 by acehightech (see edit history) Link to comment Share on other sites More sharing options...
jewele8 Posted October 1, 2012 Share Posted October 1, 2012 (edited) im interested in this too but havent figured out how to make it display correctly. check out this post and see if it helps? http://www.prestashop.com/forums/topic/164512-discount-price-how-to-show-price-with-discount/page__st__20 Edited October 1, 2012 by jewele8 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now