Nathalie W Posted April 16, 2023 Share Posted April 16, 2023 Hi I have tried many different variations to try to call in the current stock quantity for each product in the delivery slip, but i can't mange to make it. Does anybody know how to do this? Thanks! Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 17, 2023 Share Posted April 17, 2023 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 More sharing options...
Nathalie W Posted April 17, 2023 Author Share Posted April 17, 2023 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 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