Jump to content
Sign in to follow this  
zava

Как вывести в категория модель товара?

Recommended Posts

Как вывести в категория модель товара? 

Share this post


Link to post
Share on other sites

не выводится и производителя и модель пробывал

Share this post


Link to post
Share on other sites

производителя так пробывал - открыть файл catalog/controller/product/category.php

найти в нем строчку
'description'=> mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES,'UTF-8')),0,100).'..',
и под ней вставить вашу
'manufacturer'=> $result['manufacturer'],
и сохранить

- открыть файл catalog/view/theme/ваша тема/template/product/category.tpl
найти в нем строчку
<divclass="cart"><a onclick="addToCart('<?php echo $product['product_id'];?>');" class="button"><span><?php echo $button_cart;?></span></a></div>
и над ней вставить вашу
<divclass="manufacturer"><?php echo $product['manufacturer'];?></div>

далее, найти строчку
html +=' <div class="description">'+ $(element).find('.description').html()+'</div>';
и под ней вставить вашу
html +=' <div class="manufacturer">'+ $(element).find('.manufacturer').html()+'</div>';

далее, найти строчку
html +='<div class="cart">'+ $(element).find('.cart').html()+'</div>';
и над ней вставить вашу
html +='<div class="manufacturer">'+ $(element).find('.manufacturer').html()+'</div>';

если все сделать правильно, на странице категории, надпись с производителем должна появиться и в "Списке" и в "Сетке"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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.