Giter Site home page Giter Site logo

democustomfields17's Introduction

Hi there 👋🏾

GitHub Stats

PululuK github stats Languages

StackOverflow Stats

perfil de PululuK em Stack Overflow em Português, Perguntas e respostas para programadores profissionais e entusiastas

democustomfields17's People

Contributors

pululuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

democustomfields17's Issues

Prestashop 8.1.1

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

Aide à l'installation et l'adaptation

Describe the bug
Bonjour, (contacté par mail hier)

Si j'ai bien compris, on ne peut pas l'installer via le gestionnaire de module de Prestashop, c'est pourquoi j'ai essayé de suivre vos indication dans la partie 'Install' sans succès, peut-on l'installer tel quel ou doit-on l'adapter avant ?
Pour les commandes de l'install, dois-je utilisé une console git ou powershell ...? sous cmd certaines commandes ne sont pas reconnues

Desktop

  • OS: W10
  • Browser: Mozilla
  • Version Prestashop : 1.7.8.2
  • Pour l'instant en local

Additional context
Actuellement en alternance pour mes études, j'aimerai vraiment comprendre le fonctionnement de prestashop car pour le moment je n'ai pas forcement encore tout saisie au sujet des class et controllers de prestashop. (Je gère pourtant assez bien le MVC, ici j'ai du mal à réaliser mes modifications sur prestashop en général)

Merci d'avance pour votre aide.

Form field file type

Thank you so much for this repo, is a huge help.
I just want to ask if there is a way to add a file type for the form fields to upload images.

Thank you again

show this data in the catalog page and doesn't show

Describe the bug
Hello thank you for the module, i want to show this data in the catalog page and doesn't show

To Reproduce
I go to to document in the root for made a prove in the direction C:\xampp\htdocs\prestashop\src\PrestaShopBundle\Resources\views\Admin\Product\CatalogPage\Lists\lists.html.twig

the code without the variable
{% if 'PS_STOCK_MANAGEMENT'|configuration %}


{% if product.sav_quantity is defined and product.sav_quantity > 0 %}
{{ product.sav_quantity }}
{% else %}
{{ product.sav_quantity|default('N/A'|trans({}, 'Admin.Global')) }}
{% endif %}


{% else %}

The code with the variable
{% if 'PS_STOCK_MANAGEMENT'|configuration %}


{% if product.democustomfields17.order_date is defined and product.order_date > 0 %}
{{ product.democustomfields17.order_date }}
{% else %}
{{ product.democustomfields17.order_date|default('N/A'|trans({}, 'Admin.Global')) }}
{% endif %}


{% else %}
Screenshots catalatog page

1
Screenshots value code
12
Screenshots database
3

Additional context
Add any other context about the problem here.

Saving and displaying datas

Hi, it's not really a real issue, but a feature request and help.
I manage to have the field i wanted in Admin Product form, but i can't manage to save it nor have it in the smarty template.
i'm running prestashop 1.7.4.2 on php 7.1.
Are you planning to cover this ? or do you have any advices ?

Thanks a lot

Regards

Affichage des variables concaténés en smarty n'affiche rien (e.g : {$product.democustomfields17.my_text_field_example} )

Describe the bug
Affichage des variables concaténés en smarty n'affiche rien (e.g : {$product.democustomfields17.my_text_field_example} )

Bonjour, désolé de revenir vers vous mais je n'arrive toujours pas à afficher mes data enregistrés avec ce que vous avez indiqué dans votre doc :

{$product.democustomfields17.my_text_field_example}
{$product.democustomfields17.my_translatable_text_field_example }
{$product.democustomfields17.my_switch_field_example}

Capture_screencode
Capturemodule

Tout le reste fonctionne : input côté admin, envoie à la base de données mais pour la récupération sur la bdd et l'affichage ça bloque...
Si je comprends bien $product est la variable array qui récupère la table ps_product concaténé avec democustomfields17 (qui récupère la table ps_democustomfields17, mais où et comment ) concaténé avec le nom du champs. C'est bien ça ?

Merci encore

Prestashop 8.X ?

Bonjour,
j'ai installé votre module pour personnaliser certains points d'une fiche produit.

Cependant, rien ne se passe, du coup je me demande si ce module est toujours d'actualité et compatible avec prestashop 8?

Merci !

Adaptation du module

Bonjour,

désolé, c'est encore moi

Jusqu'ici ça fonctionne, maintenant je souhaiterai ajouter des champs (un dropdown-checkbox et un de type date) pour l'instant(par défaut) au nombre de trois (text, switch et textArea), la vue des input de votre module qui s'affiche dans l'admin n'a pas de tpl c'est ça ? alors où et comment puis-je faire mes modifications ?

Autre problèmatique : je souhaiterai afficher cette vue admin (de votre module) sur la vue/le front d'un autre module, j'ai pensé aux hooks mais il semblerai que la page de l'autre module ne soit pas accroché à un hook... auriez-vous une idée de comment procéder ?
Dois-je copier des fichiers de votre module et les placer dans l'autre module ?

Merci beaucoup pour toute l'aide déjà apporté.

Versioning

I suggest to version the releases, because there is still version 1.0.0 and there were already many changes.

Error 500 after install this module

Hi, I'm using Prestashop version 1.7.7.7
I downloaded your module but I can't install it because I get an error.
So I copied the democustomfields17 forlder to the modules directory.
This behavior causes the Error 500 problem
In line 7 there is:
require_once __DIR __. '/ vendor / autoload.php';
Shouldn't there be:
require_once _PS_ROOT_DIR _. '/ vendor / autoload.php';
because the DIR variable points to the module (directory modules/democustomfields17/vendor[...]) And I think we want to load the file from the main directory (/vendor[...])
If I am wrong, correct me please.
image

Question emplacement des requête SQL

Bonjour,

J'ai cherché les requêtes pour la mise à jour de la BDD (update et insert into), pourriez-vous me dire où pourrais-je les trouver ?

Merci pour ton aide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.