As you known, the Hikashop don't allow embed Joomla! module, it not good to display a custom code through plugin also. I tried many times and there is best way to display review form for each Hikahop product.
1. Show review content for each product
Please do following bellow steps:
- Install Flexi Custom Code module (Get it here). This module help to insert PHP code
- Notice:
- Go to Module manager > New > Select: Flexi Custom Code
- Copy code bellow and paste to "Insert Code" field:
<php $app = JFactory::getApplication (); if( $app->input->getCmd('option')=='com_hikashop' && $app->input->getCmd('ctrl')=='product' && $app->input->getCmd('task')=='show' ) { $id = $app->input->getInt ("cid",0); if ($id>0) { echo JLexReviewLoad::init ( "", 'hikashop', $id); } }
- In Menu Assignment set Module Assignment is On all page
- Select Module position where you would like place this module. Then mark Public status and save it.
2. Show average rating (Mini-star icon) to product and listing product
This step is easier :). Get plugin at here and go to Extension > Installation > Install. Then, go to Plugin manager and enable "Hikashop - JLex Review"
If you have difficult, please contact us through Forum or Ticket system.