Jump to content

Show wholesale quantity price by dollar amount


Recommended Posts

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 by acehightech (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...