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 ...

Get PrestaShop Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.