PDFserial and different languages

  • Posts: 160
  • Thank you received: 5
  • Hikaserial Standard Hikashop Business
5 years 2 months ago #297713

-- 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


Please Log in or Create an account to join the conversation.

  • Posts: 25894
  • Thank you received: 3990
5 years 2 months ago #297732


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 :

$pdf_template = $this->getFilePath($params->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.


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.060 seconds
Powered by Kunena Forum