perusi Posted April 18, 2013 Share Posted April 18, 2013 Prestashop version: 1.5.3.1 When i`m trying to add a comment for my product i get this error: Title is incorrect Comment is incorrect Customer name is incorrect Product not found If i`m logged i`m getting the same error message except "Customer name is incorrect" I tried disabling friendly url, but i had no luck, same error. any idea? Link to comment Share on other sites More sharing options...
ukbill69 Posted April 28, 2013 Share Posted April 28, 2013 Hi I have the same issue with version 1.5.4.0 Anyone got a solution to this problem? Link to comment Share on other sites More sharing options...
monc Posted June 6, 2013 Share Posted June 6, 2013 I having the same problem. any one?! Link to comment Share on other sites More sharing options...
skinnybloke Posted August 12, 2013 Share Posted August 12, 2013 Same problem here!!!!!!! Link to comment Share on other sites More sharing options...
Prestashopy Posted August 15, 2013 Share Posted August 15, 2013 I also found the issue in PS 1.5.4.1 but only in Chrome and Firefox, in IE works fine. The problem is when serializing (#fancybox-content form) fields of the comments, the solution that i found is to replace line 63 in the productcomments.js: line 63 productscomments.js: / /data: $ ('# fancybox-content form'). serialize (), by this: data: $ ('# fancybox-content input, # fancybox-content textarea, # fancybox-content select'). serialize (), Now, it works in Chrome and Firefox Link to comment Share on other sites More sharing options...
skinnybloke Posted August 16, 2013 Share Posted August 16, 2013 Hi - thanks for the reply. I have tried this and it makes no difference.on my site. Link to comment Share on other sites More sharing options...
vekia Posted August 16, 2013 Share Posted August 16, 2013 is there any chance to check your comments feature? if so, and if your website is online - please share the url Link to comment Share on other sites More sharing options...
skinnybloke Posted August 16, 2013 Share Posted August 16, 2013 Not at the moment - it is still under development and behind a maintenance screen -unless you can provide me with an ip address Link to comment Share on other sites More sharing options...
skinnybloke Posted August 22, 2013 Share Posted August 22, 2013 Hey - perusi and ukbill69 - I have no problems with product comments on the following: 1. Out-of-the-box version of Prestashop 2. With my Theme applied 3. Using different versions of PHP 4. All configuration parameters the same Going to try adding in the plug-ins I use next on my test site and see if I can break it. Link to comment Share on other sites More sharing options...
skinnybloke Posted August 22, 2013 Share Posted August 22, 2013 Ok - I've added in all of my plugins and still cant break it. I've raised a ticket here: http://forge.prestashop.com/browse/PNM-1660 Link to comment Share on other sites More sharing options...
kerami82 Posted August 31, 2013 Share Posted August 31, 2013 I have the same problem. Is there any resolve? Link to comment Share on other sites More sharing options...
rfox2013 Posted August 31, 2013 Share Posted August 31, 2013 Same issue. Upgraded from 1.5.4.1 to 1.5.5 Same errors even after applying changes to productcomments.js Write a Review and get ajax error: Title is incorrect Comment is incorrect Product not found Screenshot attached, Thanks! Link to comment Share on other sites More sharing options...
kfc_zjian Posted September 1, 2013 Share Posted September 1, 2013 (edited) i got this issue too. upgraded from 1.5.4.1 to 1.5.5 by 1 click module without any error and warning Edited September 1, 2013 by kfc_zjian (see edit history) Link to comment Share on other sites More sharing options...
rfox2013 Posted September 1, 2013 Share Posted September 1, 2013 Issue could be in empty variables being passed, as the same version of the productcomments module works in 1.5.4.1 but yields the error in 1.5.5. Not real sure where to look to see the field variable values before they are being submited. Everything else in the upgrade went fine, Maybe I'll try to print out variables through productcomments.js to see if they have any value at all. I can't find where the error text is being output from yet. Link to comment Share on other sites More sharing options...
rfox2013 Posted September 1, 2013 Share Posted September 1, 2013 update: errors are coming from modules/productcomments/controllers/front/default.php // Validation if (!Validate::isInt(Tools::getValue('id_product'))) $errors[] = $module_instance->l('ID product is incorrect'); if (!Tools::getValue('title') || !Validate::isGenericName(Tools::getValue('title'))) $errors[] = $module_instance->l('Title is incorrect'); if (!Tools::getValue('content') || !Validate::isMessage(Tools::getValue('content'))) $errors[] = $module_instance->l('Comment is incorrect'); if (!$id_customer && (!Tools::isSubmit('customer_name') || !Tools::getValue('customer_name') || !Validate::isGenericName(Tools::getValue('customer_name')))) $errors[] = $module_instance->l('Customer name is incorrect'); if (!$this->context->customer->id && !Configuration::get('PRODUCT_COMMENTS_ALLOW_GUESTS')) $errors[] = $module_instance->l('You must be logged in order to send a comment'); if (!count(Tools::getValue('criterion'))) $errors[] = $module_instance->l('You must give a rating'); $product = new Product(Tools::getValue('id_product')); if (!$product->id) $errors[] = $module_instance->l('Product not found'); Link to comment Share on other sites More sharing options...
rfox2013 Posted September 1, 2013 Share Posted September 1, 2013 Found the problem and fixed. In 1.5.5, productcomments/js/productcomments.js has the wrong div name for the ajax retrival of element values in the form. The data line needs to be the following: data: $('#new_comment_form form').serialize(), in 1.5.4.1 the div block is #fancybox-content, but that div doesn't exist in 1.5.5 3 Link to comment Share on other sites More sharing options...
kfc_zjian Posted September 4, 2013 Share Posted September 4, 2013 tried data: $('#new_comment_form form').serialize(), on my 1.5.5 still not work Link to comment Share on other sites More sharing options...
rfox2013 Posted September 4, 2013 Share Posted September 4, 2013 Just make sure the div names of the form in the productcomments.tpl file: <!-- Fancybox --> <div id="new_comment_form"> matches the data call in productcomments.js data: $('#new_comment_form form').serialize(), 1 Link to comment Share on other sites More sharing options...
kfc_zjian Posted September 4, 2013 Share Posted September 4, 2013 i have made them match each other, but still not good. Link to comment Share on other sites More sharing options...
rfox2013 Posted September 4, 2013 Share Posted September 4, 2013 Without any more details all I can say is to check your .tpl smarty templates are not serving a cached version. (you can always put something out of place in the .tpl to see if it renders or if the cached version is being served. Also, check to see if any theme .tpl may be overriding the default productcomments module. Link to comment Share on other sites More sharing options...
kfc_zjian Posted September 4, 2013 Share Posted September 4, 2013 my comment module now works with ie only. not work with firefox and chrome Link to comment Share on other sites More sharing options...
KSteele Posted September 5, 2013 Share Posted September 5, 2013 RFOX2013 your solution worked perfectly, thanks for posting!!! My reviews were untested until after the update... but I had PS 1.5.4.1 and upgraded to PS 1.5.5.0 before finding that the Reviews module did not work. Followed RFOX2013's solution and no problem.... do clear the cache when finished though. This is the code from LINE 58 in modules/productcomments/js/productcomments.js // Form element url_options = parseInt(productcomments_url_rewrite) ? '?' : '&'; $.ajax({ url: productcomments_controller_url + url_options + 'action=add_comment&secure_key=' + secure_key + '&rand=' + new Date().getTime(), data: $('#new_comment_form form').serialize(), type: 'POST', headers: { "cache-control": "no-cache" }, dataType: "json", success: function(data){ if (data.result) { $.fancybox.close(); document.location.href = document.location.href; } else { $('#new_comment_form_error ul').html(''); $.each(data.errors, function(index, value) { $('#new_comment_form_error ul').append('<li>'+value+'</li>'); }); $('#new_comment_form_error').slideDown('slow'); } } }); return false; });}); 2 Link to comment Share on other sites More sharing options...
jibonbokul Posted September 7, 2013 Share Posted September 7, 2013 Thanks @rfox2013 Just make sure the div names of the form in the productcomments.tpl file: <!-- Fancybox --> <div id="new_comment_form"> matches the data call in productcomments.js data: $('#new_comment_form form').ser It's wrokign fine also i tested my won shop Link to comment Share on other sites More sharing options...
indesign47 Posted September 8, 2013 Share Posted September 8, 2013 Hello all, Try the fix here Link to comment Share on other sites More sharing options...
weddingdayreviews Posted September 9, 2013 Share Posted September 9, 2013 This says "Module was broken and works now". so i tried uninstalling the module and reinstalling, just not working for me tried all those methods mentioned above including matching the .js file and .tpl file and always still comes back with same error :- Title is incorrect Comment is incorrect Customer name is incorrect Product not found any help is much appreciated :-) Link to comment Share on other sites More sharing options...
jibonbokul Posted September 9, 2013 Share Posted September 9, 2013 weddingdayreviews I have solved this problem just need to changed productcomment.js file likedata: $('#fancybox-content form').serialize(), find out this line and replace it put the below linedata: $('#new_comment_form form').serialize(), Also reset module after working. i have tested. Thanks 1 Link to comment Share on other sites More sharing options...
weddingdayreviews Posted September 9, 2013 Share Posted September 9, 2013 i have done this on the produccomment.js file and by reset module do you mean uninstall and re-install ? i have done this to no avail ? Link to comment Share on other sites More sharing options...
jibonbokul Posted September 9, 2013 Share Posted September 9, 2013 Which version you are using. Please let me know also give your email id. i will send working module for latest version Link to comment Share on other sites More sharing options...
weddingdayreviews Posted September 9, 2013 Share Posted September 9, 2013 thanks i reset the module and did eveything above but still not working i am using 1.5.5.0 email address [email protected] Link to comment Share on other sites More sharing options...
jibonbokul Posted September 9, 2013 Share Posted September 9, 2013 Please check your email. i has send message with module. Link to comment Share on other sites More sharing options...
skinnybloke Posted September 10, 2013 Share Posted September 10, 2013 Applying these changes worked for me: https://github.com/PrestaShop/PrestaShop/commit/9377775eca428c7022abd4bfa301ef83c8b108b8 Link to comment Share on other sites More sharing options...
jibonbokul Posted September 10, 2013 Share Posted September 10, 2013 Hello all i have one probolem on blocklayer module. I have select subcategory from beck-offcie but font-office not showing subcategory on blocklayer module. Please any ons help me for the problem.i am using the latest version this is only latest version problem old version working fine. Thanks . Link to comment Share on other sites More sharing options...
pppggg Posted September 11, 2013 Share Posted September 11, 2013 Found the problem and fixed. In 1.5.5, productcomments/js/productcomments.js has the wrong div name for the ajax retrival of element values in the form. The data line needs to be the following: data: $('#new_comment_form form').serialize(), in 1.5.4.1 the div block is #fancybox-content, but that div doesn't exist in 1.5.5 That worked for me ! Thanks! i have prestashop 1.5.5 Link to comment Share on other sites More sharing options...
Andrej Stas Posted September 21, 2013 Share Posted September 21, 2013 (edited) Prestashop 1.5.5.0 modules/productcomments/js/productcommets.js line 63: data: $('#new_comment_form form').serialize(), Works for me. EDIT: ah... now I see, it's already in the thread, sorry for duplicity Edited September 21, 2013 by Andrej Stas (see edit history) 2 Link to comment Share on other sites More sharing options...
nzgoonline Posted September 24, 2013 Share Posted September 24, 2013 (edited) hi i am using Prestashop 1.5.5.0, Product Comments 2.3 I am getting these same errors Title is incorrect Comment is incorrect Customer name is incorrect Product not found I have tried - data: $('#new_comment_form form').serialize(), It does not work.. Then tried https://github.com/PrestaShop/PrestaShop/commit/9377775eca428c7022abd4bfa301ef83c8b108b8 Still does not work. Getting the same errors. Please any suggestions. Thanks. Edited September 24, 2013 by nzgoonline (see edit history) Link to comment Share on other sites More sharing options...
nzgoonline Posted September 26, 2013 Share Posted September 26, 2013 please provide me a way out.. am stuck Link to comment Share on other sites More sharing options...
fcoitino Posted September 27, 2013 Share Posted September 27, 2013 Just to change this line should work??? ---> data: $('#new_comment_form form').serialize(),Does not work for me.Thank you! Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 27, 2013 Share Posted September 27, 2013 Use this file for product comments. Replace the module with this after you confirm a working backup. This is for PrestaShop v1.5 Please make sure to have a backup before changing files. Keep me posted. Thank you! productcomments.zip Link to comment Share on other sites More sharing options...
thedom Posted September 27, 2013 Share Posted September 27, 2013 (edited) Benjamin, I uploaded all your files on my prestashop 1.5.5 website Website totally out of order and not working at all. Edited September 27, 2013 by thedom (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 hello thedom, what's going on? you've got blank page? internal server error? please turn on error reporting: open config/defines.inc.php find this line define('_PS_MODE_DEV_', false); change to look like this: define('_PS_MODE_DEV_', true); then you will see what's going on (you will see error messages) Link to comment Share on other sites More sharing options...
thedom Posted September 28, 2013 Share Posted September 28, 2013 (edited) Found the problem and fixed. In 1.5.5, productcomments/js/productcomments.js has the wrong div name for the ajax retrival of element values in the form. The data line needs to be the following: data: $('#new_comment_form form').serialize(), in 1.5.4.1 the div block is #fancybox-content, but that div doesn't exist in 1.5.5 Worked for me too with v1.5.5 ! Thanks a lot. Line 63 : replace data: $('#fancybox-content form').serialize(), with data: $('#new_comment_form form').serialize(), Edited September 28, 2013 by thedom (see edit history) 1 Link to comment Share on other sites More sharing options...
thedom Posted September 29, 2013 Share Posted September 29, 2013 hello thedom, what's going on? you've got blank page? internal server error? please turn on error reporting: open config/defines.inc.php find this line define('_PS_MODE_DEV_', false); change to look like this: define('_PS_MODE_DEV_', true); then you will see what's going on (you will see error messages) Actually, I had a blank page but as I immediately uploaded the backup, I can't report the errors I had, sorry. Link to comment Share on other sites More sharing options...
sanax Posted October 9, 2013 Share Posted October 9, 2013 I also found the issue in PS 1.5.4.1 but only in Chrome and Firefox, in IE works fine. The problem is when serializing (#fancybox-content form) fields of the comments, the solution that i found is to replace line 63 in the productcomments.js: line 63 productscomments.js: / /data: $ ('# fancybox-content form'). serialize (),by this: data: $ ('# fancybox-content input, # fancybox-content textarea, # fancybox-content select'). serialize (),Now, it works in Chrome and Firefox Thank you! Finally a fix for this problem in 1.5.5.0 Link to comment Share on other sites More sharing options...
Arnaud Drieux Posted October 22, 2013 Share Posted October 22, 2013 Hello. After some hours on this problem, ive fixed it on PS 1.5.6.my problem : productcomments_url_rewrite is not defined 1 - On productcomments.tpl var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}'; You do not have a simple quote to declare the variable AND declare the text. So after simple modifications : var productcomment_added_moderation = "{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}"; Fixed1.2- var productcomments_url_rewrite = {$productcomments_url_rewriting_activated}; I've just removing simple quote. Why ? Because in this script there is no {literal} so simple quote is not necessary. 2- Thanks to rfox2013 for solution in productcomment.tplnow module work fine.-----------------------------------------------------------------------------------------------------------------------------------Salut à tous, après quelques heures sur ce problème, j'ai débuggé ce module sur PS 1.5.6.Mon problème était : productcomments_url_rewrite is not defined 1 - Dans productcomments.tpl var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}'; On peut pas avoir des simple quote pour déclarer la variable ET pour déclarer le texte. Du coup j'ai juste mis des double quotes. var productcomment_added_moderation = "{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}"; Premier blem Résolu1.2- bug de la variable var productcomments_url_rewrite = {$productcomments_url_rewriting_activated}; J'ai juste viré les simple quote. Pourquoi ? Parce que vu qu'il n'y a pas de balise {literal} dans ce script, les quote ne sont pas nécéssaires. 2- Merci à rfox2013 pour la solution dans le productcomment.tplMaintenant le module fonctionne bien ! 2 Link to comment Share on other sites More sharing options...
ElangLiar Posted October 23, 2013 Share Posted October 23, 2013 RFOX2013 your solution worked perfectly, thanks for posting!!! My reviews were untested until after the update... but I had PS 1.5.4.1 and upgraded to PS 1.5.5.0 before finding that the Reviews module did not work. Followed RFOX2013's solution and no problem.... do clear the cache when finished though. This is the code from LINE 58 in modules/productcomments/js/productcomments.js // Form element url_options = parseInt(productcomments_url_rewrite) ? '?' : '&'; $.ajax({ url: productcomments_controller_url + url_options + 'action=add_comment&secure_key=' + secure_key + '&rand=' + new Date().getTime(), data: $('#new_comment_form form').serialize(), type: 'POST', headers: { "cache-control": "no-cache" }, dataType: "json", success: function(data){ if (data.result) { $.fancybox.close(); document.location.href = document.location.href; } else { $('#new_comment_form_error ul').html(''); $.each(data.errors, function(index, value) { $('#new_comment_form_error ul').append('<li>'+value+'</li>'); }); $('#new_comment_form_error').slideDown('slow'); } } }); return false; }); }); Thank you very much! Its work for http://www.satustore.com 2 Link to comment Share on other sites More sharing options...
rysiulg Posted November 12, 2013 Share Posted November 12, 2013 Thanks it worked for me data: $('#new_comment_form form').serialize(), http://www.marm.pl 1 Link to comment Share on other sites More sharing options...
ptemmerman Posted November 22, 2013 Share Posted November 22, 2013 Hi. I got version 1.5.6.0 and have the same problem. I tried everything in this thread, but unfortunately it isn't working. Any help would be appreciated. Link to comment Share on other sites More sharing options...
infoseek Posted November 23, 2013 Share Posted November 23, 2013 Found the problem and fixed. In 1.5.5, productcomments/js/productcomments.js has the wrong div name for the ajax retrival of element values in the form. The data line needs to be the following: data: $('#new_comment_form form').serialize(), in 1.5.4.1 the div block is #fancybox-content, but that div doesn't exist in 1.5.5 this helps!thanks Link to comment Share on other sites More sharing options...
skinnybloke Posted December 17, 2013 Share Posted December 17, 2013 Hi - I've also still got this problem using v1.5.4 in a site under construction I have modified the code re: data: $('#new_comment_form form').serialize(), What I have noticed is that my productcomments.tpl shows this code: <div id="new_comment_form"> <form action="#"> <h2 class="title">{l s='Write your review' mod='productcomments'}</h2> yet when I look at the code displayed by the browser the <form> tag is missing: <div id="new_comment_form" style="display: block;"> <h2 class="title">Write your review</h2> I assume the missing <form> is causing my problem? Any ideas? I'm definitely using the correct .tpl and.js files as they display debug code I have added Link to comment Share on other sites More sharing options...
skinnybloke Posted January 2, 2014 Share Posted January 2, 2014 Hi - I've also still got this problem using v1.5.4 in a site under construction I have modified the code re: data: $('#new_comment_form form').serialize(), What I have noticed is that my productcomments.tpl shows this code: <div id="new_comment_form"> <form action="#"> <h2 class="title">{l s='Write your review' mod='productcomments'}</h2> yet when I look at the code displayed by the browser the <form> tag is missing: <div id="new_comment_form" style="display: block;"> <h2 class="title">Write your review</h2> I assume the missing <form> is causing my problem? Any ideas? I'm definitely using the correct .tpl and.js files as they display debug code I have added I have corrected this. The Form tag was being removed by the browser as this form was nested within another form. Link to comment Share on other sites More sharing options...
omine Posted January 26, 2014 Share Posted January 26, 2014 humm... this kind of problem is caused generaly by theme mistakes.. in my case, i found: file: themes\THEM_NAME\modules\productcomments\productcomments.tpl search <form> tag.. original was <form action="#"> I changed to <form id="id_new_comment_form" action="#" onsubmit="return false;"> I know the "id_new_comment_form" because the file modules\productcomments\js\productcomments.js is pointing to data: $('#id_new_comment_form').serialize(), Now, all working fine.. PS 1.5.6.0 1 Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 in addition, it sometimes doesn't work with new fancybox, it has got different names of div with fancy window Link to comment Share on other sites More sharing options...
jesus225 Posted January 27, 2014 Share Posted January 27, 2014 Hello, I think I'm going crazy with this problem. I have installed prestashop 1.5.6.1 and I have always had this issue, however it only happens when the customized template is selected. Products comments works out of the box if I switch to default theme. I'm using a templatemosnter theme compatible with 1.5.X versions but I believe it was developed from 1.5.5.0 engine. This is what I've tried to fix it: https://github.com/PrestaShop/PrestaShop/commit/9377775eca428c7022abd4bfa301ef83c8b108b8 I applied the changes in productcomments.tpl (theme folder) since the other files were already fixed. <!-- Fancybox --> <div style="display: none;"> <div id="new_comment_form"> <form action="#"> Changes I made: <!-- Fancybox --> <div style="display: none;"> <div id="new_comment_form"> <form id="id_new_comment_form" action="#"> I attach a folder with my .tpl files and productcomments.js as well. I hope you can help me out to get the module working. Any help would be really appreciated. Thanks in advance. Regards. original.zip Link to comment Share on other sites More sharing options...
omine Posted January 27, 2014 Share Posted January 27, 2014 hey, jesus.. <form id="id_new_comment_form" action="#" onsubmit="return false;"> Link to comment Share on other sites More sharing options...
jesus225 Posted January 27, 2014 Share Posted January 27, 2014 hey, jesus.. <form id="id_new_comment_form" action="#" onsubmit="return false;"> Thank you for your reply! I've changed that line but unfortunately I'm still getting the same errors. http://s494577113.mialojamiento.es/tienda1/es/home/7-dolore-ipsum.html You can check it in this test site (I've upgraded to 1.5.6.2 but it didn't make any difference). I've enabled guest comments if anyone want to reproduce the issue. Regards. Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 http://s494577113.mialojamiento.es/tienda1/themes/theme818/js/modules/productcomments/js/productcomments.js data: $('#fancybox-content form').serialize(), change to data: $('#id_new_comment_form').serialize(), 2 Link to comment Share on other sites More sharing options...
jesus225 Posted January 28, 2014 Share Posted January 28, 2014 http://s494577113.mialojamiento.es/tienda1/themes/theme818/js/modules/productcomments/js/productcomments.js data: $('#fancybox-content form').serialize(), change to data: $('#id_new_comment_form').serialize(), Thank you very much Vekia! I thought it must have something to do with the template but I didn't realize productcomments.js was being overiden! Regards! Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 so i suppose that now everything works fine? Link to comment Share on other sites More sharing options...
jesus225 Posted January 28, 2014 Share Posted January 28, 2014 so i suppose that now everything works fine? Yes it does! It's working perfectly! Link to comment Share on other sites More sharing options...
mark-b Posted January 30, 2014 Share Posted January 30, 2014 I just update the native product comment module, when an customer want to write an review I get the error: The requested content cannot be loaded.Please try again later. Please advise Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 you mean that customer can't open popup with comment form, or after pressing "submit" button? Link to comment Share on other sites More sharing options...
mark-b Posted January 30, 2014 Share Posted January 30, 2014 Hi, they get this error when they press the "write your review" button Link to comment Share on other sites More sharing options...
mark-b Posted January 30, 2014 Share Posted January 30, 2014 so they can't open popup with comment form... Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 any chance to get url to your website? if you already posted it somewhere - sorry i don't remember Link to comment Share on other sites More sharing options...
mark-b Posted January 31, 2014 Share Posted January 31, 2014 hi vekia, I put my backup module back, now it is working again.. Link to comment Share on other sites More sharing options...
vekia Posted January 31, 2014 Share Posted January 31, 2014 so you wanted to say that you've got problems with new version of the module? Link to comment Share on other sites More sharing options...
Dolke Posted January 31, 2014 Share Posted January 31, 2014 (edited) Where can I download older version of the Product Comments module because 2.9 version is not working on the 1.5.4.1 Prestashop?Update:I found the link on second page for version 2.3 but now even when I want to re install that version Im getting error:http://prntscr.com/2o7i6b Edited January 31, 2014 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Dolke Posted January 31, 2014 Share Posted January 31, 2014 This is the exception when I try to reinstall the module:http://prntscr.com/2o7jh1 Link to comment Share on other sites More sharing options...
Dolke Posted January 31, 2014 Share Posted January 31, 2014 So now PS charges this module 30 euros.Is that the reason why there are so many people who have "troubles" with they comment module? Link to comment Share on other sites More sharing options...
samuelprabhu Posted February 1, 2014 Share Posted February 1, 2014 I am using prestashop version 1.5.4.1 After installing product comments module it results in below when the products are clicked and directed product description page. Fatal error: Call to undefined method ProductController::getProduct() in /home/content/64/11749364/html/khazanchisilver/modules/productcomments/productcomments.php on line 746 Link to comment Share on other sites More sharing options...
Dolke Posted February 1, 2014 Share Posted February 1, 2014 (edited) Vekia said that he will post the solution to problems with product comment module and 1.5.4.1 Prestashop version soon.Please check this topic also:http://www.prestashop.com/forums/topic/304014-cant-install-product-comments-module/ Edited February 1, 2014 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
omine Posted February 4, 2014 Share Posted February 4, 2014 (edited) in other customer website, using 1.5.6.2, the bug cannot be fixed with solutions presented here. The exact same problem: Title is incorrect Comment is incorrect Customer name is incorrect Product not found I tried the same solutions published here, but no solving.. - Have no overriding files - The cache and compile cache all clean. - Browser refreshed.. - Tested in different browsers.. no way... I'll try some more tests .. [LOL] solved.. the bug was me haha i made confusion with development and production website URLs.. sorry. Edited February 4, 2014 by omine (see edit history) Link to comment Share on other sites More sharing options...
mark-b Posted February 4, 2014 Share Posted February 4, 2014 hi Veka, I get problems with the new version. Link to comment Share on other sites More sharing options...
äpple Posted February 5, 2014 Share Posted February 5, 2014 HiI use prestashop 1.5.6.1I hope someone can help me because I've been looking all over the forum for a solution.I have tried everything here but it's not working for me. Now I've updated to the Product comment v 2.9.1 and the problem is as follows.when I write a comment and press send then nothing happens, it seems like (send button) does not work.I appreciate all the answersplease help me Link to comment Share on other sites More sharing options...
vekia Posted February 5, 2014 Share Posted February 5, 2014 Hi I use prestashop 1.5.6.1 I hope someone can help me because I've been looking all over the forum for a solution. I have tried everything here but it's not working for me. Now I've updated to the Product comment v 2.9.1 and the problem is as follows. when I write a comment and press send then nothing happens, it seems like (send button) does not work. I appreciate all the answers please help me any chance to see this problem live? if so, please share url Link to comment Share on other sites More sharing options...
äpple Posted February 5, 2014 Share Posted February 5, 2014 hi vekiamy url urolur.se Link to comment Share on other sites More sharing options...
äpple Posted February 5, 2014 Share Posted February 5, 2014 any chance to see this problem live? if so, please share url hi vekia my url urolur.se Link to comment Share on other sites More sharing options...
äpple Posted February 5, 2014 Share Posted February 5, 2014 does anyone have a solution? please Link to comment Share on other sites More sharing options...
montes.orc Posted February 8, 2014 Share Posted February 8, 2014 hi vekia my url urolur.se What theme is that? thanks! Link to comment Share on other sites More sharing options...
achhapar Posted February 11, 2014 Share Posted February 11, 2014 same here Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 comments works well on urolur.se may i know what is the url to your shop please? Link to comment Share on other sites More sharing options...
achhapar Posted February 12, 2014 Share Posted February 12, 2014 Still on Localhost Link to comment Share on other sites More sharing options...
vekia Posted February 12, 2014 Share Posted February 12, 2014 ok, co can you show what problem exactly you've got? you can post screenshot if this is possible Link to comment Share on other sites More sharing options...
montes.orc Posted February 12, 2014 Share Posted February 12, 2014 hi, my problem is in 1.5.6.2 when you write a comment and press submit button does nothing. Link to comment Share on other sites More sharing options...
achhapar Posted February 12, 2014 Share Posted February 12, 2014 Don't know what is happening. can't even attach a screenshot. Link to comment Share on other sites More sharing options...
äpple Posted February 12, 2014 Share Posted February 12, 2014 comments works well on urolur.se may i know what is the url to your shop please? I solved the problem. (my problem was that it did not happen anything when you click on the send button) I did the following operation! uninstalled product comment module, removed it and removed it entirely in ftp, then I installed version 2.3 instead. then I went into productcomment.js and changed lines 64 data: $ ('# Fancybox content-form'). serialize (); change to data: $ ('# new_comment_form form'). serialize (); after I waited 15 minutes and then it worked but I dare not update. hope it helps you too Link to comment Share on other sites More sharing options...
vekia Posted February 12, 2014 Share Posted February 12, 2014 the same solution as here: http://www.prestashop.com/forums/topic/240868-product-comments-error/?p=1540813 Link to comment Share on other sites More sharing options...
montes.orc Posted February 12, 2014 Share Posted February 12, 2014 Thanks! I solved it downgrading module version to 2.3 Link to comment Share on other sites More sharing options...
pasulakex Posted February 22, 2014 Share Posted February 22, 2014 Thanks! I solved it downgrading module version to 2.3 hi montes.. where you can get product comments module version 2.3 ? can you share with me? i have problem in ps 1.5.6.1 can't select star rating. thakns Link to comment Share on other sites More sharing options...
vekia Posted February 22, 2014 Share Posted February 22, 2014 productcomments.zip 3 Link to comment Share on other sites More sharing options...
pasulakex Posted February 22, 2014 Share Posted February 22, 2014 vekia thanks for share this module... Link to comment Share on other sites More sharing options...
vekia Posted February 22, 2014 Share Posted February 22, 2014 you're welcome if you need any additional old versions of the modules just let me know Link to comment Share on other sites More sharing options...
ebski Posted March 1, 2014 Share Posted March 1, 2014 Hello,I've tried exactly everything that is in this thread but still can make it work. I've got PS 1.5.6.2 and I've tired with module 2.3 / 2.4 / 2.9 but nothing works. Could you please help me out. The website is live and URL is http://ecigg.nu Thanks in advance! Link to comment Share on other sites More sharing options...
vekia Posted March 2, 2014 Share Posted March 2, 2014 can you disable ccc for js files, i want to inspect your js scripts, now i can't due to the minifcation Link to comment Share on other sites More sharing options...
ebski Posted March 2, 2014 Share Posted March 2, 2014 Done! Link to comment Share on other sites More sharing options...
vekia Posted March 3, 2014 Share Posted March 3, 2014 in productcomments.js use this code (instead of original)(http://ecigg.nu/themes/theme794/js/modules/productcomments/js/productcomments.js) $(function() { $('input[@type=radio].star').rating(); $('.auto-submit-star').rating(); $('.open-comment-form').fancybox({ 'hideOnContentClick': false, 'hideOnOverlayClick': true }); $('button.usefulness_btn').click(function() { var id_product_comment = $(this).data('id-product-comment'); var is_usefull = $(this).data('is-usefull'); var parent = $(this).parent(); $.ajax({ url: productcomments_controller_url + '?rand=' + new Date().getTime(), data: { id_product_comment: id_product_comment, action: 'comment_is_usefull', value: is_usefull }, type: 'POST', headers: { "cache-control": "no-cache" }, success: function(result){ parent.fadeOut('slow', function() { parent.remove(); }); } }); }); $('span.report_btn').click(function() { if (confirm(confirm_report_message)) { var idProductComment = $(this).data('id-product-comment'); var parent = $(this).parent(); $.ajax({ url: productcomments_controller_url + '?rand=' + new Date().getTime(), data: { id_product_comment: idProductComment, action: 'report_abuse' }, type: 'POST', headers: { "cache-control": "no-cache" }, success: function(result){ parent.fadeOut('slow', function() { parent.remove(); }); } }); } }); $('#submitNewMessage').click(function(e) { // Kill default behaviour e.preventDefault(); // Form element url_options = parseInt(productcomments_url_rewrite) ? '?' : '&'; $.ajax({ url: productcomments_controller_url + url_options + 'action=add_comment&secure_key=' + secure_key + '&rand=' + new Date().getTime(), data: $('#new_comment_form form').serialize(), type: 'POST', headers: { "cache-control": "no-cache" }, dataType: "json", success: function(data){ if (data.result) { $.fancybox.close(); document.location.href = document.location.href; } else { $('#new_comment_form_error ul').html(''); $.each(data.errors, function(index, value) { $('#new_comment_form_error ul').append('<li>'+value+'</li>'); }); $('#new_comment_form_error').slideDown('slow'); } } }); return false; }); }); you're welcome Link to comment Share on other sites More sharing options...
flamedtofu Posted June 4, 2014 Share Posted June 4, 2014 humm... this kind of problem is caused generaly by theme mistakes.. in my case, i found: file: themes\THEM_NAME\modules\productcomments\productcomments.tpl search <form> tag.. original was <form action="#"> I changed to <form id="id_new_comment_form" action="#" onsubmit="return false;"> I know the "id_new_comment_form" because the file modules\productcomments\js\productcomments.js is pointing to data: $('#id_new_comment_form').serialize(), Now, all working fine.. PS 1.5.6.0 This fixed my issue (custom theme, 1.5.6.2) interestingly only broke once I updated to product comments 3.3.5, but ultimately was a theme error. Link to comment Share on other sites More sharing options...
vekia Posted June 4, 2014 Share Posted June 4, 2014 newest versions of product comments uses a little different way to post comments this is why it doesnt want to work with new versions Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 4, 2014 Share Posted June 4, 2014 newest versions of product comments uses a little different way to post comments this is why it doesnt want to work with new versions Hi Milos, thanks for helping out these users. I believe the product comments module that shipped with 15.6.2 was 2.3. Does the module tell you to update to new versions? Link to comment Share on other sites More sharing options...
vekia Posted June 4, 2014 Share Posted June 4, 2014 i just meant that custom themes usually overrides product comments module .tpl file so when customers upgrade module to new version the old .tpl file will be still used. it causing problems, but problem is not with module, but with theme that is not compatibile with new releases of productcomments module Link to comment Share on other sites More sharing options...
Recommended Posts