• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 25.11.24, 18:49
  • Opened by: Rémy Meglioli

Ticket #25865 - JS problems with child theme

Hello,

Maybe it’s the theme update, but I’m having some displays problems only under the child theme (see images herewith).

There seems to be a problem loading javascript.

https://www.mercury-parts-france.fr/44-kit-d-entretien-moteur https://www.mercury-parts-france.fr/kit-d-entretien-moteur/8-kit-d-entretien-300-heures-150-hp-efi-fourstroke-n-serie-1905505-et-plus.html

Thanks in advance for your help.

Prestashop 8.2
PHP 8.1.30
Alysum 9.0
Child Theme 1.0.0

Attachments:

bug.jpg (106 KiB)

Comments

Fred 25 Nov 2024, 22:15

Hi, Rémy.
Prestashop child theme as always works unpredictable. Try to copy all assets from parent theme into the child one

Rémy Meglioli 25 Nov 2024, 23:01

Hi Fred,

Thanks, that solves my problem on the product sheet.

But I still have a problem in the category pages (see attachment) : https://www.mercury-parts-france.fr/44-kit-d-entretien-moteur

Attachments:

Fred 26 Nov 2024, 22:47

The issue has been fixed. Please test to confirm the change

Rémy Meglioli 31 Mar 2025, 16:41

Hello, do you remember how you fixed the issue? I'm facing the same problem on another website, but the support has expired. If you could share the solution, I might be able to resolve it myself.

Fred 31 Mar 2025, 23:16

Please give me a link where I could see the issue

Rémy Meglioli 01 Apr 2025, 14:48

The problems are :
- with the "View Switcher": it remains inactive when we click to change the number of products per row.
- with the sub-categories, in the left column, they don't open when we click on "+".
Link: https://www2.leynatbijoux.com/48-bracelet

Fred 01 Apr 2025, 21:14

It appears that there are missed styles and scripts for that page.
Can I have access to back office and FTP? Or it's the same as you have for another store?

Rémy Meglioli 01 Apr 2025, 23:18

You'll find access to the BO and FTP on the "LeyNatBijoux" account profile page.
(I can't share this information here, as this ticket is not private.)

Fred 02 Apr 2025, 22:12

I noticed that the Theme Settings module isn’t installed or enabled https://mega.nz/file/UFYRDYoJ#xms4pCSkS7cc5_htHGgPCbu8koSMvPr8rDuoojBZv_k. Is there any ongoing configuration?

Rémy Meglioli 09 Apr 2025, 12:11

Yes, I tried switching from the Alysum child theme to the Alysum theme to see if the issue was related to the child theme. However, I was unable to do so and encountered the following error: "The installation action is impossible for the pklib module. The module is invalid and cannot be loaded." I just realized this deactivated all the modules of your theme.

I have since reactivated them.

Please check again: https://www2.leynatbijoux.com/48-bracelet

Fred 09 Apr 2025, 21:21

But as I can see now everything is looking fine https://mega.nz/file/kA4gxJ5R#J0bhARAQCtuvh_pnn3jcznJZVCOP3Ndg3Dp247Ep-Wc

Rémy Meglioli 10 Apr 2025, 13:49

No, the "View Switcher" remains inactive when we click to change the number of products per row, and the sub-categories (left column) don't open when we click on "+".

Fred 11 Apr 2025, 22:04

I have compared parent and child theme's config files and see the difference. There are missing scripts/styles in the child config, please try to copy it from the parent theme
After config update you have to remove cached config file /config/themes/alysumchild/shop1.json. It will be generated automatically

Rémy Meglioli 11 Apr 2025, 22:43

It works now. Thank you !

Fred 11 Apr 2025, 23:02

You are welcome!