Post by xxvirusxx » Sat Apr 21, 2018 10:00 pm

I have an extension for oc 3.0.2.0 and I want to convert for oc 2.3.0.2.

I know that this example:

Code: Select all

{{ some_text }}
will became

Code: Select all

<?php echo $some_text; ?>
This

Code: Select all

{% for manufacturer in manufacturers %}
in

Code: Select all

<? php foreach  ($manufactures as $manufacturer)  { ?>
But I don`t understand how this type of twig code can be in tpl code

Code: Select all

 {% if error.manufacturer.manufacturer_number.manufacturer_id %} error-field{% endif %}
in..?

LE. Something like this?

Code: Select all

<?php if (isset($error[$manufacturer['manufacturer_number']['manufacturer_id']])) { ?> error-field <?php } ?>
Can anyone give an example?
Tks

Free converted extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: iplocker, onoriotorti, zigzagzigzag and 93 guests