We will now make a small configuration form with two options: one to enable grades and the other one to enable comments on a product.
Let's fill in the
getContent.tpl file we created previously with a small form.
Since PrestaShop 1.6, the back office now uses the CSS Framework Bootstrap. You can either write basic HTML (and make the display compliant with an older version of PrestaShop), or write Bootstrap templates.
If you choose to use Bootstrap (as I'll do later), you have to set the Bootstrap flag in your module constructor first.
__construct method of your module's
mymodcomments.php main class, add the following line before
$this->bootstrap = true;
If you do not set this flag to