metalines Posted April 21, 2021 Share Posted April 21, 2021 Hi, Looking for some assistance. We are trying to include the product stock location on the delivery slip for easy packing in the warehouse. I thought i could use {$product['location']} in the delivery_slip template but it keeps coming up blank. when i do a var_dump of $product on the delivery slip it shows location is assigned but blank but when i do a dump on the order details template it shows the same "location" variable with the correct location value. Im not skilled enough to understand why its blank on the delivery slip and not on the order details even though it is assigned on both. Would really appreciate anyones input! Mike Link to comment Share on other sites More sharing options...
metalines Posted May 11, 2021 Author Share Posted May 11, 2021 I figured it out, just added the following line in the delivery-slip.product-tab.tpl: {$order_detail.location} 1 Link to comment Share on other sites More sharing options...
Tribble Posted June 18, 2021 Share Posted June 18, 2021 Thanks for this! I was just hoping to do the same. Noob question, where do I edit the code? Can I do it in the backoffice or do I have to do it in my webhost file manager? (I know, this sounds like a question from someone who should not be messing with their code, I'm ok using file manager in cPanel but I'm just wondering if theres a backoffice option). Cheers! Link to comment Share on other sites More sharing options...
metalines Posted June 18, 2021 Author Share Posted June 18, 2021 If you are using cpanel, you can go to filemanager, right click the file you want to edit and do it live. Not reccommended to do this on a live website. Always take a backup first. I wouldnt bother with the back office interface personally as i prefer to use something like sublime text. Link to comment Share on other sites More sharing options...
Tribble Posted June 18, 2021 Share Posted June 18, 2021 Thank you! Glad to know I wasn't missing something good in backoffice Link to comment Share on other sites More sharing options...
MarcelGietz Posted January 6, 2022 Share Posted January 6, 2022 Hello, good work does it work with the delivery note and invoice? Is it possible that you upload the code I have problems here 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