Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found on ajaxCall. #6

Open
mmortezzDev opened this issue Aug 1, 2015 · 1 comment
Open

404 Not Found on ajaxCall. #6

mmortezzDev opened this issue Aug 1, 2015 · 1 comment

Comments

@mmortezzDev
Copy link

Hello jdanthinne,
I would like to thank you for this awesome module for prestashop. I find it very useful to be able select multiple values for each feature. But I have a problem with it. When I'm selecting any value from the available features in blocklayerednavigation tab on Category Page I see only loading.gif. In browser console I see error after ajaxCall:

"NetworkError: 404 Not Found - http://siteURL/modules/advancedfeaturesvalues/blocklayered-ajax.php?layered_id_feature_658=658_62&id_category_layered=25&orderby=position&orderway=asc&n=12true&_=1438432126270"

I've found the .js file where the ajaxCall cannot pass to the success state:
/modules/advancedfeaturesvalues/views/js/blocklayered.js

And if I change the line:
url: baseDir + 'modules/advancedfeaturesvalues/blocklayered-ajax.php',

to:
url: baseDir + 'modules/blocklayered/blocklayered-ajax.php',

It seems like everything is working fine. But I don't understand what's wrong with modules/advancedfeaturesvalues/blocklayered-ajax.php file. You overrides original blocklayered.php file there to achieve something.

Do you have any suggestions what might cause the problems? I can leave the url: path in ajaxCall to blocklayered directory module but you did override the files for some reason so I might miss some functionality this way.

I'm using 1.6.0.14 Prestashop.

@jdanthinne
Copy link
Owner

It is strange that you get a 404 error. Have you checked on the server directly if the file is there or not? If not, please re-transfer the missing file from the latest version of this module, this could solve your problem.
I had to override this file in order to get the correct results after an Ajax call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants