Code: Select all
{% include 'extension/module/related_options_edit_variants.twig' %}
https://www.opencart.com/index.php?rout ... load_id=62
Please advise
Code: Select all
{% include 'extension/module/related_options_edit_variants.twig' %}
Life Is A Journey. Enjoy It
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Code: Select all
$loader1 = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code));
$loader2 = new \Twig\Loader\FilesystemLoader(array(DIR_TEMPLATE)); // to find further includes
$loader = new \Twig\Loader\ChainLoader(array($loader1, $loader2));
Code: Select all
{% related_options_edit_variants %}
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
This, my friend, seemed to do the trick. I put it into an ocmod for others in the future. Simple upload and install.JNeuhoff wrote: ↑Wed Sep 25, 2024 10:15 pmYou could try this in a modified system/library/template/twig.php:
Code: Select all
$loader1 = new \Twig\Loader\ArrayLoader(array($filename . '.twig' => $code)); $loader2 = new \Twig\Loader\FilesystemLoader(array(DIR_TEMPLATE)); // to find further includes $loader = new \Twig\Loader\ChainLoader(array($loader1, $loader2));
Life Is A Journey. Enjoy It
Users browsing this forum: No registered users and 31 guests