PrestaShop / example-modules

Example PrestaShop modules
Academic Free License v3.0
177 stars 118 forks source link

Make example modules works with Prestashop 8.0 #108

Closed mflasquin closed 1 year ago

mflasquin commented 2 years ago

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

image

matks commented 2 years ago

Thank you @mflasquin for the big work!

mflasquin commented 2 years ago

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.

matks commented 2 years ago

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

leemyongpakvn commented 2 years ago

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 :)

Sara-kom commented 1 year ago

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

Thank you

kpodemski commented 1 year ago

Hi @Sara-kom

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

Sara-kom commented 1 year ago

Hi @kpodemski,

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

Thank you

kpodemski commented 1 year ago

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