O'Reilly logo

PrestaShop Module Development by Fabien Serny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the module code

We have updated the mymod_comment table with the three new fields; we now have to update the code of the module to use these fields. I won't explain this part in detail since it's not very difficult and there is nothing new here. You can take the module attached with this chapter if you want to skip this part. In displayProductTabContent.tpl, add the following HTML fields in the form:

<div class="form-group"> <label for="firstname"> {l s='Firstname:' mod='mymodcomments'} </label> <div class="row"><div class="col-xs-4"> <input type="text" name="firstname" id="firstname" class="form-control" /> </div></div> </div> <div class="form-group"> <label for="lastname"> {l s='Lastname:' mod='mymodcomments'} </label> <div class="row"><div ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required