Five Things
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 92
- Joined: 15 Jan 2021, 11:02
Re: Five Things
Looks like that yeaCheck what's the file content. Guess, TYPO3 is adding some HTML around and this is normally removed by the setup TS of the download page.
Yes the fileending is a jpg but browser says too
"Microsoft Edge HTML Document"
Thats the urlpart: download?ai%5Bdl_id%5D=72&cHash=31c4c651f8938c18a47b882df889cdc0
Btw. the download works only if im logged in, like it should be.
Wich i have to set:- the fe_login plugin must be placed at the account profile page
- the fe_login plugin must be configured to redirect after login based on the GET parameters (in its flexform)
Defined by GET/POST Parameters [getpost]
or
After Login (TS or FLexform) [login]
And really only on the login form from the account page. Or too or only on the login form on the downloadpage?
Or, in every login i make?
oh kay, thats bad. but if the thing with the file will work, its okayThe link is only sent in the order e-mail and customers won't be able to download their files if you enable the page in the menu because the required parameters are missing.
Last edited by Shopmister on 02 May 2021, 07:54, edited 1 time in total.
Re: Five Things
The login form should be only on the profile page, not the download page as far as I remember.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 92
- Joined: 15 Jan 2021, 11:02
Re: Five Things
From begin again to make it easier :
Im at the point with the downloadproducts that the link is sendet in the mail, but the dokument(.png in that example) have html around. Not usabel:
1) Where the loginform. Only on Account/profilepage) or at Downloadpage too?
2) What redirects exactly to add:
- Defined by get/post parameters
- After login ts or flexform login
- Defined by usergroup record
- Defined by user record
- After logout
- After Login Error
- Defined by referrer
- Defined by domain entrys
3) have to the number/page id the profile or the downloadpage
config.typolinkLinkAccessRestrictedPages = 10
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###
If it not works afterwords. What can the maybe another problem if it not works?
Im at the point with the downloadproducts that the link is sendet in the mail, but the dokument(.png in that example) have html around. Not usabel:
1) Where the loginform. Only on Account/profilepage) or at Downloadpage too?
2) What redirects exactly to add:
- Defined by get/post parameters
- After login ts or flexform login
- Defined by usergroup record
- Defined by user record
- After logout
- After Login Error
- Defined by referrer
- Defined by domain entrys
3) have to the number/page id the profile or the downloadpage
config.typolinkLinkAccessRestrictedPages = 10
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###
If it not works afterwords. What can the maybe another problem if it not works?
Re: Five Things
We've finally found a (more or less) working solution again.
Beginning from the default setup do:
- Remove the Login plugin from the /profile/download page
- Add the TypoScript of the /jsonapi page to a new extension TS template
These will prevent the redirect loop and the invalid files due to TYPO3 adding HTML to the download file. Leave the rest as is.
One one problem is still unsolved:
TYPO3 redirects to the /profile page with the login form but after successful login, the user isn't redirected back to the download page - no matter what we've tried to configure in the login plugin. The use either has to click on the link from the e-mail again or use the link from the profile order history.
Beginning from the default setup do:
- Remove the Login plugin from the /profile/download page
- Add the TypoScript of the /jsonapi page to a new extension TS template
These will prevent the redirect loop and the invalid files due to TYPO3 adding HTML to the download file. Leave the rest as is.
One one problem is still unsolved:
TYPO3 redirects to the /profile page with the login form but after successful login, the user isn't redirected back to the download page - no matter what we've tried to configure in the login plugin. The use either has to click on the link from the e-mail again or use the link from the profile order history.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 92
- Joined: 15 Jan 2021, 11:02
Re: Five Things
Okay, first i did now removed the login plugin from download and account/profile page. Buts for sure not a nice solution, but i use a Loginform in the headerarea, that are anough maybe
Then: What is the TypoScript of the json page. I dont have an template on the jsonpage where i could setup a ts before.
Its a Typo3problem, for all users they use the Downloadproducts in typo3???
Yea, the second problem is ugly for users too.
Then: What is the TypoScript of the json page. I dont have an template on the jsonpage where i could setup a ts before.
Its a Typo3problem, for all users they use the Downloadproducts in typo3???
Yea, the second problem is ugly for users too.
Re: Five Things
Forgot to mention that the download page needs to be assigned to the user group of all customers.Shopmister wrote: ↑21 Apr 2021, 07:02 Okay, first i did now removed the login plugin from download and account/profile page. Buts for sure not a nice solution, but i use a Loginform in the headerarea, that are anough maybe
Shopmister wrote: ↑21 Apr 2021, 07:02 Then: What is the TypoScript of the json page. I dont have an template on the jsonpage where i could setup a ts before.
Code: Select all
config.additionalHeaders.1000.header = Cache-control: no-store
page = PAGE
page {
typeNum = 0
headerData >
config {
disableAllHeaderCode = 1
disableCharsetHeader = 1
disablePrefixComment = 1
}
10 = CONTENT
10 {
table = tt_content
select.orderBy = sorting
select.languageField = sys_language_uid
}
}
tt_content.stdWrap >
tt_content.list = COA
tt_content.list.20 = CASE
tt_content.list.20.key.field = list_type
tt_content.list.templateName >
tt_content.list.templateRootPaths >
tt_content.list.partialRootPaths >
tt_content.list.layoutRootPaths >
Yes, it's a problem of the felogin plugin.Shopmister wrote: ↑21 Apr 2021, 07:02 Its a Typo3problem, for all users they use the Downloadproducts in typo3???
Yea, the second problem is ugly for users too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 92
- Joined: 15 Jan 2021, 11:02
Re: Five Things
Okay, now i did, see pics:
Are there a fail? i hope so because it dosent work, with delete the html from file. I destroyed the installation maybe after setting the rights at : [SYS][fileCreateMask] and [SYS][folderCreateMask] . I have to set up new to test, but maybe i did have already a fail you see for the downloadthing .
I think i dont set the # Hint: Change page ID to your "My Account" page here
config.typolinkLinkAccessRestrictedPages = 5
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###
But maybe you see other things too, that if i try to setup new again i can make it right too
Are there a fail? i hope so because it dosent work, with delete the html from file. I destroyed the installation maybe after setting the rights at : [SYS][fileCreateMask] and [SYS][folderCreateMask] . I have to set up new to test, but maybe i did have already a fail you see for the downloadthing .
I think i dont set the # Hint: Change page ID to your "My Account" page here
config.typolinkLinkAccessRestrictedPages = 5
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###
But maybe you see other things too, that if i try to setup new again i can make it right too
-
- Posts: 92
- Joined: 15 Jan 2021, 11:02
Re: Five Things
I did it! i did it
I thought always that the code is for the jsonapipage. I have the code included now at the Downloadpage and its working ...
Thanks a lot
I thought always that the code is for the jsonapipage. I have the code included now at the Downloadpage and its working ...
Thanks a lot