Jump to content

dupliquer block2ndcategories


Recommended Posts

Bonjour,

 

après avoir télécharger le block2ndcategories je l'ai installé sur la version de presta 1.4.4.1, celui-ci fonctionne parfaitement!

Maintenant, je souhaites dupliquer celui-ci afin d'avoir black3ecategories.

 

j'ai changé:

 

block2ndcategories.php en blokc3ecategories.php

block2ndcategories.tpl en block3ecategories.tpl

2ndcategories.class.php en 3ecategories.class.php

 

dans le fichier blokc3ecategories.php

 

Line 2: include _PS_MODULE_DIR_.'block2ndcategories/2ndcategories.class.php';

Line 3: class block2ndcategories extends Module

Line 13: $this->name = 'block2ndcategories';

Line 544: return $this->display(__FILE__, 'block2ndcategories.tpl');

 

et

 

$this->displayName = $this->l('2nd Category Bloc');

$this->description = $this->l('Add a second Category Bloc');

 

par

 

$this->displayName = $this->l('3e Category Bloc');

$this->description = $this->l('Add a 3e Category Bloc');

 

par

 

Line 2: include _PS_MODULE_DIR_.'block3ecategories/3ecategories.class.php';

Line 3: class block3ecategories extends Module

Line 13: $this->name = 'block3ecategories';

Line 544: return $this->display(__FILE__, 'block3ecategories.tpl');

 

dans le fichier fr.php

 

Line 5: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_305ffebcfc5e5cc2013dd66111c3e24c'] = '2nd Block Catégories';

Line 5: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_305ffebcfc5e5cc2013dd66111c3e24c'] = '2nd Block Catégories';

Line 6: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_f01f0ad5a948539bb552b962d2bc8cb6'] = 'Ajouter un second bloc catégorie';

Line 6: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_f01f0ad5a948539bb552b962d2bc8cb6'] = 'Ajouter un second bloc catégorie';

Line 7: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_597582c140dd691b522fe42299a24d34'] = 'mise à jour';

Line 7: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_597582c140dd691b522fe42299a24d34'] = 'mise à jour';

Line 8: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_11ad009c1b7c0615be18fe91185c179a'] = 'Le lien a été ajouté';

Line 8: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_11ad009c1b7c0615be18fe91185c179a'] = 'Le lien a été ajouté';

Line 9: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_15772d25000bce9fc3a2a2fd7d41a717'] = 'Le lien a été supprimé';

Line 9: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_15772d25000bce9fc3a2a2fd7d41a717'] = 'Le lien a été supprimé';

Line 10: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_be53a0541a6d36f6ecb879fa2c584b08'] = 'Image';

Line 10: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_be53a0541a6d36f6ecb879fa2c584b08'] = 'Image';

Line 11: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_706bebc78ad992a07e4c1ce0f39def81'] = 'pas d\'image';

Line 11: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_706bebc78ad992a07e4c1ce0f39def81'] = 'pas d\'image';

Line 12: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_8c38cf08a0d0a01bd44c682479432350'] = 'Changer l\'image';

Line 12: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_8c38cf08a0d0a01bd44c682479432350'] = 'Changer l\'image';

Line 13: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_f37ce582629980c42ec7dba12ae2ebc8'] = 'Largeur max recommandée : 190 px';

Line 13: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_f37ce582629980c42ec7dba12ae2ebc8'] = 'Largeur max recommandée : 190 px';

Line 14: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_6eb786e2a332517252f2b0135ef74093'] = 'Activer l\'affichage de l\'image';

Line 14: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_6eb786e2a332517252f2b0135ef74093'] = 'Activer l\'affichage de l\'image';

Line 15: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_b22c8f9ad7db023c548c3b8e846cb169'] = 'Titre du Block';

Line 15: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_b22c8f9ad7db023c548c3b8e846cb169'] = 'Titre du Block';

Line 16: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';

Line 16: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';

Line 17: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_f4f70727dc34561dfde1a3c529b6205c'] = 'Réglages';

Line 17: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_f4f70727dc34561dfde1a3c529b6205c'] = 'Réglages';

Line 18: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_1063e38cb53d94d386f21227fcd84717'] = 'Supprimer';

Line 18: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_1063e38cb53d94d386f21227fcd84717'] = 'Supprimer';

Line 19: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_ec211f7c20af43e742bf2570c3cb84f9'] = 'Ajouter';

Line 19: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_ec211f7c20af43e742bf2570c3cb84f9'] = 'Ajouter';

Line 20: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_c436854b135c3dd00ab95b2d4344b0ed'] = 'Sauvegarder';

Line 20: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_c436854b135c3dd00ab95b2d4344b0ed'] = 'Sauvegarder';

Line 21: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_9f1b01ac44ff287d5b8ed20ec8ee180b'] = 'Ajouter un lien au menu';

Line 21: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_9f1b01ac44ff287d5b8ed20ec8ee180b'] = 'Ajouter un lien au menu';

Line 22: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_97e7c9a7d06eac006a28bf05467fcc8b'] = 'lien';

Line 22: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_97e7c9a7d06eac006a28bf05467fcc8b'] = 'lien';

Line 23: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_7a115fe2bd8b94ead1550a2da953cf87'] = 'Nouvelle fenêtre';

Line 23: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_7a115fe2bd8b94ead1550a2da953cf87'] = 'Nouvelle fenêtre';

Line 24: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_19488f2956dc859eb635dbb0deaa15e1'] = 'Ajouter';

Line 24: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_19488f2956dc859eb635dbb0deaa15e1'] = 'Ajouter';

Line 25: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_efaeba65c6e6ece8c580d2e1eb176f3b'] = 'Ajouter une image';

Line 25: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_efaeba65c6e6ece8c580d2e1eb176f3b'] = 'Ajouter une image';

Line 26: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_814579fdad9baf2cdcac456468265384'] = 'Liste des liens';

Line 26: $_MODULE['<{block2ndcategories}prestashop>block2ndcategories_814579fdad9baf2cdcac456468265384'] = 'Liste des liens';

 

par

 

Line 5: $_MODULE['<{block3ecategories}prestashop>block3ecategories_305ffebcfc5e5cc2013dd66111c3e24c'] = '3e Block Catégories';

Line 5: $_MODULE['<{block3ecategories}prestashop>block3ecategories_305ffebcfc5e5cc2013dd66111c3e24c'] = '3e Block Catégories';

Line 6: $_MODULE['<{block3ecategories}prestashop>block3ecategories_f01f0ad5a948539bb552b962d2bc8cb6'] = 'Ajouter un second bloc catégorie';

Line 6: $_MODULE['<{block3ecategories}prestashop>block3ecategories_f01f0ad5a948539bb552b962d2bc8cb6'] = 'Ajouter un second bloc catégorie';

Line 7: $_MODULE['<{block3ecategories}prestashop>block3ecategories_597582c140dd691b522fe42299a24d34'] = 'mise à jour';

Line 7: $_MODULE['<{block3ecategories}prestashop>block3ecategories_597582c140dd691b522fe42299a24d34'] = 'mise à jour';

Line 8: $_MODULE['<{block3ecategories}prestashop>block3ecategories_11ad009c1b7c0615be18fe91185c179a'] = 'Le lien a été ajouté';

Line 8: $_MODULE['<{block3ecategories}prestashop>block3ecategories_11ad009c1b7c0615be18fe91185c179a'] = 'Le lien a été ajouté';

Line 9: $_MODULE['<{block3ecategories}prestashop>block3ecategories_15772d25000bce9fc3a2a2fd7d41a717'] = 'Le lien a été supprimé';

Line 9: $_MODULE['<{block3ecategories}prestashop>block3ecategories_15772d25000bce9fc3a2a2fd7d41a717'] = 'Le lien a été supprimé';

Line 10: $_MODULE['<{block3ecategories}prestashop>block3ecategories_be53a0541a6d36f6ecb879fa2c584b08'] = 'Image';

Line 10: $_MODULE['<{block3ecategories}prestashop>block3ecategories_be53a0541a6d36f6ecb879fa2c584b08'] = 'Image';

Line 11: $_MODULE['<{block3ecategories}prestashop>block3ecategories_706bebc78ad992a07e4c1ce0f39def81'] = 'pas d\'image';

Line 11: $_MODULE['<{block3ecategories}prestashop>block3ecategories_706bebc78ad992a07e4c1ce0f39def81'] = 'pas d\'image';

Line 12: $_MODULE['<{block3ecategories}prestashop>block3ecategories_8c38cf08a0d0a01bd44c682479432350'] = 'Changer l\'image';

Line 12: $_MODULE['<{block3ecategories}prestashop>block3ecategories_8c38cf08a0d0a01bd44c682479432350'] = 'Changer l\'image';

Line 13: $_MODULE['<{block3ecategories}prestashop>block3ecategories_f37ce582629980c42ec7dba12ae2ebc8'] = 'Largeur max recommandée : 190 px';

Line 13: $_MODULE['<{block3ecategories}prestashop>block3ecategories_f37ce582629980c42ec7dba12ae2ebc8'] = 'Largeur max recommandée : 190 px';

Line 14: $_MODULE['<{block3ecategories}prestashop>block3ecategories_6eb786e2a332517252f2b0135ef74093'] = 'Activer l\'affichage de l\'image';

Line 14: $_MODULE['<{block3ecategories}prestashop>block3ecategories_6eb786e2a332517252f2b0135ef74093'] = 'Activer l\'affichage de l\'image';

Line 15: $_MODULE['<{block3ecategories}prestashop>block3ecategories_b22c8f9ad7db023c548c3b8e846cb169'] = 'Titre du Block';

Line 15: $_MODULE['<{block3ecategories}prestashop>block3ecategories_b22c8f9ad7db023c548c3b8e846cb169'] = 'Titre du Block';

Line 16: $_MODULE['<{block3ecategories}prestashop>block3ecategories_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';

Line 16: $_MODULE['<{block3ecategories}prestashop>block3ecategories_c9cc8cce247e49bae79f15173ce97354'] = 'Sauvegarder';

Line 17: $_MODULE['<{block3ecategories}prestashop>block3ecategories_f4f70727dc34561dfde1a3c529b6205c'] = 'Réglages';

Line 17: $_MODULE['<{block3ecategories}prestashop>block3ecategories_f4f70727dc34561dfde1a3c529b6205c'] = 'Réglages';

Line 18: $_MODULE['<{block3ecategories}prestashop>block3ecategories_1063e38cb53d94d386f21227fcd84717'] = 'Supprimer';

Line 18: $_MODULE['<{block3ecategories}prestashop>block3ecategories_1063e38cb53d94d386f21227fcd84717'] = 'Supprimer';

Line 19: $_MODULE['<{block3ecategories}prestashop>block3ecategories_ec211f7c20af43e742bf2570c3cb84f9'] = 'Ajouter';

Line 19: $_MODULE['<{block3ecategories}prestashop>block3ecategories_ec211f7c20af43e742bf2570c3cb84f9'] = 'Ajouter';

Line 20: $_MODULE['<{block3ecategories}prestashop>block3ecategories_c436854b135c3dd00ab95b2d4344b0ed'] = 'Sauvegarder';

Line 20: $_MODULE['<{block3ecategories}prestashop>block3ecategories_c436854b135c3dd00ab95b2d4344b0ed'] = 'Sauvegarder';

Line 21: $_MODULE['<{block3ecategories}prestashop>block3ecategories_9f1b01ac44ff287d5b8ed20ec8ee180b'] = 'Ajouter un lien au menu';

Line 21: $_MODULE['<{block3ecategories}prestashop>block3ecategories_9f1b01ac44ff287d5b8ed20ec8ee180b'] = 'Ajouter un lien au menu';

Line 22: $_MODULE['<{block3ecategories}prestashop>block3ecategories_97e7c9a7d06eac006a28bf05467fcc8b'] = 'lien';

Line 22: $_MODULE['<{block3ecategories}prestashop>block3ecategories_97e7c9a7d06eac006a28bf05467fcc8b'] = 'lien';

Line 23: $_MODULE['<{block3ecategories}prestashop>block3ecategories_7a115fe2bd8b94ead1550a2da953cf87'] = 'Nouvelle fenêtre';

Line 23: $_MODULE['<{block3ecategories}prestashop>block3ecategories_7a115fe2bd8b94ead1550a2da953cf87'] = 'Nouvelle fenêtre';

Line 24: $_MODULE['<{block3ecategories}prestashop>block3ecategories_19488f2956dc859eb635dbb0deaa15e1'] = 'Ajouter';

Line 24: $_MODULE['<{block3ecategories}prestashop>block3ecategories_19488f2956dc859eb635dbb0deaa15e1'] = 'Ajouter';

Line 25: $_MODULE['<{block3ecategories}prestashop>block3ecategories_efaeba65c6e6ece8c580d2e1eb176f3b'] = 'Ajouter une image';

Line 25: $_MODULE['<{block3ecategories}prestashop>block3ecategories_efaeba65c6e6ece8c580d2e1eb176f3b'] = 'Ajouter une image';

Line 26: $_MODULE['<{block3ecategories}prestashop>block3ecategories_814579fdad9baf2cdcac456468265384'] = 'Liste des liens';

Line 26: $_MODULE['<{block3ecategories}prestashop>block3ecategories_814579fdad9baf2cdcac456468265384'] = 'Liste des liens';

 

quand je l'ajoute dans le pannel, ça me cré un bug et j'ai les modules qui disparaissent (toujours dans le pannel admin).

 

j'ai du oublier quelquechose, si vous pouviez me donner un coup de pouce? ou de pied ^^

block2ndcategoriesV0.1.zip

block3ecategories.zip

Link to comment
Share on other sites

  • 1 month later...

Salut

As-tu réussi à solutionner ce souci de duplication ?

A mon avis c'est dans le fichier 3ecategories.class.php qu'il doit falloir changer le linksmenutop...

Si tu as réussi ou si qqn a la solution merci d'en faire profiter la communauté !

Link to comment
Share on other sites

  • 1 month later...

bonjour ! j'ai eu le même problème et j'ai changer linkmenutop en linkmenutop3 et menutoplinks.class.php en menutoplinks3.class.php. Le module s'affiche et je peux mettre mes catégories dedans, tout fonctionne très bien, mais il reste un bug que je n'arrive pas à virer : si je change le titre du bloc dans le 2nd àa le change aussi dans 3rd, étant novice je n'ai pas encore trouvé la solution =/

quelqu'un aurait une idée s'il vous pait ?

 

je voulais vous mettre mon 3rdblockcategories en zip comme wariorz mais je comprends pas comment faire, si qq'un en a besoin qu'il me demande, comme dit, je peux pas changer le tire =/ sinon tout fonctionne.

Edited by mel67 (see edit history)
Link to comment
Share on other sites

j'ai trouvé la solution, dans le fichiers block3ndcategories.php il faut changer BLOCKTITRETHEME et BLOCKMETTREBLOCK (présent 2 fois tu fais une recherche pat mot) en BLOCKTITRETHEME3 et BLOCKMETTREBLOCK3 et voilà ! si je trouve comment envoyer le fichiers je vous met mon 3e bloc ^^

Link to comment
Share on other sites

  • 5 months later...

Bonjour à tous et tous mes voeux pour cette nouvelle année !

 

Je relance ce sujet parce que j'essaie de mettre en place la solution de mel67 mais sans succès.

 

J'ai fais tous ce que mel67 propose ci-dessus en renommant tous les block2ndcategories en block3rdcategories... mais invariablement, quand je dépose le module, la liste des modules du BO ne s'affiche plus. Il suffit que je suppprime le dossier block3rdcategories pour que la liste des modules dans le BO se réaffiche...

 

J'ajoute qu'en fait, je n'ai pas fait tout ce qui proposé parce je ne trouve nulle part de mention au fichier menutoplinks.class.php qui serait à renomer en menutoplinks3.class.php ??

 

Vous avez des idées ?

Merci

Edited by pierrewebmaster (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...