Olymp145 Posted February 4, 2014 Share Posted February 4, 2014 (edited) Bonjour, je cherche à Afficher en permanence "Numéro de TVA" dans l'inscription. J'ai réussis a trouver comment le rendre obligatoire, mais pas comment l'afficher dès le départ. je pense que ça se passe ici, mais si je l'enlève, il n'apparait plus du tout.... que dois-je modifié ? svp {literal} $(document).ready(function() { $('#company').on('input',function(){ vat_number(); }); $('#company_invoice').on('input',function(){ vat_number_invoice(); }); function vat_number() { if (($('#company').length) && ($('#company').val() != '')) $('#vat_number').show(); else $('#vat_number').hide(); } function vat_number_invoice() { if (($('#company_invoice').length) && ($('#company_invoice').val() != '')) $('#vat_number_block_invoice').show(); else $('#vat_number_block_invoice').hide(); } vat_number(); vat_number_invoice(); {/literal} $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{/if}]').prop('selected', true); {literal} }); {/literal} </script> Edited February 11, 2014 by Olymp145 (see edit history) Link to comment Share on other sites More sharing options...
customcode Baptiste Posted February 5, 2014 Share Posted February 5, 2014 Bonjour, Je vous renvoi vers le topic de BVince qui explique comment mettre en place la demande d'un numero de SIRET. Vous avez juste a remplacer SIRET par TVA ! http://www.prestashop.com/forums/topic/57590-tutorial-devforever-ajouter-un-champ-obligatoire-au-formulaire-d%E2%80%99inscription/ Link to comment Share on other sites More sharing options...
Olymp145 Posted February 5, 2014 Author Share Posted February 5, 2014 Bonjour, Merci je vais essayé, mais je crois que c'est pour le rendre obligatoire, et non pour l'afficher en permanence je vous tiens au courant. Link to comment Share on other sites More sharing options...
customcode Baptiste Posted February 5, 2014 Share Posted February 5, 2014 Bonjour, En effet, ceci sera surement plus approprié http://blog.ikonenn.com/2012/08/07/prestashop-1-5-methode-doverride-exemple-ajout-dun-champ/ 1 Link to comment Share on other sites More sharing options...
Gregory Roussac Posted February 5, 2014 Share Posted February 5, 2014 Bonjour, Mais si vous activez le module TVA intra communautaire il ne l'affiche pas ? Cordialement Link to comment Share on other sites More sharing options...
Olymp145 Posted February 11, 2014 Author Share Posted February 11, 2014 customcode Baptiste, En effet le 2e tuto est le bon, merci, je l'avais pas trouvé sur google. Gregory Roussac, oui, je l'avais bien activé, mais d'origine, lorsque l'on active le module TVA intra communautaire la ligne TVA, ne s'affiche que lorsque le nom de la société est remplis, et il n'est pas obligatoire. Link to comment Share on other sites More sharing options...
customcode Baptiste Posted February 11, 2014 Share Posted February 11, 2014 Ravis d'avoir pu rendre service Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now