cokenour Posted June 24, 2009 Share Posted June 24, 2009 I've developed my first PrestaShop site that also required creating a custom sales report.My problem is figuring out how to integrate my report into the admin back end of PrestaShop.I've created a 'Reports' tab and placed it under 'Tools', but found it doesn't work because the "Class" value is wrong.When creating a new tab, what the "Class" value be set to? Am I missing a step?My goal is to end up with a "Reports" tab that will hold the PHP report I've created (and others later on).Thanks for any help you can offer!Cokenour Link to comment Share on other sites More sharing options...
cokenour Posted June 25, 2009 Author Share Posted June 25, 2009 Anyone know what class to use when adding a new tab? Link to comment Share on other sites More sharing options...
cokenour Posted June 25, 2009 Author Share Posted June 25, 2009 [sOLVED] Here's what I did to create my own custom reports tab (yes, I'm a PS newbie, but hopefully this will help others):1. FTP'd down AdminTools.php2. Renamed AdminTools.php to AdminReports.php (could be whatever name you want)3. Opened AdminTools.php and changed any references to AdminTools to AdminReports.4. Save AdminReports.php and FTP up to the site in the same directory where AdminTools.php was located.5. Login to the admin back end of PrestaShop.6. Goto Tools >> Tabs >> click "Add New".7. Enter the name (I used "Reports"); Class=AdminReports; img (your choice, I copied the translations icon, colored it in Photoshop and use that); Parent="Home".8. Click Save.The "Reports" tab will now appear in your admin tabs list. REMEMBER: it's sill a copy of the "AdminTools.php" file, so it's functioning the same way. You'll need to go back to the "AdminReports.php" file and edit it to include whatever functionality you want.In my scenario, this is a great solution because now I can create custom PHP sales reports that will run from this page and just as importantly, because it's in the PrestaShop admin area I can create a "Reports" user and restrict their permissions to ONLY use the reporting feature.This is what I came up with. Please correct anything that could be done better. 1 Link to comment Share on other sites More sharing options...
The K' Posted July 15, 2009 Share Posted July 15, 2009 Thanks for your plublisement your experience on how to add the tabs on Prestashop framework.This is really helpful to me.In fact i tried to search for this solution on the internet,but i just found 1 from you.Thanks again..........., Link to comment Share on other sites More sharing options...
Yoda Posted July 15, 2009 Share Posted July 15, 2009 This save me a lot of time. Thanks Link to comment Share on other sites More sharing options...
radders Posted August 21, 2009 Share Posted August 21, 2009 I was looking around for a sales report but can't seem to find one which shows products purchased.Just came up with this thread so I can have a nice tab for reports but saly nothing to go under it. What are all the live shops doing about monitoring sales and picking products etc? Link to comment Share on other sites More sharing options...
nmac Posted December 9, 2009 Share Posted December 9, 2009 I'm interested in sales reports too. Does anyone have a sample sales report they would share? orare there any others out there? Link to comment Share on other sites More sharing options...
aliaspt Posted January 18, 2011 Share Posted January 18, 2011 Is there a sales report module yet? Link to comment Share on other sites More sharing options...
revert Posted April 6, 2011 Share Posted April 6, 2011 how can i show content of configure plugin in this new copy of file? include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); class AdminBlog extends AdminTab { public function postProcess() { } public function display() { >>>>>>> WHAT HERE <<<<<< } } i want assign content showed after clicking configure of one of plugins > direct in tab for better accessanyone?THANKS! Link to comment Share on other sites More sharing options...
vi2web Posted June 9, 2011 Share Posted June 9, 2011 I dont see a tabs unders tools in the backend , what do i need to do ?I am using prestashop 1.4.2ThanksVinay Link to comment Share on other sites More sharing options...
vi2web Posted June 9, 2011 Share Posted June 9, 2011 I got it , for people who are not able to find the tools->tabs in prestashop 1.4.2, its under employees -> tabsThanks Link to comment Share on other sites More sharing options...
slaughtysme Posted June 13, 2011 Share Posted June 13, 2011 I got it , for people who are not able to find the tools->tabs in prestashop 1.4.2, its under employees -> tabsThanks yup it`s suck me too... i`ve been searching all the time,, thx. Link to comment Share on other sites More sharing options...
tuxinside Posted January 19, 2014 Share Posted January 19, 2014 @cokenour Thank YOU!!! Link to comment Share on other sites More sharing options...
Recommended Posts