Jump to content

Change quantity discount equation


Jolkro

Recommended Posts

Hi all.

 

I have a quick question regarding how quantity discount is calculated in 1.4

I think my solution lies in this code in product.tpl (but I could be wrong):

 

<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>

 

I would like it to show the total price of (lets say 3 products) with the discount, instead of just showing what you save for each product.

Can this be done relatively simple by just adding another equation or am I way off?

 

I would appreciate all the hints you could give me.

 

Thank you all

Link to comment
Share on other sites

  • 4 months 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...