Jump to content

[Résolu] [-] BO : commentaire produit impossible si quantité > 0


Recommended Posts

La dernière modif du fichier product.tpl est à l'origine du bug

https://github.com/PrestaShop/PrestaShop/pull/219

 <!-- Out of stock hook -->
           <div id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
               {$HOOK_PRODUCT_OOS}
           </div>

J'ai remis l'ancien code.

<!-- Out of stock hook -->
           <p id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
               {$HOOK_PRODUCT_OOS}
           </p>

Link to comment
Share on other sites

Si vous voulez garder le code de product.tpl vous pouvez modifier le productcomments-extra.tpl

Modification apportée par chrilith sur ce Post

...
{if $logged == 1 || $nbComments != 0}
</div><!-- Close the OosHook -->
...
<div><!-- new div for the next content if any -->
{/if}
<!--  /Module ProductComments -->

 

J'ai posté un pull request ici wait and see

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

  • 1 month later...

la solution trouvée est de rajouter cette ligne de commande dans le fichier /themes/default/modules/productcomments/productcomments.tpl

<div class="comments_advices">
 <a class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'}</a>
</div>

cela affiche "donnez votre avis" le problème avec cette solution c'est que si c'est le premiers avis il affiche aussi "soyez le premiers à donner votre avis"

 

si quelqu'un trouve mieux je suis preneur

  • Like 1
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...