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

#   ordre des produits dans e-mail de commande

##

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

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

12 years 6 months ago [\#150571](#150571) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  *[ordre des produits dans e-mail de commande](/forum/5-support-en-francais-french-support-/867111-ordre-des-produits-dans-e-mail-de-commande#150571 "-- url of the page with the problem -- : extranet.jardinpromo.com -- HikaShop version -- : 2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Tous -- Error-message(debug-mod must be tuned on) -- : aucun  Bonjour,  J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.  Est-ce possible?  Merci.")* was created by *[oliv](/forum/user/7307-oliv "View oliv's Profile")*

-- url of the page with the problem -- : extranet.jardinpromo.com
-- HikaShop version -- : 2.3
-- Joomla version -- : 2.5.19
-- PHP version -- : 5.4.24
-- Browser(s) name and version -- : Tous
-- Error-message(debug-mod must be tuned on) -- : aucun

Bonjour,

J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.

Est-ce possible?

Merci.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 6 months ago [\#150600](#150600) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[ordre des produits dans e-mail de commande](/forum/5-support-en-francais-french-support-/867111-ordre-des-produits-dans-e-mail-de-commande#150600 "-- url of the page with the problem -- : extranet.jardinpromo.com -- HikaShop version -- : 2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Tous -- Error-message(debug-mod must be tuned on) -- : aucun  Bonjour,  J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.  Est-ce possible?  Merci.")*

Bonjour,
La solution sera surement de modifier le code du "Preload" de votre email via "Hikashop-&gt;System-&gt;Emails".

The following user(s) said Thank You: [oliv](/forum/user/7307-oliv "View oliv's Profile")

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

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

Less More

- Posts: 257
- Thank you received: 7
-
-
-
- [](http://jardinpromo.com)
-

12 years 6 months ago [\#150739](#150739) by [oliv](/forum/user/7307-oliv "View oliv's Profile")  Replied by *[oliv](/forum/user/7307-oliv "View oliv's Profile")* on topic *[ordre des produits dans e-mail de commande](/forum/5-support-en-francais-french-support-/867111-ordre-des-produits-dans-e-mail-de-commande#150739 "-- url of the page with the problem -- : extranet.jardinpromo.com -- HikaShop version -- : 2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Tous -- Error-message(debug-mod must be tuned on) -- : aucun  Bonjour,  J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.  Est-ce possible?  Merci.")*

Bonjour Mohamed,

Connaissez-vous les lignes de codes à renseigner dans ce fichier?

Merci.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY3MTExLW9yZHJlLWRlcy1wcm9kdWl0cy1kYW5zLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) 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 6 months ago [\#150777](#150777) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[ordre des produits dans e-mail de commande](/forum/5-support-en-francais-french-support-/867111-ordre-des-produits-dans-e-mail-de-commande#150777 "-- url of the page with the problem -- : extranet.jardinpromo.com -- HikaShop version -- : 2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Tous -- Error-message(debug-mod must be tuned on) -- : aucun  Bonjour,  J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.  Est-ce possible?  Merci.")*

Bonjour,

Je pense qu'il faut faire quelque chose comme: Code:

$cartProducts = array_sort($cartProducts, 'PRODUCT_CODE', SORT_ASC);

Juste avant: Code:

$templates['PRODUCT_LINE'] = $cartProducts;

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 2 months ago -  12 years 2 months ago [\#168417](#168417) by [jbeu](/forum/user/33866-jbeu "View jbeu's Profile")  Replied by *[jbeu](/forum/user/33866-jbeu "View jbeu's Profile")* on topic *[ordre des produits dans e-mail de commande](/forum/5-support-en-francais-french-support-/867111-ordre-des-produits-dans-e-mail-de-commande#168417 "-- url of the page with the problem -- : extranet.jardinpromo.com -- HikaShop version -- : 2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Tous -- Error-message(debug-mod must be tuned on) -- : aucun  Bonjour,  J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.  Est-ce possible?  Merci.")*

Bonjour,
je souhaite moi aussi modifier l'ordre des produits en les classant par catégorie (chaque produit appartient à 1 seule catégorie).

J'ai donc essayé de partir de la ligne de code proposée,
mais j'obtiens une page blanche lors de la dernière étape de commande.
(la commande est bien visible en backend, et le premier email part bien si je n'applique cette modif qu'à l'email administrateur)

@Oliv : avais-tu réussi ton classement ?
@Xavier : une idée ?

merci
JB

Last edit: 12 years 2 months ago by [jbeu](/forum/user/33866-jbeu "View jbeu's Profile"). Reason: précisions

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 2 months ago [\#168419](#168419) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[ordre des produits dans e-mail de commande](/forum/5-support-en-francais-french-support-/867111-ordre-des-produits-dans-e-mail-de-commande#168419 "-- url of the page with the problem -- : extranet.jardinpromo.com -- HikaShop version -- : 2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Tous -- Error-message(debug-mod must be tuned on) -- : aucun  Bonjour,  J'aimerais recevoir mes e-mail de commande avec les produits classés par ordre croissant des références.  Est-ce possible?  Merci.")*

Bonjour,

Si vous avez une page blanche, vous avez une erreur PHP ; vous devez donc regarder votre log d'erreur PHP.

Et le problème est que la fonction "array_sort" n'est pas une fonction PHP existante ; Xavier cherchait à indiquer la façon dont il fallait trier les produits du tableau. Mais cela demande un peu de développement.
Vous pouvez regarder la documentation de la fonction "array_multisort"
[ php.net/manual/fr/function.array-multisort.php](http://php.net/manual/fr/function.array-multisort.php)

En espérant que cela vous aide dans votre recherche.

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY3MTExLW9yZHJlLWRlcy1wcm9kdWl0cy1kYW5zLWUtbWFpbC1kZS1jb21tYW5kZT90bXBsPW1hcmtkb3du) 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.336 seconds

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

[](#top)
