Jump to content

Edit product quantity on invoice.tpl


Recommended Posts

I'd like to change the invoice to display the product quantity ordered in a larger font if more than one item has been ordered.

 

This will help to prevent picking errors.

 

So if someone orders 2 or 3 of a single product for example, the quantity will be displayed in 18pt font. If they order just one then it is displayed in the normal font size.

 

Is this possible please?

Link to comment
Share on other sites

Try to change

{$order_detail.product_quantity}

to

{if $order_detail.product_quantity > 1}
  <span style="font-size: 18pt">{$order_detail.product_quantity}</span>
{else}
  {$order_detail.product_quantity}
{/if}

in the /pdf/invoice.product-tab.tpl file.

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