[Skip to main content](#vessel-content)

#   Copier des catégories

##

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Offline](/forum/user/32861-kilou)

Less More

- Posts: 732
- Thank you received: 39
-

12 years 4 months ago [\#162709](#162709) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#162709 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")* was created by *[kilou](/forum/user/32861-kilou "View kilou's Profile")*

Bonjour,
je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet.
J’ai exploré les menus déroulants des *Actions en masse* mais je n’ai pas trouvé une commande qui puisse m'aider.
Une piste à me donner?

Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 4 months ago [\#162715](#162715) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#162715 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

Bonjour,

Il n'y a pas de système pour copier des catégories. Il va falloir faire cela à la main.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Offline](/forum/user/32861-kilou)

Less More

- Posts: 732
- Thank you received: 39
-

12 years 4 months ago -  12 years 4 months ago [\#162795](#162795) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#162795 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

…ah, dommage :dry: … pourquoi ne pas l'avoir implémentée dans votre composant quand cette fonction est disponible par défaut dans Joomla autant pour les modules, les articles, les catégories…?

Last edit: 12 years 4 months ago by [kilou](/forum/user/32861-kilou "View kilou's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 4 months ago [\#162830](#162830) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#162830 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

Bonjour,

Cette option n'a pas été implémentée car ne semblait pas nécessaire.
En effet, nous n'avons jusqu'a présent pas eu cette requete à ma connaissance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile")
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

12 years 4 months ago -  12 years 4 months ago [\#163378](#163378) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#163378 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

INSERT INTO #__hikashop_category SELECT (liste de tous les champ [sauf category_id] avec id de la nouvelle category_parent_id) FROM #__hikashop_category WHERE category_parent_id = id de la category_parent_id actuelle

pour uniquement les deplacer
UPDATE #__hikashop_category SET category_parent_id = new_id WHERE category_parent_id = old_id

Last edit: 12 years 4 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile"), [kilou](/forum/user/32861-kilou "View kilou's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Offline](/forum/user/32861-kilou)

Less More

- Posts: 732
- Thank you received: 39
-

12 years 4 months ago [\#163396](#163396) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#163396 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

…merci, peut-être d'abord l'essayer en local ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile")
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

12 years 4 months ago -  12 years 4 months ago [\#163397](#163397) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#163397 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

oui bien sur en localhost d'abord
tu veux déplacer ou dupliquer ailleurs une sous catégorie ?

Last edit: 12 years 4 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Offline](/forum/user/32861-kilou)

Less More

- Posts: 732
- Thank you received: 39
-

12 years 4 months ago [\#163398](#163398) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#163398 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

… il s'agirait de les dupliquer...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile")
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

12 years 4 months ago -  12 years 4 months ago [\#163400](#163400) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#163400 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

fait attention que la liste des champs correspondent bien aux tiens sion ajoute ou supprime, par exemple @category_parent_id_from c'est la categorie dont tu veux dupliquer tous les sous elements , category_short_descr c'est dans ma table un champ perso
@category_parent_id_from c'est la categorie depuis laquelle tu veux dupliquer tous les sous elements
@category_parent_id_to c'est la categorie vers la quelle dupliquer tous les sous elements

remplace prefixe_ par ton prefixe
Code:

set @category_parent_id_from = 75; set @category_parent_id_to = 1400; INSERT INTO &#96;prefixe_hikashop_category&#96; SELECT NULL, @category_parent_id_to , &#96;category_type&#96; , &#96;category_name&#96; , &#96;category_description&#96; , &#96;category_published&#96; , &#96;category_ordering&#96;, &#96;category_left&#96;, &#96;category_right&#96;, &#96;category_depth&#96;, CONCAT(&#96;category_namekey&#96;,'_', @category_parent_id_to) , &#96;category_created&#96;, &#96;category_modified&#96;, &#96;category_access&#96; , &#96;category_menu&#96; , &#96;category_keywords&#96; , &#96;category_meta_description&#96; , &#96;category_layout&#96; , &#96;category_page_title&#96; , &#96;category_alias&#96; , &#96;category_site_id&#96; , &#96;category_canonical&#96; , &#96;category_short_descr&#96; , &#96;category_tag&#96; , &#96;category_long_title&#96; , &#96;category_quantity_layout&#96; FROM &#96;prefixe_hikashop_category&#96; WHERE &#96;category_parent_id&#96; = @category_parent_id_from ;

Last edit: 12 years 4 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Offline](/forum/user/32861-kilou)

Less More

- Posts: 732
- Thank you received: 39
-

12 years 4 months ago [\#163401](#163401) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Copier des catégories](/forum/5-support-en-francais-french-support-/869450-copier-des-categories#163401 "Bonjour, je dois copier des sous-catégories dans une autre catégorie, comment faire? Je ne vois aucune option à ce sujet. J’ai exploré les menus déroulants des Actions en masse mais je n’ai pas trouvé une commande qui puisse m'aider. Une piste à me donner?  Merci.")*

…très sympa, merci. ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY5NDUwLWNvcGllci1kZXMtY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.076 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
