Housy Posted January 19, 2014 Share Posted January 19, 2014 (edited) Hello I'm using PS 1.5.4.1 and I have a problem with displaying the product reduction amount. If the base product price is 15,00 € and let's say, i have set 5,00 € discount and user bought the product, then reduction amount should be 5,00 €, am i right? I see "--" instead, like it's not working at all, it's just always empty. Within PDF there is a part of the code, which just doesn't work for me {if (isset($order_detail.reduction_amount) && $order_detail.reduction_amount > 0)} -{displayPrice currency=$order->id_currency price=$order_detail.reduction_amount} {else if (isset($order_detail.reduction_percent) && $order_detail.reduction_percent > 0)} -{$order_detail.reduction_percent}% {else} -- {/if} What am i doing wrong? Is it maybe PS bug? Thank you, Housy Edited January 19, 2014 by Housy (see edit history) Link to comment Share on other sites More sharing options...
Housy Posted January 19, 2014 Author Share Posted January 19, 2014 (edited) Does reduction amount/percent works only, if i lower the price, when the order is already done? Edited January 19, 2014 by Housy (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted January 20, 2014 Share Posted January 20, 2014 Are the $order_detail.reduction_amount or $order_detail.reduction_percent values nonzero? Link to comment Share on other sites More sharing options...
Housy Posted January 20, 2014 Author Share Posted January 20, 2014 You mean, if the values are bigger than zero? If so, then yes, they are. Are the $order_detail.reduction_amount or $order_detail.reduction_percent values nonzero? Link to comment Share on other sites More sharing options...
Housy Posted January 20, 2014 Author Share Posted January 20, 2014 (edited) The problem is actually with specific prices under the product price tab, because if i set that, the lowered price isn't displayed in the PDF invoice. Only final (lowered) price is displayed. Hope you will understand, what i mean. Regards, Housy Edited January 20, 2014 by Housy (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