• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 30.10.22, 02:47
  • Opened by: Thomas Ullrich
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23894 - My Account Menu is incomplete

Hi there,

I wonder how I can work on the menu of the area ‘my account’ (https://musterheld.net/de/mein-Konto). The dropdown menu is incomplete and the page of ‘my account’ does not look good. I added some features, e.g. an affiliate reward program and this is not listed in the dropdown menu (if I click on the man top right corner) in desktop version and not listed in the menu of AMP version.

In addition, die added modules are shown on the ‘My account’ page but they do not have icons. This does not look good. (See attachment green arrows). How can i add icons for these added modules and how can i add these modules to the menu in desktop and AMP version?

Thank you for your support

Thomas

Attachments:

Comments

Fred 30 Oct 2022, 21:52

The reason of missed icons is that our theme doesn’t use icon font from the default prestashop theme, because it’s too heavy.
You can include that icon font to make icons work properly.
You can find font files in the folder ROOT/themes/_libraries

Thomas Ullrich 31 Oct 2022, 11:21

I (FTP) copied those font files from ROOT/themes/_libraries into folder /themes/alysum/assets/fonts, but this did not help.
Did I get you wrong?

Thomas Ullrich 31 Oct 2022, 11:30

And I want to point out again - and this is even more importatant - that the desktop dropdown menu of ‘my account’ is not updated at all and does not show to added features. See attached. As this menu is reflected in AMP version, the added features are not available in the AMP version at all.

How can I change this?

Attachments:

Fred 31 Oct 2022, 22:41

sorry, I was wrong.
That’s Material icons, but not Font Awesome - https://developers.google.com/fonts/docs/material_icons

I have added it to the file /themes/alysum/templates/_partials/stylesheets.tpl, now it works

Thomas Ullrich 31 Oct 2022, 23:14

And I want to point out again - and this is even more importatant - that the desktop dropdown menu of ‘my account’ is not updated at all and does not show to added features. See attached. As this menu is reflected in AMP version, the added features are not available in the AMP version at all.

How can I change this?

Attachments:

Thomas Ullrich 31 Oct 2022, 23:15

Wonderful, looks great with these material icons.

Thomas Ullrich 01 Nov 2022, 15:27

Thank you for this.

The second issue was: the desktop dropdown menu of ‘my account’ is not updated at all. The additional modules like wishlist, back-in-stock notfications, affiliate program is not listed in the menu. See Screens and attached.

Shall I open a separate ticket for this?

I googled this problem and I saw in a thread (https://www.sunnytoo.com/forums/topic/my-account-pages-menu-button) that I have to edit the file my-account.tpl for that, but it seems to be quite complicated and it will be overwritten when updated. Is there an elegant solution for this? I am especially concerened about the AMp version, see attached screenshot as many of my customers use smartphones to handle their matters with our webstore. The affiliate program, wishlist, a potential loyalty program, the back in stock notifications… it is all not listed in the ‘my account’ AMP menu.

Thank you for your support.

Attachments:

Fred 01 Nov 2022, 20:41

I’m not sure that’s some kind of bug.
That’s a question of Prestashop hook, I suppose
Try to add this hook

{hook h='displayCustomerAccount'}

to the file

/modules/pkelements/views/templates/pkmyaccount.tpl

(I think you are using “My Account” widget)
And for AMP this file

/themes/alysum/templates/mobile/customer/myaccount-links.tpl
Thomas Ullrich 01 Nov 2022, 22:50

1. I added the hook to pkmyaccount.tpl in two positions within the tpl file without any result. The dropdown menu remains unchanged.
2. I added the hook to myaccount-links.tpl and there was a change in AMP version. Wishlist, cards and back in stock notifications are shown, see attachment 1. The affiliate program, however, is not shown. And the wishlist, cards and back in stock notifications are not in line and do not work. If I open those links and go back, the webstore does not work anymore and I have to erase cookies to ‘reset’ the session.

I checked whether the hook ‘displayCustomerAccount’ is set e.g. in the module All-in-one rewards. And it is set. See attachment 2. So for me - it should be shown in the dropdown menu. Seems there is a bug, but is it in Prestashop or in the theme Alysum?

Fred 02 Nov 2022, 19:45

All that modules has it’s own individual way to add that link, and that’s why we are not able to make all looks the same.
that is not something we could fix in one place.
Please make sure your modules are hooked in that hook (see Design → Positions)

Thomas Ullrich 02 Nov 2022, 23:48

Yes, ‘All-in-one Rewards’ it is listed there, see attached. Nevertheless it is not listed in the dropdown of ‘MyAccount’. What about the AMP Version? Same hook?

Attachments:

Fred 03 Nov 2022, 17:21

I have reviewed modules code and didn’t find there displayCustomerAccount hook. I think would be better to apply to module support, they know their module better