takumi309 Posted November 29, 2013 Share Posted November 29, 2013 (edited) can anyone tell me how to add the product's category field as a column in the order detail page, you know when processing ordering, you click into the order, the order detail page, I want the list of product that is being display at the bottom also display a column of category for my products, please help could someone point me which file to edit and how if possible. Thanks Edited November 29, 2013 by takumi309 (see edit history) Link to comment Share on other sites More sharing options...
takumi309 Posted November 29, 2013 Author Share Posted November 29, 2013 Actually, i customly added a product's storage_location field in my product, and that is what i wanted to display in the order detail page, but i don't know which file that contorl this, please help Link to comment Share on other sites More sharing options...
ibndawood Posted November 30, 2013 Share Posted November 30, 2013 Hi, What is the version of prestashop you are using ? In 1.5.4 the files you need to look into are : admin-panel-folder/themes/default/template/controllers/orders/helpers/view/view.tpl - this is the file that is being used to display the page you mentioned in the screenshot. The products table starts at around line 579 and calls another tpl file which is in admin-panel-folder/themes/default/template/controllers/orders/_product_line.tpl You can try {$product|@print_r} to check what are the available indexes and other available options for the product. Editing this file is a quick (and probably dirty) way to achieve. You will have to check how to override admin panel templates so that you don't break the files on upgrades. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts