- 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
Comments
Hi, Rémy.
Prestashop child theme as always works unpredictable. Try to copy all assets from parent theme into the child one
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:
The issue has been fixed. Please test to confirm the change
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.
Please give me a link where I could see the issue
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
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?
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.)
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?
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
But as I can see now everything is looking fine https://mega.nz/file/kA4gxJ5R#J0bhARAQCtuvh_pnn3jcznJZVCOP3Ndg3Dp247Ep-Wc
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 "+".
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
It works now. Thank you !
You are welcome!