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

[Решено {неправильные комменирии в javascript}] при выпотому чторе вида "Сетка" - ничего не происходит


Lyan
 Share

Recommended Posts

Версия 1.5.4.1

Здравствуйте! Помогите пожалуйси разобраться.

При загрузке витрины товаров, по умолчанию товары отображаются в вигде "Список",а при выпотому чторе вида  "Сетка" - ничего не происходит.

Link to comment
Share on other sites


кривые руки гделают кривые комменирии в javascript

            <!-- html += '  <div class="cart">' + $(element).find('.cart').html() + '</div>';
            html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
            html += '  <div class="compare">' + $(element).find('.compare').html() + '</div>'; -->
Link to comment
Share on other sites

Там конструкция If{код}else{код}, убирайте код в двух месих (в javascript), и  в самом шаблоне. Т.е. если Вы убираете/изменяете какой липотому что элемент списка/сетки, то его необходимо изменять в двух месих.

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.