Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Как вывести атрибуты в модулях (на пример в latest) ?


 Share

Recommended Posts

Во второй ветке куча инфы как вывести
Для третьей не могу ничего найти путного
Кто гделал, подскажите как вывести атрибуиы в модули

Спасипотому что

Link to comment
Share on other sites


2 часа назад, annnn сказал:

Кто гделал, подскажите как вывести атрибуиы в модули

В контроллере модуля полулить атрибуты, потом поместить их в дату. В макете потом вывести в нужном месте. В частности для latest можно вот ик. 

Спойлер
<operation>
            <search index="0">
                <![CDATA[$data['products'][] = array(]]>
            </search>
            <add position="before">
                $attribute_groups = $this->model_catalog_product->getProductAttributes($result['product_id']);
            </add>
        </operation>
       <operation>
            <search index="0">
                <![CDATA[$data['products'][] = array(]]>
            </search>
            <add position="after">
                'attribute_groups' => $attribute_groups,
            </add>
        </operation>

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.