How to update Akira theme to latest version? Click here.

Okay
  Public Ticket #3745066
reviews module
Closed

Comments

  • kayalarmanifatura started the conversation

    Hello, my comment module is not working properly on the Google Rich Content page. Modules with comments should be sent to Google, and modules without comments should be hidden from Google. If the product has a star, it should be listed, and if there is no star, it should not be listed. I would expect this to happen in an advanced theme like axon. please help me on this

  •  386
    Naik replied

    Hi, you can update our module root/modules/nrtreviews/

    Thank you!

    Attached files:  nrtreviews.zip

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • kayalarmanifatura replied

    thank you but Ah sorry the 2 modules I purchased are now conflicting. The module owner did not fix this issue, Automatic Rich Snippets JSON-LD Integration - It conflicts with my SEO comment module now

  •  386
    Naik replied

    How is it incompatible? Can you explain more clearly?

    When the product does not have a rating, the review module will only show the review writing section. Exactly as you described before.

    Thanks!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • kayalarmanifatura replied

    Products with comments appear on Google, but only the average score appears. Why does the person who commented on the content of the review not appear?

  •  386
    Naik replied

    The review tab is still displayed on all products. It is located along with your product description tab.

    Please check again.

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • kayalarmanifatura replied

    My problem is precisely because the data of the comment content is not transmitted in Google rich content, only the number of comments and average score information are displayed. Comment content should appear in rich results

  •  386
    Naik replied

    Can you send us the product link and report from GG rich snippet? We can check exactly what you need.

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • kayalarmanifatura replied

    Here, the number of reviews of the product and the average comment are displayed, but in addition, the individual contents of the comments, the names of the authors and their dates should also be displayed.

    Attached files:  7777.PNG

  •  386
    Naik replied

    Sorry, these display options are not available at this time.

    Thank you!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • kayalarmanifatura replied

    This is a major improvement for me. At least you need to tell me which theme file I should work on. thank you for this

  •  386
    Naik replied

    Hi,

    This is nrtreview module, you can edit this module.

    Thank you!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)

  • kayalarmanifatura replied

    None of the changes I make affect it. This is very strange. Axon is a big theme and such an update seems important. Approximately when it can be done

  • kayalarmanifatura replied

    module nrtreview json

    {if isset($reviews) && $reviews}
    "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "{$avgReviews.avg|round:1|escape:'html':'UTF-8'}",
        "reviewCount": "{$avgReviews.nbr|escape:'html':'UTF-8'}"
    },
    {foreach from=$reviews item="review"}
    "review": {
        "@type": "Review",
        "reviewRating": {
            "@type": "Rating",
            "ratingValue": "{$review.rating}",
            "bestRating": "5"
        },
        "author": {
            "@type": "Person",
            "name": "{$review.customer_name}"
        },
        "reviewBody": "{$review.comment nofilter}",
        "datePublished": "{dateFormat date=$review.date_add full=0}"
    },
    {/foreach}
    {/if}

    theme product.json

    {assign var=hasAggregateRating value=false}
    {if !empty($product.productComments.averageRating) && !empty($product.productComments.nbComments)}
        {assign var=hasAggregateRating value=true}
        {assign var=ratingValue value=$product.productComments.averageRating}
        {assign var=ratingReviewCount value=$product.productComments.nbComments}
    {/if}
    {if !empty($ratings.avg) && !empty($nbComments)}
        {assign var=hasAggregateRating value=true}
        {assign var=ratingValue value=$ratings.avg}
        {assign var=ratingReviewCount value=$nbComments}
    {/if}
    {if isset($axpsProductComments)}
        {assign var=hasAggregateRating value=true}
        {assign var=ratingValue value=$axpsProductComments.avg}
        {assign var=ratingReviewCount value=$axpsProductComments.nbr}
    {/if}
    {assign var=hasWeight value=false}
    {if isset($product.weight) && ($product.weight != 0)}
        {assign var=hasWeight value=true}
    {/if}
    {assign var=hasOffers value=$product.show_price}
    <script type="application/ld+json">
      {
        "@context": "https://schema.org/",
        "@type": "Product",
        "name": "{$product.name}",
        "description": "{$page.meta.description|regex_replace:"/[\r\n]/" : " "}",
        "category": "{$product.category_name}",
        {if !empty($product.cover)}"image" :"{$product.cover.bySize.home_default.url}",{/if}
        "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
        "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}"
        {if $product.ean13},"gtin13": "{$product.ean13}"
        {else if $product.upc},"gtin13": "{$product.upc}"
        {/if}
        {if $product_manufacturer->name OR $shop.name},
        "brand": {
          "@type": "Brand",
          "name": "{if $product_manufacturer->name}{$product_manufacturer->name|escape:'html':'UTF-8'}{else}{$shop.name}{/if}"
        }
        {/if}
        {if $hasAggregateRating},
        "aggregateRating": {
          "@type": "AggregateRating",
          "ratingValue": "{$ratingValue|round:1|escape:'html':'UTF-8'}",
          "reviewCount": "{$ratingReviewCount|escape:'html':'UTF-8'}"
        }
        {/if}
        {if $hasWeight},
        "weight": {
            "@context": "https://schema.org",
            "@type": "QuantitativeValue",
            "value": "{$product.weight}",
            "unitCode": "{$product.weight_unit}"
        }
        {/if}
        {if $hasOffers},
        "offers": {
          "@type": "Offer",
          "priceCurrency": "{$currency.iso_code}",
          "name": "{$product.name|strip_tags:false}",
          "price": "{$product.price_amount}",
          "url": "{$product.url}",
          "priceValidUntil": "{($smarty.now + (int) (60*60*24*15))|date_format:"%Y-%m-%d"}",
       
          "sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
          "mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}",
          {if $product.ean13}"gtin13": "{$product.ean13}",{else if $product.upc}"gtin13": "0{$product.upc}",{/if}
          {if $product.condition == 'new'}"itemCondition": "https://schema.org/NewCondition",{/if}
          {if $product.show_condition > 0}
            {if $product.condition == 'used'}"itemCondition": "https://schema.org/UsedCondition",{/if}
            {if $product.condition == 'refurbished'}"itemCondition": "https://schema.org/RefurbishedCondition",{/if}
          {/if}
          "availability": "{$product.seo_availability}",
          "seller": {
            "@type": "Organization",
            "name": "{$shop.name}"
          }
        }
        {/if}
      }
    </script>

  •  386
    Naik replied

    Can you describe what you are trying to say? We are not sure what you mean.

    Thank you!

    Best regards,

    Naik - Lightatend Team 

    A good review and positive comment would help us to keep doing what we do best Rate now

    Our support time Monday-Saturday (9am-6pm GMT+7)