Magento 2 ChatGPT Product Review SummaryMagento 2 ChatGPT Product Review Summary
Buy Now
Support
Buy Now
Support
  • Getting Started

    • Introduction
    • Key Features
    • How It Works
  • Installation

    • Requirements
    • Install the Module
    • Install the AI Packages
    • Enable & Compile
    • Verify the Installation
  • Setup

    • Enable the Module
    • Activate Your Licence
    • Select an LLM Provider
    • Validate & Load Models
    • First Summaries
  • Configuration

    • Overview
    • General Settings
    • Scope & Store Views
    • Admin Menu
    • Access Control
  • LLM Providers

    • Provider Overview
    • How Validation Works
    • Ollama (Self-Hosted)
    • Switching Providers
  • Generating Summaries

    • Summary Basics
    • What Is Sent to the Model
    • From the Reviews Grid
    • CLI Command
    • Keeping Summaries Fresh
  • Storefront

    • On the Product Page
    • Full-Width Layout
    • Styling
  • Developers

    • Data Model
    • Useful SQL
    • Logging
  • Help

    • Setup Problems
    • Generation Problems
    • Storefront Problems
    • FAQ

Styling

Markup

<div class="main">
  <div class="product-section">
    <h3>Customers Say</h3>
    <div class="review-content-container">
      <div class="review-content">
        <span><!-- summary text --></span>
        <h6 class="wk-review-suggestion">AI generated product reviews summary</h6>
      </div>
    </div>
  </div>
</div>

Default styles

The module ships one rule, loaded on every storefront page:

.wk-review-suggestion {
    color: slategray;
    font-style: italic;
}

Everything else inherits from your theme.

Customising

Add rules to your theme's stylesheet, for example app/design/frontend/<Vendor>/<theme>/web/css/source/_extend.less:

.product-section {
    .lib-css(background, #f7f7f9);
    .lib-css(border-radius, 8px);
    padding: 16px 20px;
    margin-bottom: 24px;

    h3 { margin-top: 0; }
}

.wk-review-suggestion {
    font-size: 12px;
    margin: 12px 0 0;
}

Then redeploy static content:

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

Changing the text

Customers Say and AI generated product reviews summary are translatable strings. Override them in your theme's i18n/<locale>.csv:

"Customers Say","What shoppers think"
"AI generated product reviews summary","Summary written by AI from verified reviews"

Next: Data Model.

Prev
Full-Width Layout