Hello friends today you are in versions available in OpenCart 2.x versions. We will share our article which includes 3 more data entries on Admin side and the related modifications on the database. In addition to the points and notes given to the product by admin in this article, if this product is a product with expiration date, it consists of the final date. This information entered from data entry in Admin section is structured to appear in product detail. Score notes and expiration dates entered from this section will be shown in the Product Manager.
Note: Friends have added +2 more fields in this modification, so this field allows entry of points for the related product. However, if I have not tested this modification for a while, first test it on localhost before using it and apply it to your own site. We do not accept liability for data loss.
Now let's set up.
Firstly. Creating the database from the model file by admin.
File Open : admin/catalog/model/catalog/
product.php
Find :
This code exists in two places. Replace it with the following code:
Find :
Add a substring under the code starting with $sql
File Open : admin/controller/catalog/
product.php
Find :
Add After Line :
Find :
Add Before Line :
Find :
Add After Lİne :
File OPen : admin/view/template/catalog/
product_form.tpl
Find :
Add Before Line :
File Open : admin/language/your-lang-file/catalog/
product.php
Find :
Add After Line :
Find :
Add After Lİne :
Modification Process by Admin is Done. Imperial Rank came to visitor modifications
File OPen : catalog/model/catalog/
product.php
Find :
Add Before Lİne :
File OPen : catalog/controller/product/
product.php
Find :
Add After Line :
Find :
Add After Line :
Find :
Add After Line :
File Open : catalog/language/senin-dil-klasörün/
product.php
Find :
Add After Line :
File Open : catalog/view/theme/your-theme/template/product/
product.tpl
Find :
Add After Line :
This is so if you want to make your score display a bit more lifelike. The sample code is as follows.
Find in the same tpl file:
Add After Line :
You can add anywhere you want, you have
You can also add as many fields as you want by changing and duplicating the added tables and form elements. Css file is available.
Other different types of usage colors are as follows.