Jump to content

How add current stock level for each product in delivery slip?


Nathalie W

Recommended Posts

modify the pdf_invoice.tpl or pdf_delivery_slip.tpl file in your PrestaShop theme.

Here are the steps:

> in the themes/your-theme/pdf directory of your PrestaShop installation.

> Open the pdf_invoice.tpl or pdf_delivery_slip.tpl file in a text editor.

> Locate the {foreach from=$products item=product} loop in the file. This loop is responsible for iterating over each product in the order and displaying its details.

> Inside the loop, you can add the following code to display the current stock level for each product:

{$product.available_now|intval} {l s='in stock'}

This code will display the current stock level for each product on the delivery slip.

dont forget to clear cache

Link to comment
Share on other sites

6 hours ago, Mian Waqas said:

modify the pdf_invoice.tpl or pdf_delivery_slip.tpl file in your PrestaShop theme.

Here are the steps:

> in the themes/your-theme/pdf directory of your PrestaShop installation.

> Open the pdf_invoice.tpl or pdf_delivery_slip.tpl file in a text editor.

> Locate the {foreach from=$products item=product} loop in the file. This loop is responsible for iterating over each product in the order and displaying its details.

> Inside the loop, you can add the following code to display the current stock level for each product:

{$product.available_now|intval} {l s='in stock'}

This code will display the current stock level for each product on the delivery slip.

dont forget to clear cache

Hi

Thanks for your answer, but i can't find the files you're mentioning.. Did you ask chatgpt ;)

If not, can you give me a more specific answer?

Thanks!

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