Czk-Jrm Posted November 4, 2019 Share Posted November 4, 2019 I, I am trying to insert the table of orders history in the my-account.tpl file. So I copy the {if $orders}...{/if} block of code from history.tpl in my-account.tpl, where I want it to be show but I have nothing. It's like the $orders is false, I have nothing in the console. I am using last version of prestashop and I am a beginner so I'm not used to controller and other things, just some tpl modifications. Thank you for helping. Link to comment Share on other sites More sharing options...
NemoPS Posted November 4, 2019 Share Posted November 4, 2019 That's not available there unfortunately, you need to copy part of historyController to MyAccountController as well, where it assigns all of the variables Link to comment Share on other sites More sharing options...
Czk-Jrm Posted November 5, 2019 Author Share Posted November 5, 2019 Perfect, thanks didn't know that. It work perfectly ! Solution : Like said, I copy part of historyController ( controllers/front/HistoryController.php ) to the MyAccountController. 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