• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 15.05.26, 19:17
  • Opened by: Cesar Hermandez

Ticket #26510 - Feature request / Customization: Disable AMP module on Product Pages only

Hi support team,

I am using the Alysum theme on PrestaShop, and I want to optimize my store’s performance using the built-in AMP module.

However, I use Creative Elements to design my product pages, and the AMP version breaks the layout and visual attributes (swatches/buttons) on those specific pages.

My goal is to keep AMP enabled only for the Homepage (Index) and Category pages, but completely disable it for Product pages so they can load the standard desktop/mobile version.

Since the module’s backend settings only allow forcing AMP globally for smartphones/tablets, could you please guide me on how to selectively disable AMP for product pages? Is there a specific override or code modification I can apply to the module to achieve this?

Thank you in advance for your help.

Best regards,

Comments

Fred 15 May 2026, 23:22

Hi, Cesar.
Try following trick
- open the file /modules/pkamp/src/Hooks/ModuleRoutes.php
- add following code to the line 49

return [
    "module-{$this->module->name}-home" => [
        'controller' => 'home',
        'rule' => $this->slug,
        'keywords' => [],
        'params' => $this->routeParams,
    ],
];

like this - https://mega.nz/file/JRBWmBrB#mBzLzBOhZe-SBjV99cguwvFDm97wY_34_f6VbtOYc9Y