ThomasJanda / oxid-reviews

Give the user the option to display reviews in different languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oxid Reviews

Description

Give the user the option to display reviews in different languages.

Install

  1. Copy files into following directory

     source/modules/rs/reviews
    
  2. Add following to composer.json on the shop root

     "autoload": {
         "psr-4": {
             "rs\\reviews\\": "./source/modules/rs/reviews"
         }
     },
    
  3. Refresh autoloader files with composer.

     composer dump-autoload
    
  4. Template changes

    Make following changes on file /source/Application/views/wave/tpl/page/details/inc/fullproductinfo.tpl

     <div class="reviews">
         <div class="h2 reviews-header">[{oxmultilang ident="WRITE_PRODUCT_REVIEW"}]</div>
         [{* rs-reviews start *}]
         [{block name="rs_reviews"}]
         [{* rs-reviews end *}]
         [{include file="widget/reviews/reviews.tpl"}]
         [{* rs-reviews start *}]
         [{/block}]
         [{* rs-reviews end *}]
     </div>
    
  5. Enable module in the oxid admin area, Extensions => Modules

  6. Clear template and language cache

About

Give the user the option to display reviews in different languages.

License:GNU General Public License v3.0


Languages

Language:Smarty 70.3%Language:PHP 25.0%Language:JavaScript 3.1%Language:CSS 1.6%