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

#   PDFserial and different languages

##

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

Less More

- Posts: 176
- Thank you received: 8
-
-

8 years 2 months ago [\#297713](#297713) by [jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")  *[PDFserial and different languages](/forum/14-hikaserial/895681-pdfserial-and-different-languages#297713 "-- HikaShop version -- : 3.5.1 -- HikaSerial version -- : 2.2.0  Good day  Is there a way to have several pdf in &quot;image&quot; folder, or to attach different PDF according to the language chosen on the website? For instance if the pdf template contains instructions Thank you for your help  Jean-Loup")* was created by *[jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")*

-- HikaShop version -- : 3.5.1
-- HikaSerial version -- : 2.2.0

Good day

Is there a way to have several pdf in "image" folder, or to attach different PDF according to the language chosen on the website?
For instance if the pdf template contains instructions
Thank you for your help

Jean-Loup

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODk1NjgxLXBkZnNlcmlhbC1hbmQtZGlmZmVyZW50LWxhbmd1YWdlcz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

8 years 2 months ago [\#297732](#297732) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PDFserial and different languages](/forum/14-hikaserial/895681-pdfserial-and-different-languages#297732 "-- HikaShop version -- : 3.5.1 -- HikaSerial version -- : 2.2.0  Good day  Is there a way to have several pdf in &quot;image&quot; folder, or to attach different PDF according to the language chosen on the website? For instance if the pdf template contains instructions Thank you for your help  Jean-Loup")*

Hello,

The PDFSerial, as the "Attach Serial" plugin handle Joomla transactions.
It allows to print some text into the PDF or the Image.

Currently, there is no feature which allow to select a PDF template or an Image template depending the language.
While I fully understand what you want to achieve, I see potential problems if we authorize a "language" tag for the image ; because it would be very difficult for the plugin to check if the different images exists and be sure that it can work every time.

But you can see to modify the plugin in order to change how the pdf template is loaded : Code:

$pdf_template = $this-&gt;getFilePath($params-&gt;pdf_path);

The function getFilePath need a valid file path (it checks the existence of the file in multiple folders), so you'd want to change its parameter value just before.

Regards,

---

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

The following user(s) said Thank You: [jean-loup](/forum/user/40284-jean-loup "View jean-loup's Profile")

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

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