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

  • Posts: 58
  • Thank you received: 2
7 years 1 month ago #280791

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

Hi,

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

thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 1 month ago #280793

Hello,

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

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

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

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