downloadlink in email for digital products

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

downloadlink in email for digital products

Post by IOU42 » 30 Sep 2020, 10:03

Hi,

I am a bit stuck with below two points regarding the downloadlink for digital products. Hopefully you can guide me in the right direction again.

Question 1: I have multiple testsites on my local Xampp installation. This includes an Aimeos webshop with hostname "localaimeos".. When a customer orders a digital product, an email is sent with the download link.

- In the email the download link is always prefixed with "localhost":
http://localhost/localaimeos/profile/download/24
- In the order confirmation webpage this is not the case, there is shows correctly:
http://localaimeos/profile/download/23

How can I change the downloadlink shown in the email, to show the same link as in the confirmation page?

Question 2: Is it possible to have the email downloadlink to work without logging in? In my current Woocommerce shop the customer can just click on the link without being required to log in. I like because this way they are not required to create a password etc..

installed versions:
Laravel: 7.28.3
Aimeos: 2020.07
PHP: 7.2.29


Thanks!

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: downloadlink in email for digital products

Post by aimeos » 01 Oct 2020, 09:13

IOU42 wrote: 30 Sep 2020, 10:03 Question 1: I have multiple testsites on my local Xampp installation. This includes an Aimeos webshop with hostname "localaimeos".. When a customer orders a digital product, an email is sent with the download link.

- In the email the download link is always prefixed with "localhost":
http://localhost/localaimeos/profile/download/24
- In the order confirmation webpage this is not the case, there is shows correctly:
http://localaimeos/profile/download/23

How can I change the downloadlink shown in the email, to show the same link as in the confirmation page?
You have to change the APP_URL setting in your .env file.
IOU42 wrote: 30 Sep 2020, 10:03 Question 2: Is it possible to have the email downloadlink to work without logging in? In my current Woocommerce shop the customer can just click on the link without being required to log in. I like because this way they are not required to create a password etc..
At the moment this isn't possible without customization.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Re: downloadlink in email for digital products

Post by IOU42 » 01 Oct 2020, 14:56

You have to change the APP_URL setting in your .env file.
Thanks, but that does not work somehow. In ENV file APP_URL was already set at "localaimeos", but in the email localhost is prefixed to the downloadlink, resulting in "http://localhost/localaimeos/".

installed versions:
Laravel: 7.28.3
Aimeos: 2020.07
PHP: 7.2.29

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: downloadlink in email for digital products

Post by aimeos » 01 Oct 2020, 15:29

Make sure, your .env file contains:

Code: Select all

APP_URL=http://localaimeos/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Re: downloadlink in email for digital products

Post by IOU42 » 02 Oct 2020, 07:11

Thanks you very much. Problem solved.

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

Post Reply