Jump to content

Tuni-Soft

Members
  • Posts

    76
  • Joined

  • Last visited

3 Followers

About Tuni-Soft

  • Birthday 08/01/1985

Profile Information

  • Location
    Tunisia
  • Activity
    User/Merchant

Recent Profile Visitors

10,964,493 profile views

Tuni-Soft's Achievements

  1. I found the method, it's `\AdminControllerCore::initPageHeaderToolbar`
  2. Hi, Is there a documentation that is related to these tabs? I searched but all I can find is docs about admin tabs (controllers) Thanks in advance for any help
  3. Hi, I tried using twig in the front office but got this error You have requested a non-existent service "twig". My code sample $summary = $this->get('twig')->render( '@Modules/mymodule/views/templates/hook/summary.twig', [ // ... ] ); Is it possible to replace smarty with twig in front-office hooks? Thank you
  4. The easiest fix, is to enable demo data install This will be fixed in future versions hopefully (follow https://github.com/PrestaShop/PrestaShop/issues/26892) If you do not want to install demo data at all, you can edit this line File: install/controllers/http/process.php Line: } elseif (Tools::getValue('postInstall') && !empty($this->session->process_validated['installFixtures'])) { Change it to: } elseif (Tools::getValue('postInstall')) {
  5. Hello, Your question is not directly related to this subject You can move the blocks in the theme template Look for blocks product_variants and product_customization in the file /themes/[theme]/templates/catalog/product.tpl Cheers
  6. I solved it by modifying this method directly // /src/Adapter/Module/AdminModuleDataProvider.php public function isAllowedAccess($action, $name = '') { if (Tools::isPHPCLI()) { return true; } if (in_array($action, ['install', 'upgrade'])) { return $this->employee->can('add', 'AdminModulessf'); } if ('uninstall' === $action) { return $this->employee->can('delete', 'AdminModulessf') && $this->moduleProvider->can('uninstall', $name); } // add this statement if (in_array($action, array('enable', 'disable', 'enable_mobile', 'disable_mobile', 'reset'))) { return $this->employee->isSuperAdmin(); } return $this->employee->can('edit', 'AdminModulessf') && $this->moduleProvider->can('configure', $name); } or like this public function isAllowedAccess($action, $name = '') { if (Tools::isPHPCLI()) { return true; } if (in_array($action, ['install', 'upgrade', 'enable', 'enable_mobile'])) { return $this->employee->can('add', 'AdminModulessf'); } if (in_array($action, ['uninstall', 'reset', 'disable', 'disable_mobile'])) { return $this->employee->can('delete', 'AdminModulessf') && $this->moduleProvider->can('uninstall', $name); } return $this->employee->can('edit', 'AdminModulessf') && $this->moduleProvider->can('configure', $name); }
  7. Hi, I'm setting up a module demo and I want to only enable the Configure button Is there a way to do it? I tried to to it using the permissions but no luck When I remove the Edit permission from the module, the configure button is removed altogether Any help is much appreciated Thanks
  8. My whole VPS is down due to the OVH major incident This will be back up later
  9. Hi, Here's a fix (v2.0.1) to improve compatibility with the latest versions of PrestaShop Best regards transhare.zip
  10. Make sure to clear the browser cache after the update to get the new scripts - Currently it works only for modules Cheers
  11. Here's the updated version 2.0.0, it now works with the old and new interface transhare-2.0.0.zip
  12. Thank you for the info, I will try to update the module to support the new translation system
  13. Hi, Thank you for your reply, Please give me more information, I'm not aware of the new translation system. Is it specific to warehouse themes? Please attach a screenshot to get an idea about the issue Best regards
  14. I updated the script, Changes Display "Show all messages" by default instead of "See less messages" https://github.com/unlocomqx/seller-contact
  15. For easier developement, you may want to display your hook "displayAdminProductsExtra" in a separate page, I use this controller to do that and make development faster and easier Github link: https://github.com/unlocomqx/ps-extra-hook Feel free to use this controller in your module, Cheers
×
×
  • Create New...