Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new version of opencart 3.0.3.6 can't apply modification changes #8142

Closed
spamacom opened this issue Jul 29, 2020 · 3 comments
Closed

The new version of opencart 3.0.3.6 can't apply modification changes #8142

spamacom opened this issue Jul 29, 2020 · 3 comments

Comments

@spamacom
Copy link

opencart version : 3.0.3.6

the modification in catalog/view can't be apply and not appear in front ends.

https://demo.sbase.co/admin
username: admin
password : 123

@diegospm
Copy link

diegospm commented Jul 29, 2020

Hi!

Actually the problem is caused by the OC modification file itself, I saw that it has some reports of the same problem, but a correction has already been presented: https://github.com/opencart/opencart/blob/3.0.x.x_Maintenance/upload/system/modification.xml

Perhaps the team will release a new version soon.

@gRoberts84
Copy link

Came across this my self when it stopped loading admin views. Add this to your modification file ;)

<file path="system/library/template/twig.php">
    <operation>
        <search>
            <![CDATA[$loader = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));]]>
        </search>
        <add position="replace">
            <![CDATA[
            $loader = new \Twig_Loader_Filesystem();

            if (defined('DIR_CATALOG') && is_dir(DIR_MODIFICATION . 'admin/view/template/')) {
                $loader->addPath(DIR_MODIFICATION . 'admin/view/template/');
            } elseif (is_dir(DIR_MODIFICATION . 'catalog/view/theme/')) {
                $loader->addPath(DIR_MODIFICATION . 'catalog/view/theme/');
            }

            $loader->addPath(DIR_TEMPLATE);]]>
        </add>
    </operation>
</file>

@WebkulOpencart
Copy link
Contributor

This is already resolved so closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants