Please take backup of the source code and database before making any changes.
All the changes explained in this tutorial are tested on the opencart latest verison 184.108.40.206
I am assuming that you have properly installed opencart.
I'm going to use the following custom theme "Ancart". Thanks to focusthemes for providing theme as FREE. Here is the name for the same.
Now below is structure at opencartdemo/upload/catalog/view/
Changes Required for Front End Section
In previous article for the default theme we have to make changes in the following files:
catalog/view/theme/default/template/product/product.tpl catalog/view/theme/default/template/product/search.tpl catalog/view/theme/default/template/product/compare.tpl
Now for the custom theme, you just need to make change in your custom theme(ancart here) files instead of the default one.
catalog/view/theme/ancart/template/product/product.tpl catalog/view/theme/ancart/template/product/search.tpl catalog/view/theme/ancart/template/product/compare.tpl
Now make the same changes explained in the previous article in these custom theme view files and you will get the custom product field displayed in your custom theme.
This custom theme "Ancart" is built with the base of default theme, so there are design changes only. The structure is same as the default one so you can easily find all the content blocks and code exactly in this theme that we have in default one. But, Its not compulsory in all the cases. There are many premium opencart themes available in the market, whose content and the code structure in the view files can be different than the default theme.
say for example,
If there is no such exact code in your custom theme:
<div class="tab-pane active" id="tab-description"><?php echo $description; ?>
It might be possible that theme has its own different or extra class added like:
<div class="tab-pane-one activetab" id="tab-description"><?php echo $description; ?>
In such cases, try to find the opencart variables like:
<?php echo $description; ?>
We have mainly two articles required to add the custom product field in opencart.
For admin section :
For Front section :