example-modules icon indicating copy to clipboard operation
example-modules copied to clipboard

Make example modules works with Prestashop 8.0

Open mflasquin opened this issue 3 years ago • 4 comments

For the moment the modules do not work on prestashop 8. Most often when accessing the configuration route of the module, for example :

image

  • [x] demo_grid
  • [x] democonsolecommand
  • [ ] democontrollertabs
  • [ ] demodoctrine
  • [x] demoextendgrid
  • [x] demoextendsymfonyform1
  • [ ] demoextendsymfonyform2
  • [x] demoextendsymfonyform3
  • [x] demojsrouting
  • [ ] demomultistoreform
  • [x] demooverrideobjectmodel
  • [x] demoproductform
  • [x] demosymfonyform
  • [ ] demovieworderhooks
  • [ ] example_module_mailtheme

mflasquin avatar Oct 07 '22 13:10 mflasquin

Thank you @mflasquin for the big work!

matks avatar Oct 07 '22 14:10 matks

It's seems some modules works but we have to clear the cache manually in BO before be able to use them. When the modules are installed on 1.7.7 they works even if the cache is not cleared manually. I don't know if it can be considered as an issue on Prestashop 8.

mflasquin avatar Oct 07 '22 14:10 mflasquin

It's seems some modules works but we have to clear the cache manually in BO

We need to find out why. We need to understand what's behind that

matks avatar Oct 07 '22 14:10 matks

I think the problem comes from recent Core changes. Many files were moved from PrestaShop\PrestaShop\Core\Addon\Module to PrestaShop\PrestaShop\Core\Module (1 level up). If you try to install module from Terminal, you will see warnings related to ModuleInterface class then fail. Installing module from Back-Office run smoothly but you need Clear Cache to make the module work normally (clear the old cache of Module related class I guess :)

leemyongpakvn avatar Oct 07 '22 14:10 leemyongpakvn

Hi, any news about this demo modules? Are they ever going to be fixed for 8.xx?

Thank you

Sara-kom avatar Jun 09 '23 13:06 Sara-kom

Hi @Sara-kom

All the example modules except one for email generation, works fine with PrestaShop 8 :)

kpodemski avatar Jun 27 '23 12:06 kpodemski

Hi @kpodemski,

that's exactly the one I need! Is there anyway to make it work?

Thank you

Sara-kom avatar Jun 28 '23 07:06 Sara-kom

@Sara-kom I'll work on that in a few weeks, it requires some changes in the core, unfortunately

kpodemski avatar Jun 28 '23 07:06 kpodemski