jDownloads Support Forum

jDownloads for Joomla 3.x => jDownloads 3.9 (Support ended) => Topic started by: ibrahim on 10.06.2022 21:45:58

Title: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ibrahim on 10.06.2022 21:45:58
Hello! Is there any possibility to add the price value placeholder variable on the Email layout from jDownloads - Options - E-Mails?

Available placeholder variables are
{file_list} {ip_address} {date_time} {user_name} {user_group}

I tried Layouts placeholder variables but didnt work
{price_title} {price_value}
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ColinM on 10.06.2022 23:42:02
HI
Which email?  Think the Inquiry one would be appropriate
Colin
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ibrahim on 11.06.2022 00:36:09
Hi ColinM! See attached screenshot to show you where I would include the variable price field {price_value} in the admin sent emails where subject: Information about new download
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ColinM on 11.06.2022 10:15:58
Ibrahim,
That email is sent everytime a Download is downloaded! Not just when a new Download is added.

Hoewever it would be an extra facility if an email was sent when a new Download was available. So could you please add it to suggestions.

In reality this would not get done until we have sorted jD4

Colin
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ibrahim on 11.06.2022 13:02:04
Hi, thanks for quick response! I was trying to have on emails that sent every time a Download is downloaded.
Interesting to see jDownloads on Joomla 4 soon.
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ColinM on 12.06.2022 16:51:39
Hi
I have looked at the code in more detail. 
The Download could be multiple files downloaded when using a layout with check boxes.

This gives an email like below.  So adding in extra items would be challenging.
The Upload email is only for uploads from the front end.

You could also show the price in the layout

Colin
----------------------------------------
Download Notice.

The following files were downloaded:

    70-one-of-uploader-s    Size: 20.46 KB
    File with long Name and tags-A1234567890B1234567890C1234567890D1234567890    Size: 25.82 KB
    ReadMe    Size: 651.66 KB
    Sample_Valve Box_Order_Form    Size: 165.25 KB



Date and time: 2022-06-12
Name: jd-testin-uploader
Usergroup: Registered, uploaderUG
User IP-Adress: 79.66.131.24

Please do not respond directly to this email as it is automatically generated and you will not receive a reply.
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ibrahim on 12.06.2022 17:03:15
On my site it sends mails for each download file, not multiple files in one mail.

QuoteYou could also show the price in the layout
Didn't understand how to show it?
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ColinM on 12.06.2022 17:57:12
Ibrahim
I appreciate you are only concerned with your site but we need to consider the wider audience! :)
Yes your layout may only show one download but other users might be using layouts that have multiple Downloads so that would make the coding and specification 'interesting' with a lot of specific code.

What is wrong with showing the price in the layout?

Colin
Title: Re: Add price value placeholder variable on E-Mail Configuration for Downloads.
Post by: ibrahim on 12.06.2022 20:38:57
QuoteWhat is wrong with showing the price in the layout?
I speak about showing the price on download email notifications. Anyway, it's not important as you said it's a lot of specific code.
I will wait for Joomla 4 and add my request for suggestions.

Thanks for help  :)