Jump to content


Public support for Ask about product free. Ask about this module and get free public help. With our free plugin your customers can ask about your shop's products. The email will be delivered directly to shop admin. Our addon gives possibility to send questions about product and/or specific variant of product (combination).
Photo

Submit button doesn't work


  • Please log in to reply
4 replies to this topic

#1 zellenak

zellenak

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 01 October 2023 - 03:17 PM

Hello,

 

I tried the module "Ask about product" on PS 8.1.2 (PHP 8.0 or 8.2), but the form confirmation button does not work - nothing happens, no error message (see attachment).
 
 
Does anyone know where the problem might be?
 
Thank you.

Attached Files



#2 parallaxx

parallaxx

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 03 November 2024 - 10:35 AM

Same issue here. Module does not work correctly anymore. It's a pity.

 

PS 8.2.0, PHP8.1.3

 

No confirmation to the user that the message has been sent, so they click on submit button many times and same duplicate message arrives in your inbox. 



#3 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Posted 07 May 2025 - 10:00 AM

Same issue here. Module does not work correctly anymore. It's a pity.

 

PS 8.2.0, PHP8.1.3

 

No confirmation to the user that the message has been sent, so they click on submit button many times and same duplicate message arrives in your inbox. 

 

the issue is probably caused by some js errors on your side, module was tested in 8.2 environment and it does work.

 

please share url to your shop and i will take a look on it.



#4 peper

peper

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 07 May 2025 - 12:12 PM

the issue is probably caused by some js errors on your side, module was tested in 8.2 environment and it does work.

 

please share url to your shop and i will take a look on it.

 

I receive emails but the window doesn't close with the send button and the clients insist, so I receive many emails with the same question. 

 

PrestaShop: 8.2.1 and PHP: 8.2.28
 

In console say "Failed to load resource: the server responded with a status of 500 () ......../module/aapfree/question?
 

url shop
Zippo Grabado Personalizado Foto

 

Post: i receive your mails with 

Phone: 123123123

Email: test@test.com

test

 

Other modules mypresta.eu like : Voucher code for product comments + reminders, Product Comments - Reviews rich snippet, Dashboard comments / reviews moderation nad comments its working fine.

 

Another error occurs on backoffice module in: "You can find all submitted questions here: Questions" - when you go to the page say : page not found - The AdminAapfreeQuestion driver is missing or invalid.

 

Thanks for the support.

 

Ok, resetting the module worked for me.

Prestashop 8.2 and PHP 8.1



#5 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Posted 07 May 2025 - 01:20 PM

please activate debug mode under adv. parameters > performance.

 

https://imgur.com/k5iLjGH 

 

from what i see there is internal server error that requires debug process

i will check what is the behind internal server error and let you know about next steps



#6 Milosz

Milosz

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Posted 07 May 2025 - 01:27 PM

please activate debug mode under adv. parameters > performance.

 

https://imgur.com/k5iLjGH 

 

from what i see there is internal server error that requires debug process

i will check what is the behind internal server error and let you know about next steps



#7 peper

peper

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 07 May 2025 - 03:13 PM

 

please activate debug mode under adv. parameters > performance.

 

https://imgur.com/k5iLjGH 

 

from what i see there is internal server error that requires debug process

i will check what is the behind internal server error and let you know about next steps

 

 

ok, activated. Thanks a lot.

 

...Maybe a problem with fancy?

 

Ok, resetting the module worked for me.

Prestashop 8.2 and PHP 8.1



#8 shanabell7

shanabell7

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 12 May 2025 - 05:51 AM

I encountered the same issue while using the “Ask about product” module on PrestaShop 8.1.2 with PHP 8.0 and 8.2 specifically, the form confirmation button wasn’t working at all. Clicking the button did nothing, and there were no error messages or responses, either in the browser console or on the page.

Here’s what solved it for me:
  1. JavaScript Conflict:
    In many cases, this issue is due to JavaScript conflicts with either the theme or other modules. Use the browser's developer console (F12) to check for errors on form submission. You might see issues related to jQuery or undefined functions.

  2. Theme Compatibility:
    The module may rely on specific hooks or DOM elements that are not present in custom themes. Switching temporarily to the default Classic theme helped me confirm this. If it works on Classic, then the problem is theme-related.

  3. Check for Missing Dependencies:
    Ensure the contact-form.js or similar JavaScript files are properly loaded. Sometimes, script tags are omitted due to misconfigured templates or caching issues.

  4. Clear Cache:
    Always clear both PrestaShop cache and your browser cache after making changes. Also, disable any performance options like “Move JavaScript to the end” temporarily for debugging.

I reached out to FME Modulesa team of PrestaShop experts, and they were incredibly helpful. They quickly identified the compatibility issue with my theme and provided a tailored fix for the JavaScript behavior.



#9 Janet scott

Janet scott

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 19 May 2025 - 12:14 PM

Hello,

This issue with the "Ask about product" module on PrestaShop 8.1.2 (PHP 8.0 / 8.2) is likely due to JavaScript conflicts or missing dependencies.

Here are a few steps to help troubleshoot and potentially fix the issue:

  1. Check for JavaScript errors
    Open your browser’s Developer Tools (F12) → go to the Console tab → try clicking the confirmation button again and see if any errors appear. If there are JS errors, it might be due to incompatibility with PrestaShop 8.1.2 or missing libraries.

  2. Ensure jQuery is loaded properly
    Some older modules rely on jQuery being loaded in the front-end. Verify that jQuery is not blocked or loaded twice. You can check this in the Network tab of Dev Tools.

  3. Theme Compatibility
    If you're using a custom theme, the module’s form may not work correctly due to overridden templates or missing hooks. Try switching to the Classic theme temporarily to see if it works.

  4. Check AJAX or form handler
    If the form uses AJAX to submit, inspect the Network tab (in Developer Tools) to see if a request is being made when the button is clicked. If not, the JS event might not be bound correctly.

  5. PHP Error Logs
    Even though there’s no error message on the front-end, you might find useful clues in your server error logs (e.g., /var/log/apache2/error.log or /var/log/php8.0-fpm.log).

  6. Module Compatibility
    It's also possible the module hasn’t been updated to fully support PrestaShop 8.x. You may want to reach out to the module developer or check if there's an updated version.

Let us know what you find in the console or logs, and we can guide you further.

Best regards,
Janet scott.



#10 Janet scott

Janet scott

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 20 May 2025 - 09:51 AM

Hello,

Thank you for reaching out.

If the "Ask about product" form’s confirmation button isn’t working on PrestaShop 8.1.2 with PHP 8.0 or 8.2, there could be a few possible causes:

  1. JavaScript Conflict: There might be a conflict with your theme or another module that is preventing the form from submitting. Please check the browser console (F12 > Console tab) to see if any JavaScript errors appear when clicking the button.

  2. Missing or Incorrect Hook: Ensure the module is properly hooked into the product page. If the hook isn't triggered correctly, the form's functionality may break.

  3. Template Override Issue: If your theme overrides the product template, it might not be compatible with the module’s form. Try switching to the default theme temporarily to test.

  4. Cache and Compilation: Clear your PrestaShop cache and recompile templates (Advanced Parameters > Performance). Sometimes old cache prevents new scripts or styles from loading properly.

  5. Module Compatibility: Double-check if the module version you’re using is fully compatible with PrestaShop 8.1.x. Some older modules need updates to work with the latest PS versions and PHP 8+.

If you can provide a console error or more details from the attachment, we’d be happy to take a closer look.

Best regards,






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users