Zaurius Posted April 8, 2015 Share Posted April 8, 2015 Всем доброе время суток. У меня такой вопрос. В моем магазине очень длинные описания для категорий (это важно) и смотрится по моему не красиво. Да, и вообще, предназначено это для профессиональных покупателей, а для обычных клиентов это описание обычно бывает не интересным. Так вот, хотел решить данную проблему методом отдельных страничек с подробным описанием и в категориях просто добавить ссылку на нее. Но потом подумал, это будет занимать место на базе, да и не хорошо перекидывать покупателя с одной страницы на другую и т.д. Потом пришла идея намного эффективная и удобная как для покупателей, так и для самих владельцев магазина. Так вот, идея заключается в том, чтобы сделать кнопку "подробнее" со сплывающим подвалом как на страничке оформления заказа. В редакторе текста, в админке добавить кнопку "скрытый текст" или "подробнее". На странице будет видна половина описания, а при нажатии на кнопку всплывет та часть которая скрыта. Сложно ли это сделать и если кто знает поделитесь своими знаниями. Так же какие у вас предложения и что посоветуете. Не будет ли это отражаться в работе магазина, какие могут возникнуть проблемы в общем, ну и т.д. Link to comment Share on other sites More sharing options...
Tom Posted April 8, 2015 Share Posted April 8, 2015 Самая лучшая идея,это скрыть часть описания под спойлер и открывать всё,по нажатию на Подробнее! Link to comment Share on other sites More sharing options... Zaurius Posted April 8, 2015 Author Share Posted April 8, 2015 Самая лучшая идея,это скрыть часть описания под спойлер и открывать всё,по нажатию на Подробнее! Это я и имел в виду ) Не подскажете как сделать? Думаю тема будет популярной, так как идея хорошая. Ну или хотя бы сделать дополнение и выставить на продажу, а мы купим. ) Link to comment Share on other sites More sharing options... Tom Posted April 8, 2015 Share Posted April 8, 2015 catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить <script type="text/javascript"><!-- $(document).ready(function() { if ($('.category-info')[0].scrollHeight > 165) { $(".category-info").after('<div id="obexpand" class="obertka"><button class="expand" type="button" id="expand"><span class="">Подробнее</span></button></div>'); $(".category-info").after('<div id="obhide" class="obertka" style="display:none;"><button class="expand" type="button" id="hide"><span class="">Закрыть</span></button></div>'); $('.category-info').append("<div class='hide'></div>"); }; }); $('#expand').live('click',function(){ $('#obexpand').css("display", "none"); $('.category-info').animate({height: $('.category-info')[0].scrollHeight}, 600); $('#obhide').css("display", "block"); $('.hide').css("display", "none"); }); $('#hide').live('click',function(){ $('#obhide').css("display", "none"); $('.category-info').animate({height: 165}, 600); $('#obexpand').css("display", "block"); $('.hide').css("display", "block"); }); //--></script> <style type="text/css"> .category-info { position:relative; height: 165px; overflow: hidden;} .hide { position:absolute; top:115px; width:100%; height:50px; background: url("catalog/view/theme/default/image/hide.png") repeat-x transparent; } .obertka { width: 100%; text-align: center; border-bottom: #ccc solid 1px; height: 8px; margin:0 auto; margin-bottom: 20px; } .expand { height: 18px; padding: 0 .9em; border-width: 1px; border-style: solid; outline: 0; font-weight: normal; font-size: 11px; white-space: nowrap; word-wrap: normal; vertical-align: middle; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background:white;} .expand:hover {border:#ccc solid 1px;background:#eee;} </style> Link to comment Share on other sites More sharing options... Zaurius Posted April 8, 2015 Author Share Posted April 8, 2015 Шикарно. Спасибо огромное. Выручили :) А с мультиязычность. кнопок как обычно делать да? Link to comment Share on other sites More sharing options... Tom Posted April 8, 2015 Share Posted April 8, 2015 Да. Link to comment Share on other sites More sharing options... 1 year later... Matt Posted December 15, 2016 Share Posted December 15, 2016 Да. Спасибо огромное! Link to comment Share on other sites More sharing options... 3 months later... Irenly Posted March 31, 2017 Share Posted March 31, 2017 Добрый день! Актуальна поднятая тема. Добавив указанный выше код, ничего не изменилось. В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить <script type="text/javascript"><!-- $(document).ready(function() { if ($('.category-info')[0].scrollHeight > 165) { $(".category-info").after('<div id="obexpand" class="obertka"><button class="expand" type="button" id="expand"><span class="">Подробнее</span></button></div>'); $(".category-info").after('<div id="obhide" class="obertka" style="display:none;"><button class="expand" type="button" id="hide"><span class="">Закрыть</span></button></div>'); $('.category-info').append("<div class='hide'></div>"); }; }); $('#expand').live('click',function(){ $('#obexpand').css("display", "none"); $('.category-info').animate({height: $('.category-info')[0].scrollHeight}, 600); $('#obhide').css("display", "block"); $('.hide').css("display", "none"); }); $('#hide').live('click',function(){ $('#obhide').css("display", "none"); $('.category-info').animate({height: 165}, 600); $('#obexpand').css("display", "block"); $('.hide').css("display", "block"); }); //--></script> <style type="text/css"> .category-info { position:relative; height: 165px; overflow: hidden;} .hide { position:absolute; top:115px; width:100%; height:50px; background: url("catalog/view/theme/default/image/hide.png") repeat-x transparent; } .obertka { width: 100%; text-align: center; border-bottom: #ccc solid 1px; height: 8px; margin:0 auto; margin-bottom: 20px; } .expand { height: 18px; padding: 0 .9em; border-width: 1px; border-style: solid; outline: 0; font-weight: normal; font-size: 11px; white-space: nowrap; word-wrap: normal; vertical-align: middle; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background:white;} .expand:hover {border:#ccc solid 1px;background:#eee;} </style> Link to comment Share on other sites More sharing options... Irenly Posted March 31, 2017 Share Posted March 31, 2017 Подскажите, пожалуйста, в чем может быть причина? Спасибо! Link to comment Share on other sites More sharing options... Tom Posted April 1, 2017 Share Posted April 1, 2017 В чём угодно.Без указания версии и ссылок на магазин. Link to comment Share on other sites More sharing options... 3 years later... Anril Posted April 9, 2020 Share Posted April 9, 2020 В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl Благодарю, помогло Link to comment Share on other sites More sharing options... 1 year later... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) Цитата catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить... Tom, не работает. ocStore-2.3.0.2.3, Coloring Theme https://teplopl.com.ua/otoplenie/kotly/ category.tpl Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... sasha3337774 Posted May 20, 2021 Share Posted May 20, 2021 @Zapuzin модификаторы обновляли? Link to comment Share on other sites More sharing options... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) 15 минут назад, sasha3337774 сказал: @Zapuzin модификаторы обновляли? Да. И еще удалял кеш Jet Cache, и обновлял кеш браузера (Яндекс) Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... ArtemPitov Posted May 20, 2021 Share Posted May 20, 2021 Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 2 Go to topic listing Similar Content Кнопка редактировать товар в карточке товара и категории OC3 By fedorenkostas, December 28, 2019 0 comments 2,349 views fedorenkostas December 28, 2019 Исправить баг с кнопкой Купить By Alexidi76, April 24 1 reply 220 views Instar April 24 Плавающая кнопка купить By jjoni, April 3 4 replies 293 views radaevich April 4 Не работает кнопка "в корзину" By pozharovigor, October 17, 2022 6 replies 400 views esunya April 3 Фильтр товаров без кнопки By andriy_gritsyuk, March 28 7 replies 162 views buslikdrev March 28 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Поддержка и ответы на вопросы Установка, обновление, настройка [HowTo] Кнопка "Подробнее" (спойлер) для категорий. Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Language Folders in URL (for ocStore 3.x) By SergeTkach HPMrr for OC 2.3/3 By kJlukOo OpenGram | Your store in Telegram By kevdev PDF Рахунок-фактура - Видаткова накладна - Гарантія (Українська) PRO By Speaker12 SAP - SMS / OTP By S_A_P × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare × 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. I accept
Zaurius Posted April 8, 2015 Author Share Posted April 8, 2015 Самая лучшая идея,это скрыть часть описания под спойлер и открывать всё,по нажатию на Подробнее! Это я и имел в виду ) Не подскажете как сделать? Думаю тема будет популярной, так как идея хорошая. Ну или хотя бы сделать дополнение и выставить на продажу, а мы купим. ) Link to comment Share on other sites More sharing options...
Tom Posted April 8, 2015 Share Posted April 8, 2015 catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить <script type="text/javascript"><!-- $(document).ready(function() { if ($('.category-info')[0].scrollHeight > 165) { $(".category-info").after('<div id="obexpand" class="obertka"><button class="expand" type="button" id="expand"><span class="">Подробнее</span></button></div>'); $(".category-info").after('<div id="obhide" class="obertka" style="display:none;"><button class="expand" type="button" id="hide"><span class="">Закрыть</span></button></div>'); $('.category-info').append("<div class='hide'></div>"); }; }); $('#expand').live('click',function(){ $('#obexpand').css("display", "none"); $('.category-info').animate({height: $('.category-info')[0].scrollHeight}, 600); $('#obhide').css("display", "block"); $('.hide').css("display", "none"); }); $('#hide').live('click',function(){ $('#obhide').css("display", "none"); $('.category-info').animate({height: 165}, 600); $('#obexpand').css("display", "block"); $('.hide').css("display", "block"); }); //--></script> <style type="text/css"> .category-info { position:relative; height: 165px; overflow: hidden;} .hide { position:absolute; top:115px; width:100%; height:50px; background: url("catalog/view/theme/default/image/hide.png") repeat-x transparent; } .obertka { width: 100%; text-align: center; border-bottom: #ccc solid 1px; height: 8px; margin:0 auto; margin-bottom: 20px; } .expand { height: 18px; padding: 0 .9em; border-width: 1px; border-style: solid; outline: 0; font-weight: normal; font-size: 11px; white-space: nowrap; word-wrap: normal; vertical-align: middle; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background:white;} .expand:hover {border:#ccc solid 1px;background:#eee;} </style> Link to comment Share on other sites More sharing options... Zaurius Posted April 8, 2015 Author Share Posted April 8, 2015 Шикарно. Спасибо огромное. Выручили :) А с мультиязычность. кнопок как обычно делать да? Link to comment Share on other sites More sharing options... Tom Posted April 8, 2015 Share Posted April 8, 2015 Да. Link to comment Share on other sites More sharing options... 1 year later... Matt Posted December 15, 2016 Share Posted December 15, 2016 Да. Спасибо огромное! Link to comment Share on other sites More sharing options... 3 months later... Irenly Posted March 31, 2017 Share Posted March 31, 2017 Добрый день! Актуальна поднятая тема. Добавив указанный выше код, ничего не изменилось. В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить <script type="text/javascript"><!-- $(document).ready(function() { if ($('.category-info')[0].scrollHeight > 165) { $(".category-info").after('<div id="obexpand" class="obertka"><button class="expand" type="button" id="expand"><span class="">Подробнее</span></button></div>'); $(".category-info").after('<div id="obhide" class="obertka" style="display:none;"><button class="expand" type="button" id="hide"><span class="">Закрыть</span></button></div>'); $('.category-info').append("<div class='hide'></div>"); }; }); $('#expand').live('click',function(){ $('#obexpand').css("display", "none"); $('.category-info').animate({height: $('.category-info')[0].scrollHeight}, 600); $('#obhide').css("display", "block"); $('.hide').css("display", "none"); }); $('#hide').live('click',function(){ $('#obhide').css("display", "none"); $('.category-info').animate({height: 165}, 600); $('#obexpand').css("display", "block"); $('.hide').css("display", "block"); }); //--></script> <style type="text/css"> .category-info { position:relative; height: 165px; overflow: hidden;} .hide { position:absolute; top:115px; width:100%; height:50px; background: url("catalog/view/theme/default/image/hide.png") repeat-x transparent; } .obertka { width: 100%; text-align: center; border-bottom: #ccc solid 1px; height: 8px; margin:0 auto; margin-bottom: 20px; } .expand { height: 18px; padding: 0 .9em; border-width: 1px; border-style: solid; outline: 0; font-weight: normal; font-size: 11px; white-space: nowrap; word-wrap: normal; vertical-align: middle; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background:white;} .expand:hover {border:#ccc solid 1px;background:#eee;} </style> Link to comment Share on other sites More sharing options... Irenly Posted March 31, 2017 Share Posted March 31, 2017 Подскажите, пожалуйста, в чем может быть причина? Спасибо! Link to comment Share on other sites More sharing options... Tom Posted April 1, 2017 Share Posted April 1, 2017 В чём угодно.Без указания версии и ссылок на магазин. Link to comment Share on other sites More sharing options... 3 years later... Anril Posted April 9, 2020 Share Posted April 9, 2020 В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl Благодарю, помогло Link to comment Share on other sites More sharing options... 1 year later... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) Цитата catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить... Tom, не работает. ocStore-2.3.0.2.3, Coloring Theme https://teplopl.com.ua/otoplenie/kotly/ category.tpl Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... sasha3337774 Posted May 20, 2021 Share Posted May 20, 2021 @Zapuzin модификаторы обновляли? Link to comment Share on other sites More sharing options... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) 15 минут назад, sasha3337774 сказал: @Zapuzin модификаторы обновляли? Да. И еще удалял кеш Jet Cache, и обновлял кеш браузера (Яндекс) Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... ArtemPitov Posted May 20, 2021 Share Posted May 20, 2021 Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 2 Go to topic listing Similar Content Кнопка редактировать товар в карточке товара и категории OC3 By fedorenkostas, December 28, 2019 0 comments 2,349 views fedorenkostas December 28, 2019 Исправить баг с кнопкой Купить By Alexidi76, April 24 1 reply 220 views Instar April 24 Плавающая кнопка купить By jjoni, April 3 4 replies 293 views radaevich April 4 Не работает кнопка "в корзину" By pozharovigor, October 17, 2022 6 replies 400 views esunya April 3 Фильтр товаров без кнопки By andriy_gritsyuk, March 28 7 replies 162 views buslikdrev March 28 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Поддержка и ответы на вопросы Установка, обновление, настройка [HowTo] Кнопка "Подробнее" (спойлер) для категорий. Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Language Folders in URL (for ocStore 3.x) By SergeTkach HPMrr for OC 2.3/3 By kJlukOo OpenGram | Your store in Telegram By kevdev PDF Рахунок-фактура - Видаткова накладна - Гарантія (Українська) PRO By Speaker12 SAP - SMS / OTP By S_A_P × Existing user? Sign In Sign Up Shopping section Back Purchased extensions Invoices Whishlist Alternative Contacts Forums News ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare × 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. I accept
Zaurius Posted April 8, 2015 Author Share Posted April 8, 2015 Шикарно. Спасибо огромное. Выручили :) А с мультиязычность. кнопок как обычно делать да? Link to comment Share on other sites More sharing options...
Tom Posted April 8, 2015 Share Posted April 8, 2015 Да. Link to comment Share on other sites More sharing options... 1 year later... Matt Posted December 15, 2016 Share Posted December 15, 2016 Да. Спасибо огромное! Link to comment Share on other sites More sharing options... 3 months later... Irenly Posted March 31, 2017 Share Posted March 31, 2017 Добрый день! Актуальна поднятая тема. Добавив указанный выше код, ничего не изменилось. В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить <script type="text/javascript"><!-- $(document).ready(function() { if ($('.category-info')[0].scrollHeight > 165) { $(".category-info").after('<div id="obexpand" class="obertka"><button class="expand" type="button" id="expand"><span class="">Подробнее</span></button></div>'); $(".category-info").after('<div id="obhide" class="obertka" style="display:none;"><button class="expand" type="button" id="hide"><span class="">Закрыть</span></button></div>'); $('.category-info').append("<div class='hide'></div>"); }; }); $('#expand').live('click',function(){ $('#obexpand').css("display", "none"); $('.category-info').animate({height: $('.category-info')[0].scrollHeight}, 600); $('#obhide').css("display", "block"); $('.hide').css("display", "none"); }); $('#hide').live('click',function(){ $('#obhide').css("display", "none"); $('.category-info').animate({height: 165}, 600); $('#obexpand').css("display", "block"); $('.hide').css("display", "block"); }); //--></script> <style type="text/css"> .category-info { position:relative; height: 165px; overflow: hidden;} .hide { position:absolute; top:115px; width:100%; height:50px; background: url("catalog/view/theme/default/image/hide.png") repeat-x transparent; } .obertka { width: 100%; text-align: center; border-bottom: #ccc solid 1px; height: 8px; margin:0 auto; margin-bottom: 20px; } .expand { height: 18px; padding: 0 .9em; border-width: 1px; border-style: solid; outline: 0; font-weight: normal; font-size: 11px; white-space: nowrap; word-wrap: normal; vertical-align: middle; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background:white;} .expand:hover {border:#ccc solid 1px;background:#eee;} </style> Link to comment Share on other sites More sharing options... Irenly Posted March 31, 2017 Share Posted March 31, 2017 Подскажите, пожалуйста, в чем может быть причина? Спасибо! Link to comment Share on other sites More sharing options... Tom Posted April 1, 2017 Share Posted April 1, 2017 В чём угодно.Без указания версии и ссылок на магазин. Link to comment Share on other sites More sharing options... 3 years later... Anril Posted April 9, 2020 Share Posted April 9, 2020 В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl Благодарю, помогло Link to comment Share on other sites More sharing options... 1 year later... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) Цитата catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить... Tom, не работает. ocStore-2.3.0.2.3, Coloring Theme https://teplopl.com.ua/otoplenie/kotly/ category.tpl Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... sasha3337774 Posted May 20, 2021 Share Posted May 20, 2021 @Zapuzin модификаторы обновляли? Link to comment Share on other sites More sharing options... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) 15 минут назад, sasha3337774 сказал: @Zapuzin модификаторы обновляли? Да. И еще удалял кеш Jet Cache, и обновлял кеш браузера (Яндекс) Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... ArtemPitov Posted May 20, 2021 Share Posted May 20, 2021 Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 2 Go to topic listing Similar Content Кнопка редактировать товар в карточке товара и категории OC3 By fedorenkostas, December 28, 2019 0 comments 2,349 views fedorenkostas December 28, 2019 Исправить баг с кнопкой Купить By Alexidi76, April 24 1 reply 220 views Instar April 24 Плавающая кнопка купить By jjoni, April 3 4 replies 293 views radaevich April 4 Не работает кнопка "в корзину" By pozharovigor, October 17, 2022 6 replies 400 views esunya April 3 Фильтр товаров без кнопки By andriy_gritsyuk, March 28 7 replies 162 views buslikdrev March 28 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Поддержка и ответы на вопросы Установка, обновление, настройка [HowTo] Кнопка "Подробнее" (спойлер) для категорий. Покупателям Оплата дополнений физическими лицами Оплата дополнений юридическими лицами Политика возвратов Разработчикам Регламент размещения дополнений Регламент продаж и поддержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каталога дополнений Урегулирование споров по авторским правам Полезная информация Публичная оферта Политика возвратов Политика конфиденциальности Платежная политика Политика Передачи Персональных Данных Политика прозрачности Последние дополнения Language Folders in URL (for ocStore 3.x) By SergeTkach HPMrr for OC 2.3/3 By kJlukOo OpenGram | Your store in Telegram By kevdev PDF Рахунок-фактура - Видаткова накладна - Гарантія (Українська) PRO By Speaker12 SAP - SMS / OTP By S_A_P
Matt Posted December 15, 2016 Share Posted December 15, 2016 Да. Спасибо огромное! Link to comment Share on other sites More sharing options...
Irenly Posted March 31, 2017 Share Posted March 31, 2017 Добрый день! Актуальна поднятая тема. Добавив указанный выше код, ничего не изменилось. В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить <script type="text/javascript"><!-- $(document).ready(function() { if ($('.category-info')[0].scrollHeight > 165) { $(".category-info").after('<div id="obexpand" class="obertka"><button class="expand" type="button" id="expand"><span class="">Подробнее</span></button></div>'); $(".category-info").after('<div id="obhide" class="obertka" style="display:none;"><button class="expand" type="button" id="hide"><span class="">Закрыть</span></button></div>'); $('.category-info').append("<div class='hide'></div>"); }; }); $('#expand').live('click',function(){ $('#obexpand').css("display", "none"); $('.category-info').animate({height: $('.category-info')[0].scrollHeight}, 600); $('#obhide').css("display", "block"); $('.hide').css("display", "none"); }); $('#hide').live('click',function(){ $('#obhide').css("display", "none"); $('.category-info').animate({height: 165}, 600); $('#obexpand').css("display", "block"); $('.hide').css("display", "block"); }); //--></script> <style type="text/css"> .category-info { position:relative; height: 165px; overflow: hidden;} .hide { position:absolute; top:115px; width:100%; height:50px; background: url("catalog/view/theme/default/image/hide.png") repeat-x transparent; } .obertka { width: 100%; text-align: center; border-bottom: #ccc solid 1px; height: 8px; margin:0 auto; margin-bottom: 20px; } .expand { height: 18px; padding: 0 .9em; border-width: 1px; border-style: solid; outline: 0; font-weight: normal; font-size: 11px; white-space: nowrap; word-wrap: normal; vertical-align: middle; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; background:white;} .expand:hover {border:#ccc solid 1px;background:#eee;} </style> Link to comment Share on other sites More sharing options...
Irenly Posted March 31, 2017 Share Posted March 31, 2017 Подскажите, пожалуйста, в чем может быть причина? Спасибо! Link to comment Share on other sites More sharing options...
Tom Posted April 1, 2017 Share Posted April 1, 2017 В чём угодно.Без указания версии и ссылок на магазин. Link to comment Share on other sites More sharing options... 3 years later... Anril Posted April 9, 2020 Share Posted April 9, 2020 В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl Благодарю, помогло Link to comment Share on other sites More sharing options... 1 year later... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) Цитата catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить... Tom, не работает. ocStore-2.3.0.2.3, Coloring Theme https://teplopl.com.ua/otoplenie/kotly/ category.tpl Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... sasha3337774 Posted May 20, 2021 Share Posted May 20, 2021 @Zapuzin модификаторы обновляли? Link to comment Share on other sites More sharing options... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) 15 минут назад, sasha3337774 сказал: @Zapuzin модификаторы обновляли? Да. И еще удалял кеш Jet Cache, и обновлял кеш браузера (Яндекс) Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... ArtemPitov Posted May 20, 2021 Share Posted May 20, 2021 Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 2 Go to topic listing Similar Content Кнопка редактировать товар в карточке товара и категории OC3 By fedorenkostas, December 28, 2019 0 comments 2,349 views fedorenkostas December 28, 2019 Исправить баг с кнопкой Купить By Alexidi76, April 24 1 reply 220 views Instar April 24 Плавающая кнопка купить By jjoni, April 3 4 replies 293 views radaevich April 4 Не работает кнопка "в корзину" By pozharovigor, October 17, 2022 6 replies 400 views esunya April 3 Фильтр товаров без кнопки By andriy_gritsyuk, March 28 7 replies 162 views buslikdrev March 28 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Поддержка и ответы на вопросы Установка, обновление, настройка [HowTo] Кнопка "Подробнее" (спойлер) для категорий.
Anril Posted April 9, 2020 Share Posted April 9, 2020 В 08.04.2015 в 13:30, Tom сказал: catalog\view\theme\шаблон\template\product\category.tpl Благодарю, помогло Link to comment Share on other sites More sharing options...
Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) Цитата catalog\view\theme\шаблон\template\product\category.tpl перед <?php echo $footer; ?> добавить... Tom, не работает. ocStore-2.3.0.2.3, Coloring Theme https://teplopl.com.ua/otoplenie/kotly/ category.tpl Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options...
sasha3337774 Posted May 20, 2021 Share Posted May 20, 2021 @Zapuzin модификаторы обновляли? Link to comment Share on other sites More sharing options... Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) 15 минут назад, sasha3337774 сказал: @Zapuzin модификаторы обновляли? Да. И еще удалял кеш Jet Cache, и обновлял кеш браузера (Яндекс) Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options... ArtemPitov Posted May 20, 2021 Share Posted May 20, 2021 Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 2 Go to topic listing Similar Content Кнопка редактировать товар в карточке товара и категории OC3 By fedorenkostas, December 28, 2019 0 comments 2,349 views fedorenkostas December 28, 2019 Исправить баг с кнопкой Купить By Alexidi76, April 24 1 reply 220 views Instar April 24 Плавающая кнопка купить By jjoni, April 3 4 replies 293 views radaevich April 4 Не работает кнопка "в корзину" By pozharovigor, October 17, 2022 6 replies 400 views esunya April 3 Фильтр товаров без кнопки By andriy_gritsyuk, March 28 7 replies 162 views buslikdrev March 28 Recently Browsing 0 members No registered users viewing this page.
Zapuzin Posted May 20, 2021 Share Posted May 20, 2021 (edited) 15 минут назад, sasha3337774 сказал: @Zapuzin модификаторы обновляли? Да. И еще удалял кеш Jet Cache, и обновлял кеш браузера (Яндекс) Edited May 20, 2021 by Zapuzin Link to comment Share on other sites More sharing options...
ArtemPitov Posted May 20, 2021 Share Posted May 20, 2021 Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 2
Recommended Posts