Jump to content

les avis produits ne s'affichent pas dans l'onglet "commentaires"


Painternadege

Recommended Posts

Bonsoir,

Je suis sous prestashop 1.7, j'utilise un thème acheté et un module commentaire lié au thème acheté. Mon problème c'est que les avis ne s'affichent pas dans l'onglet commentaires. Lorsque l'on clique sur l'onglet, la page est vide et ne charge pas les avis. J'ai essayé d'autres modules de commentaires et le même problème se produit. Voici l'url d'une fiche produit avec un avis : https://lartdubeau.fr/achat-tableau-peinture-realiste-en-ligne/28-189-tableau-portrait-peinture-star-marylin-monroe.html#/40-couleur_de_l_oeuvre-rouge

Dans l'attente d'un petit coup de main !

Link to comment
Share on other sites

Bonjour,

1- si le module est acheté, vous pouvez obtenir de l'aide auprès de son créateur qui est le plus à même de répondre concernant son module.

2- J'avoue ne pas comprendre votre demande, car vous parlez d'un onglet avis, mais aucune idée où est cet onglet.
Sur la fiche produit transmise, on a bien l'avis qui apparait.
Dans le menu en haut, vous avez un lien vers une page CMS dans lequel vous semblez avoir intégré des avis, j'imagine à l'aide d'elementor, sauf que certains des avis ne s'affichent pas sur les pages produits alors qu'on les visualise sur cette page.

image.thumb.png.881d2dbce77ff84f268ed55d99544e56.png

 

N'existerait-il pas un système de validation manuel des avis avant qu'ils ne s'affichent sur le produit ?

Link to comment
Share on other sites

Bonjour,

Merci pour votre retour. Le module commentaire lié à mon thème acheté n'est plus sous licence donc je ne peux pas demandé d'aide auprès du prestataire du thème. Le problème ne vient pas de mon module car comme expliquez plus haut, j'ai essayé un autre module commentaire comme celui de prestashop et j'ai le même souci. Les commentaires ne s'affichent pas dans l'onglet de la page produit qui se trouve à côté de l'onglet caractéristiques. Le problème d'affichage ne vient pas de ma page CMS que vous avez mis en image. J'alimente cette page moi-même. Le problème de l'affichage des commentaires sr situent sur les pages produits, ci-joint le lien https://lartdubeau.fr/achat-tableau-peinture-realiste-en-ligne/28-189-tableau-portrait-peinture-star-marylin-monroe.html#/40-couleur_de_l_oeuvre-rouge

Je valide effectivement manuellement (modération) les avis sur chaque page produit, ils apparaissent bien en bloc sous la description produit mais pas dans l'onglet commentaires. Ci-joint une photo explicative : en cliquant sur l'onglet commentaire, la page ne charge pas l'avis déposé. Je pense que j'ai un problème dans mon fichier product.tpl, mais je ne sais pas lequel. Si besoin, je mettrai mon fichier product.tpl ici en détails.

 

Merci à vous,

image-produit.jpg

Link to comment
Share on other sites

Bonjour,

Effectivement, en regardant le product.tpl, j'ai ceci :   {block name='product_reviews'}
                {hook h='displayProductListReviewspro' product=$product}

Hors je n'ai pas de module qui s'appelle Reviewspro. Le module que j'utilise avec mon thème acheté s'appelle Wb Product Comments

Dites moi SVP ce que je dois modifier dans le fichier pour résoudre ce problème, merci.

Voici mon fichier product.tpl dans sa totalité

{**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <[email protected]>
 * @copyright 2007-2018 PrestaShop SA
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
{extends file=$layout}

{block name='head_seo' prepend}
  <link rel="canonical" href="{$product.canonical_url}">
{/block}

{block name='head' append}
  <meta property="og:type" content="product">
  <meta property="og:url" content="{$urls.current_url}">
  <meta property="og:title" content="{$page.meta.title}">
  <meta property="og:site_name" content="{$shop.name}">
  <meta property="og:description" content="{$page.meta.description}">
  <meta property="og:image" content="{$product.cover.large.url}">
  <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
  <meta property="product:pretax_price:currency" content="{$currency.iso_code}">
  <meta property="product:price:amount" content="{$product.price_amount}">
  <meta property="product:price:currency" content="{$currency.iso_code}">
  {if isset($product.weight) && ($product.weight != 0)}
  <meta property="product:weight:value" content="{$product.weight}">
  <meta property="product:weight:units" content="{$product.weight_unit}">
  {/if}
{/block}

{block name='content'}

  <section id="main" itemscope itemtype="https://schema.org/Product">
    <meta itemprop="url" content="{$product.url}">

    <div class="row">
      <div class="col-sm-6 col-xl-5 col-lg-6 col-md-6 col-xs-12 sticky">
        {block name='page_content_container'}
          <section class="page-content1" id="content">
            {block name='page_content'}
              {block name='product_flags'}
                <ul class="product-flags">
                  {foreach from=$product.flags item=flag}
                    <li class="product-flag {$flag.type}">{$flag.label}</li>
                  {/foreach}
                </ul>
              {/block}

              {block name='product_cover_thumbnails'}
                {include file='catalog/_partials/product-cover-thumbnails.tpl'}
              {/block}
               <div class="scroll-box-arrows">
                <i class="material-icons left">&#xE314;</i>
                <i class="material-icons right">&#xE315;</i>
              </div>
            {/block}
          </section>
        {/block}
        </div>
        <div class="col-sm-6 col-xl-7 col-lg-6 col-md-6 col-xs-12 propage">
          {block name='page_header_container'}
            {block name='page_header'}
              <h1 class="h1" itemprop="name">{block name='page_title'}{$product.name}{/block}</h1>
{hook h='displayEtsEptBellowProductTitle'}<hr>
            {/block}
          {/block}


            <div class="arltr">
              {block name='product_reviews'}
                {hook h='displayProductListReviewspro' product=$product}
              {/block}
              {* <a href="#rate" id="ratep">{l s='read review' d='Shop.Theme.Global'}</a> *}
            </div>
            
          {block name='product_prices'}
            {include file='catalog/_partials/product-prices.tpl'}
          {/block}

          {* Winter Infotech Start 10-12-2020*}
              {if isset($product.flags['on-sale']) && isset($product.specific_prices.to) && ($product.specific_prices.to|date_format:"%Y/%m/%d" > $smarty.now|date_format:"%Y/%m/%d")}
                <div claas="wb_countdown">
                <div data-date="{$product.specific_prices.to|date_format}" class="wb_product_countdown">
                  <div class="wb_countdown_days">
                    <span class="wb_countdown_days_digit"></span><strong>{l s='Days' d='Shop.Theme.Catalog'}</strong>
                    {* <p>{l s='Days' d='Shop.Theme.Catalog'}</p> *}
                  </div>
                  <div class="wb_countdown_hours">
                    <span class="wb_countdown_hours_digit"></span>
                    {* <p>{l s='Hours' d='Shop.Theme.Catalog'}</p> *}
                  </div>
                  <div class="wb_countdown_minutes">
                    <span class="wb_countdown_minutes_digit"></span>
                    {* <p>{l s='Min' d='Shop.Theme.Catalog'}</p> *}
                  </div>
                  <div class="wb_countdown_seconds">
                    <span class="wb_countdown_seconds_digit"></span>
                    {* <p>{l s='Sec' d='Shop.Theme.Catalog'}</p> *}
                  </div>
                </div>
                </div>
              {/if}
              {* Winter Infotech End*}

          <div class="product-information">
            {block name='product_description_short'}
              <div id="product-description-short-{$product.id}" itemprop="description" class="prodes">{$product.description_short nofilter}</div>
            {/block}

            {if $product.is_customizable && count($product.customizations.fields)}
              {block name='product_customization'}
                {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations}
              {/block}
            {/if}

            <div class="product-actions">
              {block name='product_buy'}
                <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh">
                  <input type="hidden" name="token" value="{$static_token}">
                  <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id">
                  <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id">

                  {block name='product_variants'}
                    {include file='catalog/_partials/product-variants.tpl'}
                  {/block}

                  {block name='product_pack'}
                    {if $packItems}
                      <section class="product-pack">
                        <h3 class="h4">{l s='This pack contains' d='Shop.Theme.Catalog'}</h3>
                        {foreach from=$packItems item="product_pack"}
                          {block name='product_miniature'}
                            {include file='catalog/_partials/miniatures/pack-product.tpl' product=$product_pack}
                          {/block}
                        {/foreach}
                    </section>
                    {/if}
                  {/block}

                  {block name='product_discounts'}
                    {include file='catalog/_partials/product-discounts.tpl'}
                  {/block}

                  {block name='product_add_to_cart'}
                    {include file='catalog/_partials/product-add-to-cart.tpl'}
                  {/block}

                  {block name='product_additional_info'}
                    {include file='catalog/_partials/product-additional-info.tpl'}
                  {/block}

                  {* Input to refresh product HTML removed, block kept for compatibility with themes *}
                  {block name='product_refresh'}{/block}

                </form>
              {/block}

            </div>

            {block name='hook_display_reassurance'}
              {hook h='displayReassurance'}
            {/block}
        </div>
      </div>
    </div>

            {block name='product_tabs'}
                <div class="product-tab">
                <ul class="nav nav-tabs" role="tablist">
                  {if $product.description}
                    <li class="nav-item">
                       <a
                         class="nav-link{if $product.description} active{/if}"
                         id="tab1"
                         data-toggle="tab"
                         href="#description"
                         role="tab"
                         aria-controls="description"
                         {if $product.description} aria-selected="true"{/if}>{l s='Description' d='Shop.Theme.Global'}</a>
                    </li>
                  {/if}
                  <li class="nav-item pdetail">
                    <a
                      class="nav-link{if !$product.description} active{/if}"
                      data-toggle="tab"
                      id="tab2"
                      href="#product-details"
                      role="tab"
                      aria-controls="product-details"
                      {if !$product.description} aria-selected="true"{/if}>{l s='Details' d='Shop.Theme.Global'}</a>
                  </li>
                  {if $product.attachments}
                    <li class="nav-item">
                      <a
                        class="nav-link"
                        id="tab3"
                        data-toggle="tab"
                        href="#attachments"
                        role="tab"
                        aria-controls="attachments">{l s='Attachments' d='Shop.Theme.Catalog'}</a>
                    </li>
                  {/if}
                  {foreach from=$product.extraContent item=extra key=extraKey}
                    <li class="nav-item">
                      <a
                        class="nav-link"
                        data-toggle="tab"
                        href="#extra-{$extraKey}"
                        role="tab"
                        aria-controls="extra-{$extraKey}">{$extra.title}</a>
                    </li>
                  {/foreach}
                  {* <li class="nav-item">
                      <a class="nav-link" href="#rate" data-toggle="tab" role="tab" id="rv"> {l s='Review' d='Shop.Theme.Global'}</a>
                  </li> *}
                </ul>

                <div class="tab-content" id="tab-content">
                 <div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
                   {block name='product_description'}
                     <div class="product-d">{$product.description nofilter}</div>
                   {/block}
                 </div>

                 {block name='product_details'}
                   {include file='catalog/_partials/product-details.tpl'}
                 {/block}

                 {block name='product_attachments'}
                   {if $product.attachments}
                    <div class="tab-pane fade in" id="attachments" role="tabpanel">
                       <section class="product-attachments">
                       {*   <h3 class="h5 text-uppercase">{l s='Download' d='Shop.Theme.Actions'}</h3> *}
                         {foreach from=$product.attachments item=attachment}
                           <div class="attachment">
                             <h4><a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">{$attachment.name}</a></h4>
                             <p>{$attachment.description}</p>
                             <a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">
                               <i class="fa fa-download"></i>    {l s='Download' d='Shop.Theme.Actions'} ({$attachment.file_size_formatted})
                             </a>
                           </div>
                         {/foreach}
                       </section>
                     </div>
                   {/if}
                 {/block}

                 {foreach from=$product.extraContent item=extra key=extraKey}
                 <div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey} tab2" role="tabpanel" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}>
                   {$extra.content nofilter}
                 </div>
                 {/foreach}
                {* <div class="tab-pane fade in" id="rate" role="tabpanel">
                  {hook h='displayProductFooter' product=$product}
                 </div> *}
              </div>
            </div>
          {/block}

          <div class="pro-review">
            <h2 class="rhead"><span>{l s='Review' d='Shop.Theme.Global'}</span></h2>
            {hook h='displayProductFooter' product=$product}
          </div>


    {block name='product_accessories'}
      {if $accessories}
        <section class="product-accessories clearfix">
          <h2 class="heading text-xs-center"><span>{l s='Related Product' d='Shop.Theme.Global'}</span></h2>
          <div class="products co-content row rless">
          <div id="owl-related" class="owl-carousel owl-theme">
            {foreach from=$accessories item="product_accessory"}
              {block name='product_miniature'}
                {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory}
              {/block}
            {/foreach}
          </div>
          </div>
        </section>
      {/if}
    {/block}

    {block name='product_footer'}
      {hook h='displayFooterProduct' product=$product category=$category}
    {/block}

    {block name='product_images_modal'}
      {include file='catalog/_partials/product-images-modal.tpl'}
    {/block}

    {block name='page_footer_container'}
      <footer class="page-footer">
        {block name='page_footer'}
          <!-- Footer content -->
        {/block}
      </footer>
    {/block}
  </section>
{/block}

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...