daquity36 Posted December 30, 2012 Share Posted December 30, 2012 (edited) In order-detail.tpl, there are variables such as {$is_guest} and {$return_allowed}. A little debugging (using Javascript alert) shows that {$is_guest} is undefined for some reason and {$return_allowed} returns 0 even though I allowed returns. This is leading to the order-detail page hiding merchandise return section. All these Smarty variables are defined in root/controllers/OrderDetailController.php, so I don't know what's causing the errors. I'm using Prestashop 1.4.9. Please help. Thank you! Edited December 30, 2012 by daquity36 (see edit history) Link to comment Share on other sites More sharing options...
daquity36 Posted December 30, 2012 Author Share Posted December 30, 2012 I solved my own question. Go to root/controllers/OrderDetailController.php. Around line 144, change 'is_guest' => false, to 'is_guest' => "false", And also, change {if !$is_guest} to {if $is_guest == "false"} As for $return_allowed, it turns out that the items must be marked as delivered first in the BO. It is defined such that it is false unless paid for + delivered + before return deadline. 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