AFemaleProdigy Posted February 6, 2014 Share Posted February 6, 2014 I purchased a theme that has rows showing discounts for bulk ordering. Right now it shows the discount amount whether it be a dollar amount or a percentage. However, I want to show the final discounted price per unit. Not the discount amount. What is the code to display that? Currently: 250 items is -10% Should be: 250 items at discounted price of $5.95 Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted February 10, 2014 Author Share Posted February 10, 2014 Any suggestions? Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted February 17, 2014 Author Share Posted February 17, 2014 No one is able to help me show the final total dollar amount? Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted February 17, 2014 Author Share Posted February 17, 2014 Nevermind. I got it. {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} {math equation="a-b" a=$productPriceWithoutReduction b=$quantity_discount.real_value|floatval assign=final_disc_price} {convertPrice price=$final_disc_price} {else} {math equation="a*b/100" a=$productPriceWithoutReduction b=$quantity_discount.real_value assign=disc_value} {math equation="a-b" a=$productPriceWithoutReduction b=$disc_value assign=final_disc_price} {convertPrice price=$final_disc_price} {/if} 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