-
Posts
76 -
Joined
-
Last visited
Tuni-Soft's Achievements
-
smart-outdoor started following Tuni-Soft
-
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
-
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')) {
- 13 replies
-
- parsererror
- installation
-
(and 2 more)
Tagged with:
-
[Guide] The new customization system in PrestaShop 1.7
Tuni-Soft replied to Tuni-Soft's topic in 1.7.2.x [Current]
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 -
Module permissions on the demo
Tuni-Soft replied to Tuni-Soft's topic in Addons, modules and themes developers
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); }- 1 reply
-
- 1
-
-
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
-
My whole VPS is down due to the OVH major incident This will be back up later
- 23 replies
-
- module
- translation
-
(and 2 more)
Tagged with:
-
Hi, Here's a fix (v2.0.1) to improve compatibility with the latest versions of PrestaShop Best regards transhare.zip
- 23 replies
-
- 1
-
-
- module
- translation
-
(and 2 more)
Tagged with:
-
Jérémie Ferchaud started following Tuni-Soft
-
Make sure to clear the browser cache after the update to get the new scripts - Currently it works only for modules Cheers
- 23 replies
-
- module
- translation
-
(and 2 more)
Tagged with:
-
Here's the updated version 2.0.0, it now works with the old and new interface transhare-2.0.0.zip
- 23 replies
-
- module
- translation
-
(and 2 more)
Tagged with:
-
Thank you for the info, I will try to update the module to support the new translation system
- 23 replies
-
- module
- translation
-
(and 2 more)
Tagged with:
-
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
- 23 replies
-
- module
- translation
-
(and 2 more)
Tagged with:
.png.022b5452a8f28f552bc9430097a16da2.png)