jdanthinne / advancedfeaturesvalues

Prestashop module to enable multiple values selection for features, and features values ordering.
GNU General Public License v2.0
38 stars 21 forks source link

404 Not Found on ajaxCall. #6

Open mmortezzDev opened 8 years ago

mmortezzDev commented 8 years ago

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 commented 8 years ago

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.