WindeS Posted October 6, 2015 Share Posted October 6, 2015 In the order history /details, I'm trying to hide the "weight" from being shown (pic below) and I'm not sure of all I need to do beyond what I have. I know enough code to be dangerous and find/change a few things, see something done above so do it below, which is what I did and doesn't seem to be working this time. File changed: ..PS dir/ classes/order/OrderCarrier.php Original code: 'weight' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), Changed code: 'weight' => array('type' => self::TYPE_FLOAT, 'validate' => 'isUnsignedId', 'required' => true), Could anyone tell me what I'm doing wrong? Other files I need to change? Link to comment Share on other sites More sharing options...
NemoPS Posted October 7, 2015 Share Posted October 7, 2015 You need to remove it from order-detail.tplThe heading <th data-hide="phone" class="item">{l s='Weight'}</th>And content:<td data-value="{if $line.weight > 0}{$line.weight|string_format:"%.3f"}{else}0{/if}">{if $line.weight > 0}{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}{else}-{/if}</td> 1 1 Link to comment Share on other sites More sharing options...
WindeS Posted October 7, 2015 Author Share Posted October 7, 2015 Thank you Nemo1 ! You're my hero of the day, worked like a charm. 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