Issue in Opencart Version 18.104.22.168 and 22.214.171.124 OCMOD Twig Error
Purpletree Software LLP creates Opencart Extensions which admin can easily install from the admin panel. All our extensions are easy to use and once purchased admin can install it by following the user guide of that particular extension. No need to have any technical knowledge of coding if someone wants to use Purpletree Extension on their open cart website. During installation or later, if the customer faces any issue, our Helpdesk is always there to raise their complaints regarding the same, and that would be solved by a Team of professional Developers by Purpletree.
Opencart releases the latest version from time to time, for their customers. There can be any issue anywhere in coding, as code improves from time to time, this is true for Purpletree and this is also true for Opencart. But all learn from their mistakes and solve the issues from time to time. There is a major issue in Opencart latest versions 126.96.36.199 and 188.8.131.52, and we hope Opencart Team would solve this issue in the next release really soon. But until it is not being solved by Opencart, we as a developer of Opencart extensions we face issue due to which Purpletree extensions are not able to work properly.
All of the Purpletree opencart extensions use OCMOD modification for various operations. Opencart allows the use of OCMOD in extensions, using which we can modify core files of the opencart, and this is being approved method of Opencart. But when we use Opencart latest versions 184.108.40.206 and 220.127.116.11, OCMOD is not able to modify core view twig files of opencart. This issue is only being faced by customers who have recently upgraded to Opencart v18.104.22.168 and v22.214.171.124. All the previous versions are bug-free, and all of the Purpletree extensions work properly on the previous version, so the latest version of opencart which is no issues is Opencart v126.96.36.199 as Opencart v188.8.131.52 is not being released by opencart or has been discarded.
So the issue is that twig files that are view files of Opencart are not being able to modify in modifications made by OCMOD extension. This is a known issue and has been discussed in many forums and Opencart would release a fix for it soon. But until then we advise it to use opencart v184.108.40.206 or there as a fix by someone on Github, you can apply that fix if still want to use v220.127.116.11 or 18.104.22.168. Using the said fix as suggested by many developers, view twig files are being able to modify and no issue arrives in the Website store. This issue is being caused by Upgrade of template Engine by Opencart in these versions.
Reference Github Link - https://github.com/opencart/opencart/blob/3.0.x.x_Maintenance/upload/system/modification.xml
As suggested in reference follow the steps below as
- Replace the file root/upload/system/modification.xml with the above-fixed file.
- Now Login to Admin Panel, then Extensions > Modifications > Refresh the modifications. If Unable to Access admin panel due to error, just delete your modification files in `/storage/modification/` or as a defined folder in Config File. These would be the cache files and would be created on runtime again.
- Now Clear the Cache from Admin Dashboard.
Improvements done by Opencart or anyone must be checked thoroughly with each new release, this is a major issue which is faced by mainly the Opencart Extension developers. We hope Opencart would officially solve this issue soon, until then use the said fix or use Stable versions of Opencart v22.214.171.124 or earlier.