- Posts: 166
- Thank you received: 6
PDFserial and different languages
8 years 2 weeks ago #297713
by jean-loup
PDFserial and different languages was created by jean-loup
-- 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
-- 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 or Create an account to join the conversation.
8 years 2 weeks ago #297732
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic PDFserial and different languages
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 :
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,
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->getFilePath($params->pdf_path);
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: jean-loup
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.203 seconds