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

#   Nom du fichier AttachSerial personnalisable

##

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

Less More

- Posts: 90
- Thank you received: 0
-
-

12 years 11 months ago [\#132798](#132798) by [christian13](/forum/user/12846-christian13 "View christian13's Profile")  *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#132798 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")* was created by *[christian13](/forum/user/12846-christian13 "View christian13's Profile")*

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.4

Bonjour Jérome

Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?

J'obtiens pas exemple image5288f590097da.png
quand je préfèrerais un nom choisi suivi du serial .PNG
si mon serial vaut 0123456789
J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.

Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.

Merci

Christian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE4LXN1cHBvcnQtZW4tZnJhbmNhaXMtZGUtaGlrYXNlcmlhbC1mcmVuY2gtc3VwcG9ydC84NjM2Nzctbm9tLWR1LWZpY2hpZXItYXR0YWNoc2VyaWFsLXBlcnNvbm5hbGlzYWJsZT90bXBsPW1hcmtkb3du) 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 11 months ago [\#132805](#132805) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#132805 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")*

Bonsoir,

Au niveau de l'API de Joomla pour ajouter une image dans un email, ce n'est pas possible.

Cordialement,

---

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

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

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

Less More

- Posts: 90
- Thank you received: 0
-
-

12 years 11 months ago [\#133076](#133076) by [christian13](/forum/user/12846-christian13 "View christian13's Profile")  Replied by *[christian13](/forum/user/12846-christian13 "View christian13's Profile")* on topic *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#133076 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")*

Jérome

Ma question portait sur le nom du fichier image pas son contenu.

cdlt

Christian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE4LXN1cHBvcnQtZW4tZnJhbmNhaXMtZGUtaGlrYXNlcmlhbC1mcmVuY2gtc3VwcG9ydC84NjM2Nzctbm9tLWR1LWZpY2hpZXItYXR0YWNoc2VyaWFsLXBlcnNvbm5hbGlzYWJsZT90bXBsPW1hcmtkb3du) 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 11 months ago [\#133091](#133091) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#133091 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")*

Christian,

Oui je sais. Et ma réponse porte là dessus.

Cordialement,

---

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

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

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

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

Less More

- Posts: 90
- Thank you received: 0
-
-

12 years 11 months ago [\#133112](#133112) by [christian13](/forum/user/12846-christian13 "View christian13's Profile")  Replied by *[christian13](/forum/user/12846-christian13 "View christian13's Profile")* on topic *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#133112 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")*

ok compris ![;-)](/media/kunena/emoticons/14.png ";-)")

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

- **[wantoo](/forum/user/6934-wantoo "View wantoo's Profile")**
- [![wantoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6934.jpg)](/forum/user/6934-wantoo "View wantoo's Profile")
- [ Offline](/forum/user/6934-wantoo)

Less More

- Posts: 16
- Thank you received: 0
-
-
- [](http://network.wantoo.com)
-

12 years 10 months ago [\#134170](#134170) by [wantoo](/forum/user/6934-wantoo "View wantoo's Profile")  Replied by *[wantoo](/forum/user/6934-wantoo "View wantoo's Profile")* on topic *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#134170 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")*

Bonsoir,

Je pense qu'il est possible de corriger le code pour répondre à cela... mais c'est du bricolage, que Jerome ne me crie pas dessus ![:P](/media/kunena/emoticons/15.png ":P")

fichier attachserial.php à la ligne 87 Code:

$filename = 'image'.uniqid().'.'.$extension;

Remplacer par quelque chose du genre Code:

$filename = 'CHRISTIAN'.$serial-&gt;serial_data.'.'.$extension;

Pas testé si $serial-&gt;serial_data retourne quelque chose à cet endroit mais c'est l'idée

Didier

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE4LXN1cHBvcnQtZW4tZnJhbmNhaXMtZGUtaGlrYXNlcmlhbC1mcmVuY2gtc3VwcG9ydC84NjM2Nzctbm9tLWR1LWZpY2hpZXItYXR0YWNoc2VyaWFsLXBlcnNvbm5hbGlzYWJsZT90bXBsPW1hcmtkb3du) 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 10 months ago [\#134178](#134178) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Nom du fichier AttachSerial personnalisable](/forum/18-support-en-francais-de-hikaserial-french-support/863677-nom-du-fichier-attachserial-personnalisable#134178 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  Bonjour Jérome  Est-il possible de personnaliser le nom du fichier PNG généré par AttachSerial?  J'obtiens pas exemple image5288f590097da.png quand je préfèrerais un nom choisi suivi du serial .PNG si mon serial vaut 0123456789 J'aimerais CHRISTIAN0123456789.PNG au lieu de image5288f590097da.png.  Si ce n'est pas encore possible, peut-être le mettre dans la TODO list.  Merci  Christian")*

Bonsoir,

Mince alors, j'ai confondu les API !
En effet, AddStringAttachment même dans Joomla 1.5 prends le paramètre $filename...

Bon et bien je vais ajouter une option dans le plugin (option générale, côté XML) pour la prochaine release de décembre.

Au temps pour moi,

---

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

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.208 seconds

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

[](#top)
