Jump to content

PDF invoice product discount empty -> always display "--"?


Recommended Posts

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

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

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