<operation error="skip">
<search><![CDATA[$loader = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));]]></search> // У меня именно так на 3.0.3.9
<add position="replace"><![CDATA[
$loader1 = new \Twig_Loader_Array(array($filename . '.twig' => $code));
$loader2 = new \Twig_Loader_Filesystem(array(DIR_TEMPLATE));
$loader = new \Twig_Loader_Chain(array($loader1, $loader2));
]]></add>
</operation>$loader1 = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));
$loader2 = new \Twig\Loader\FilesystemLoader(array(DIR_TEMPLATE));
$loader = new \Twig\Loader\ChainLoader(array($loader1, $loader2));<file path="system/library/template/twig.php">
<operation>
<search><![CDATA[$loader = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));]]></search>
<add position="after"><![CDATA[
if (isset($loader) && class_exists('\Twig_Loader_Chain') && class_exists('\Twig_Loader_Filesystem')) {
$loader_filesystem = new \Twig_Loader_Filesystem(DIR_TEMPLATE);
$loader = new \Twig_Loader_Chain(array($loader, $loader_filesystem));
} else if (isset($loader) && class_exists('\Twig\Loader\FilesystemLoader') && class_exists('\Twig\Loader\ChainLoader')) {
$loader_filesystem = new \Twig\Loader\FilesystemLoader(DIR_TEMPLATE);
$loader = new \Twig\Loader\ChainLoader(array($loader, $loader_filesystem));
}
]]></add>
</operation>
</file>Нужно что бы если покупатель вводит определённый город доставки то можно сделать что бы оставалась одна доставка?Посмотрите модуль FilterIt
Your own online store of clothes and shoes on OpenCart allows you to: work under your own brand, set your own prices, manage a warehouse, gather a regular audience and not pay a commission to the marketplace on each order.
The Simple module is one of the most popular modules for simplifying checkout and registration in OpenCart 3. However, after its installation, a critical error may occur related to an outdated modification of the Twig template engine.
Creating an online store might seem challenging, especially on a limited budget. However, with the right tools and platform, it is entirely achievable. In this article, we will explore how to create a free online store using the popular OpenCart platform.