advancedfeaturesvalues icon indicating copy to clipboard operation
advancedfeaturesvalues copied to clipboard

404 Not Found on ajaxCall.

Open mmortezzDev opened this issue 9 years ago • 1 comments

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.

mmortezzDev avatar Aug 01 '15 12:08 mmortezzDev

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.

jdanthinne avatar Aug 10 '15 15:08 jdanthinne