Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prestashop 8.1.1 #20

Open
iamluxan opened this issue Apr 3, 2024 · 2 comments
Open

Prestashop 8.1.1 #20

iamluxan opened this issue Apr 3, 2024 · 2 comments

Comments

@iamluxan
Copy link

iamluxan commented Apr 3, 2024

Hello,

J'ai à nouveau un bug sur ce module depuis la Maj prestashop 8.1.1 on dirait...

J'ai une page blanche dans le hook Extra quand je clic sur le module en question.

Si je choisi d'afficher les champs personnalisés sur un autre hook (HookDisplayAdminProductsMainStepLeftColumnBottomFieldsBuilder par exemple), ils ne s'affichent pas non plus.

J'ai réinitialisé le module, je suis même reparti du module de base sur GIT sans aucun champs modifié (ni en BDD).

Ça peut être lié à quoi ?

Merci !

Capture d’écran 2024-04-03 à 11 35 54

Exemple personnalisé qui ne fonctionne pas sur l'affichage du hook admin HookDisplayAdminProductsMainStepLeftColumnBottomFieldsBuilder

J'ai bien modifié tous les autres .php pour y ajouter les nouveaux champs

    namespace PrestaShop\Module\Democustomfields17\Form\Product\Hooks;

    use PrestaShop\Module\Democustomfields17\Form\Product\Hooks\HookFieldsBuilderInterface;
    use Symfony\Component\Form\FormBuilderInterface;
    use Symfony\Component\Form\Extension\Core\Type\TextType;
    use Symfony\Component\Form\Extension\Core\Type\TextareaType;
    use PrestaShopBundle\Form\Admin\Type\TranslatableType;
    use PrestaShopBundle\Form\Admin\Type\SwitchType;
    use Module;

    class HookDisplayAdminProductsMainStepRightColumnBottomFieldsBuilder implements HookFieldsBuilderInterface
    {
        public function addFields(FormBuilderInterface $adminFormBuilder, Module $module) :FormBuilderInterface
        {
            $adminFormBuilder
                ->add('guide_bague', SwitchType::class, [
                    'label' => $module->l('Guide Bague'),
                ])
                ->add('guide_bracelet', SwitchType::class, [
                    'label' => $module->l('Guide Bracelet'),
                ])
                ->add('guide_jonc', SwitchType::class, [
                    'label' => $module->l('Guide Jonc'),
                ])
                ->add('guide_collier', SwitchType::class, [
                    'label' => $module->l('Guide Collier'),
                ]);

            return $adminFormBuilder;
        }
    }

En BDD =

Capture d’écran 2024-04-03 à 11 39 26

@aminigazar
Copy link

Hi, I also have a problem with this module in Prestashop 8
Please update this module
thanks

@iamluxan
Copy link
Author

@aminigazar I finally bought another module because this one is no longer maintained and continues to have bugs. Here is the link to the one I'm using: https://www.inno-mods.io/prestashop-modules/advanced-custom-fields/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants