Email notification in file field not sending emails per NN hits

More
3 years 10 months ago - 3 years 10 months ago #78833 by alain_grach
Hello,
I use joomla 3.9.10 with Flexicontent 3.3.5
I created several articles with a File field downloadable by registered users.
This feature is OK, but I would like to receive an email notification with each download.
In the configuration of the fields, I set the Notifications tab with:

Email Notifications every N downloads
Send notifications on the number of clicks: Yes
Every N hits: 1
Notification text (I haven't changed anything here): %% FLEXI_HITS %% __FILE_HITS__
%% FLEXI_FDN_FILE_NO %% __FILE_ID__: [__FILE_TITLE__]
%% FLEXI_FDN_FILE_IN_ITEM %% __ITEM_TITLE__:
__ITEM_URL__
Send to
to specific emails: monadresse@monmail.fr
To the owner of the content of the article: No
to emails in the EMAIL field: - - Select - -

But I do not receive any mail during a download.
Where is the error?

Here is a page of my site with a download link:
lesunimog.fr/index.php/mediatheque/80-do...tice-411-en-francais
I remind you that you must have (or create) an account on the site to download.

Thank you
Alain
Last edit: 3 years 10 months ago by ggppdk.

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

More
3 years 10 months ago - 3 years 10 months ago #78845 by ggppdk
Hello

i will include a fix in next release
currently the notifications go out every 20 hits , because the parameter name in the code is wrong

In file
components/com_flexicontent/controller.php

Replace
Code:
$per_downloads = $fields_conf[$field_id]->get('notifications_hits_step', 20);

with
Code:
$per_downloads = $fields_conf[$field_id]->get('notifications_step', 20);

Also if you the parameter for hard-coded email
use ; instead of ,
for separating the emails


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 3 years 10 months ago by ggppdk.

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

More
3 years 10 months ago - 3 years 10 months ago #78851 by alain_grach
Thank's a lot,
With this modification, all is perfect !
Last edit: 3 years 10 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.263 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline