Replace the filename "image..." of the attached png

  • Posts: 58
  • Thank you received: 2
  • Hikamarket Multivendor Hikaserial Standard Hikashop Business
1 year 2 months ago #280791

-- HikaShop version -- : 3.2.0
-- HikaSerial version -- : 2.0.0
-- Joomla version -- : 3.8.1
-- PHP version -- : 7


I am selling vouchers - they are sent to the recipient as attachments (png) with email.

I would like to replace the filename "image..." with a more senseful name like "Voucher_".

I found on line 317 in the plugin/attachserial.php

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

But I don´t like to change things in the code. And again after updates.
Is there another way to replace the filename??


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

  • Posts: 23196
  • Thank you received: 3591
1 year 2 months ago #280793


In fact, you have a special setting in the plugin "attach serial" (via the Joomla plugin manager) called "Image filename format".


Jerome -
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: woidl

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

Moderators: Obsidev
Time to create page: 0.072 seconds
Powered by Kunena Forum