Jump to content

Cannot commenting on an item that is In Stock that already has been commented on


Recommended Posts

Hello every one.

 

I have another new problem (bug) on my prestashop 1.5.4 installation

this time i discover that i cannot write or add a new comment review to a product,

after someone (a cliente or a guest) had written before a review, so if a anyone has already write a comment on Comments tab no one more can add a new comment.

 

The only way i can add a new comment review is when the product is no longer in stock!

very strange...

 

Can you visit my page and see whats happen?: http://www.tekcenter.pt/store/en/

 

My WebStore details:

Prestashop Version: 1.5.4

Template: default

Files modifications: no modifications the site is clean

 

Hope someone help me...

 

Tanks.

Edited by majority (see edit history)
Link to comment
Share on other sites

I think this module never worked...

 

i just installed a new test store and i cannot commenting on an item that is In Stock that already has been commented on

but if the product is out of stock i can write comments

very strange... :unsure:

 

Anyone have a clue?

Edited by majority (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Dear all

Some customer ask me: "How to ask multiple in module productcomment default of prestashop".

They only can add comment in first time. YES! that is error

I checked code and and I will post solution in here:

open file if you override tpl file of this module in productcomments:

YOUR_SITE/themes/TEMPLATENAME/modules/productcomments/productcomments.tpl

or if you don't override

YOUR_SITE/modules/productcomments/productcomments.tpl

 

find the code

 

 

{else}

{if ($logged OR $allow_guests)}

<p class="align_center">

<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>

</p>

{else}

<p class="align_center">{l s='No customer comments for the moment.' mod='productcomments'}</p>

{/if}

{/if}

add this code before this code, default add in line 74

 

 

{if ($too_early == false AND ($logged OR $allow_guests))}

<p class="align_center">

<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Add new Comment' mod='productcomments'} !</a>

</p>

{/if}

 

 

With this code, the button "ADD NEW COMMENT WILL BE DISPLAY"

or you can download this productcomments.tpl file

and override in your site

YOUR_SITE/modules/productcomments/productcomments.tpl

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...