Checkbox not working in PrestaShop - CSS, JavaScript and z-index causes

A control can look correct yet fail to respond when a transparent element sits above it. Browser developer tools can identify the actual layer, inspect positioning and z-index, and help create a small fix for the active theme.

When this matters

  • the click targets a different element than the label or checkbox
  • the issue appears only in one theme or viewport
  • an old fix refers to a file absent from the current version

How to approach the implementation

  1. Reproduce the issue without extensions and at default zoom.
  2. Use the inspector to identify the element receiving the click.
  3. Temporarily disable the suspect CSS rule and retest.
  4. Add the smallest fix in the child theme or designated customisation area.
  5. Clear cache and test several viewport widths.

How to assess the result

Treat the implementation as successful when the user completes the full scenario without an error and staff can see the expected data in the back office. The absence of an error message alone is not enough.

Checks before going live

  • back up the settings or files that will change
  • test both a customer account and a guest session
  • check the cart, order flow and email messages
  • clear the relevant cache after the change

Apply the change in a test shop first, then run the complete scenario on desktop and mobile. Record the settings and the test result so that later updates can be compared with the same baseline.

2026 update: Diagnosing an inactive control

The issue is not limited to the Remember me field. A transparent layer may capture the click, a label may not point to its input, or a script may have stopped the form handler.

  1. use browser developer tools to inspect the element under the pointer
  2. compare positioning, z-index and pointer-events
  3. verify the input id and the label for attribute
  4. check the console and start with the first JavaScript error

Finding the source

Disable recent theme changes and login-related modules one at a time. Clear the theme and PrestaShop cache before each controlled test. Avoid masking the cause with an arbitrarily high z-index before identifying the layer that covers the form.

Next guide

JavaScript minification in PrestaShop: enabling CCC without breaking the shop

Comments (0)

No comments yet.
Product added to wishlist