Jump to content

Recommended Posts

собственно сабж в заголовке:

опенкарт 2.3.0.8

в чем может быть ошибка- в контроллере catalog/controller/product/category.php добавляю

'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']),

в шаблон вставляю

<?php if ($product['attribute_groups']) { ?>
                    <div id="attribute">
                        <table class="attribute">
                            <?php foreach ($product['attribute_groups'] as $attribute_group) { ?>
                            <thead>
                            <tr>
                                <td colspan="2"><?php echo $attribute_group['name']; ?></td>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($attribute_group['attribute'] as $attribute) { ?>
                            <tr>
                                <td><?php echo $attribute['name']; ?></td>
                                <td><?php echo $attribute['text']; ?></td>
                            </tr>
                            <?php } ?>
                            </tbody>
                            <?php } ?>
                        </table>
                    </div>
<?php } ?>

куда копать чтоб заработало?

ЗЫ: аналогично делаю с опциями $options = $this->model_catalog_product->getProductOptions($result['product_id']); - та же беда

Share this post


Link to post
Share on other sites
7 минут назад, Shaer сказал:

опенкарт 2.3.0.8

А это от куда такая версия ?

 

Share this post


Link to post
Share on other sites

именно что решения для версии 1.5 не подходят для 2.3

даже путем замены $this->data на $data

Share this post


Link to post
Share on other sites

более того, ни

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

 

 

за подсказку спс, щас попробую

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.