Five Things

Questions around the TYPO3 integration and plugins
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!
Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: Five Things

Post by Shopmister » 12 Feb 2021, 14:32

Check 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.
Looks like that yea
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.
- 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)
Wich i have to set:
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?
The 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.
oh kay, thats bad. but if the thing with the file will work, its okay :D
Last edited by Shopmister on 02 May 2021, 07:54, edited 1 time in total.

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

Re: Five Things

Post by aimeos » 15 Feb 2021, 10:20

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, Image give us a star

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: Five Things

Post by Shopmister » 11 Apr 2021, 11:00

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?

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

Re: Five Things

Post by aimeos » 20 Apr 2021, 10:17

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: Five Things

Post by Shopmister » 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 :)
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.

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

Re: Five Things

Post by aimeos » 24 Apr 2021, 09:09

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 :)
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 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 >
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.
Yes, it's a problem of the felogin plugin.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: Five Things

Post by Shopmister » 01 May 2021, 13:03

Okay, now i did, see pics:
downloadpage.png
downloadpage.png (6.77 KiB) Viewed 8330 times
jsnapi_templatesite_setup.png
jsnapi_templatesite_setup.png (13.45 KiB) Viewed 8330 times
jsnapipage_includes.png
jsnapipage_includes.png (13.64 KiB) Viewed 8330 times
jsonapisite.png
jsonapisite.png (6.46 KiB) Viewed 8330 times
MyAccount_Profilesite.png
MyAccount_Profilesite.png (24.23 KiB) Viewed 8330 times

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

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: Five Things

Post by Shopmister » 27 May 2021, 12:01

I did it! i did it :D
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 :)

Post Reply