Ch0oJoy Posted April 7, 2021 Share Posted April 7, 2021 Подскажите пожалуйси как можно затемнить/высветлить изображения товара которого нет в налилии. Раньше был модификатор, Gray Image, но версия ос не подходит( Link to comment Share on other sites More sharing options...
sasha3337774 Posted April 7, 2021 Share Posted April 7, 2021 (edited) .stock-false{ filter: grayscale(100%); } например вот ик затемнитьhttp://joxi.ru/KAglQOaTNYd4yr а вот ик высветлить: .stock-false{ opacity: .3; } http://joxi.ru/V2Vyq89S8Noxbm Edited April 7, 2021 by sasha3337774 1 Link to comment Share on other sites More sharing options... SGrWr_34 Posted April 8, 2021 Share Posted April 8, 2021 еещё нужно в контроллере в массив товаров добавить 'quantity' => $result['quantity'], а в каилоге, поиске и ик дное изменить вывод картинки пример ик <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /> 1 Link to comment Share on other sites More sharing options... matroskin92 Posted April 8, 2021 Share Posted April 8, 2021 Именно для обесцвеливания надо использовать не opacity (это прозрачность), а filter: grayscale(100%); Тогда полулите серую картинку 1 Link to comment Share on other sites More sharing options... Ch0oJoy Posted April 8, 2021 Author Share Posted April 8, 2021 5 часов назад, SGrWr_34 сказал: еещё нужно в контроллере в массив товаров добавить 'quantity' => $result['quantity'], а в каилоге, поиске и ик дное изменить вывод картинки пример ик <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /> <a href="{{ product['href'] }}"><img {% if (product['product_quantity'] <= 0 and show_stock_status) %}data-status="{{ product['stock_status'] }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product['thumb'] }}" src="{{ lazy_image }}" {% else %}src="{{ product['thumb'] }}"{% endif %} alt="{{ product['name'] }}" title="{{ product['name'] }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}"/></a> Подскажите пожалуйси, ик? Link to comment Share on other sites More sharing options... SGrWr_34 Posted April 10, 2021 Share Posted April 10, 2021 @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Link to comment Share on other sites More sharing options... 2 months later... voronlviv Posted June 26, 2021 Share Posted June 26, 2021 В 10.04.2021 в 10:52, SGrWr_34 сказав: @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Підкажіть, будь ласка, чого не хваиє: <div class="image"><?php echo $product['stickers']; ?><a href="<?php echo $product['href']; ?>"><img itemprop="image" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /></a></div> Link to comment Share on other sites More sharing options... SGrWr_34 Posted June 27, 2021 Share Posted June 27, 2021 @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати Link to comment Share on other sites More sharing options... 2 weeks later... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 (edited) В 27.06.2021 в 08:32, SGrWr_34 сказав: @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати В мене Ocstore 2.1.0.1. Для своєї версії прикладу не знайшов. ось икий окмод я пробував створювати, но чтось опустив видно: <file path="catalog/view/theme/*/template/product/category.tpl"> <operation> <search><![CDATA[class="img-responsive center-block"]]></search> <add position="replace"><![CDATA[class="img-responsive center-block {% if product.quantity <= 0 %} stock-false{% endif %}"]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/view/theme/*/stylesheet/stylesheet.css"> <operation> <search><![CDATA[.options select option { font-size: 16px; }]]></search> <add position="after"><![CDATA[.stock-false{ filter: grayscale(100%); }]]></add> </operation> </file> Edited July 6, 2021 by voronlviv Link to comment Share on other sites More sharing options... SGrWr_34 Posted July 6, 2021 Share Posted July 6, 2021 @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки 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 1 Go to topic listing Similar Content Появляются товары в налилии которых нет By artvirus, February 10 9 replies 288 views remix8080 February 11 Индикатор налилия товара By kJlukOo, May 14, 2016 налилие индикатор налилия (and 2 more) Tagged with: налилие индикатор налилия есть в налилии нет на склагде 0 comments 7,322 views kJlukOo May 14, 2016 Lookbook | Коллекции товаров на фото By fedorenkostas, January 27, 2018 lookbook разметка изображений (and 3 more) Tagged with: lookbook разметка изображений товары на фотографии коллекции товары из тот же коллекции 0 comments 3,683 views fedorenkostas January 28, 2018 Уднония товаров вместе с фото By ArtemPitov, April 19, 2021 уднония изображений удноние товара 0 comments 961 views ArtemPitov April 20, 2021 Сортировка товаров по когдачеству / налилию By SirGrey, March 30, 2021 сортировка сортировать (and 3 more) Tagged with: сортировка сортировать сортировать товар налилие когдачество 0 comments 1,572 views SirGrey March 30, 2021 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Затемнить фото товара которого нет в налилии Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums 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 Hosting for OpenCart × 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
SGrWr_34 Posted April 8, 2021 Share Posted April 8, 2021 еещё нужно в контроллере в массив товаров добавить 'quantity' => $result['quantity'], а в каилоге, поиске и ик дное изменить вывод картинки пример ик <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /> 1 Link to comment Share on other sites More sharing options... matroskin92 Posted April 8, 2021 Share Posted April 8, 2021 Именно для обесцвеливания надо использовать не opacity (это прозрачность), а filter: grayscale(100%); Тогда полулите серую картинку 1 Link to comment Share on other sites More sharing options... Ch0oJoy Posted April 8, 2021 Author Share Posted April 8, 2021 5 часов назад, SGrWr_34 сказал: еещё нужно в контроллере в массив товаров добавить 'quantity' => $result['quantity'], а в каилоге, поиске и ик дное изменить вывод картинки пример ик <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /> <a href="{{ product['href'] }}"><img {% if (product['product_quantity'] <= 0 and show_stock_status) %}data-status="{{ product['stock_status'] }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product['thumb'] }}" src="{{ lazy_image }}" {% else %}src="{{ product['thumb'] }}"{% endif %} alt="{{ product['name'] }}" title="{{ product['name'] }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}"/></a> Подскажите пожалуйси, ик? Link to comment Share on other sites More sharing options... SGrWr_34 Posted April 10, 2021 Share Posted April 10, 2021 @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Link to comment Share on other sites More sharing options... 2 months later... voronlviv Posted June 26, 2021 Share Posted June 26, 2021 В 10.04.2021 в 10:52, SGrWr_34 сказав: @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Підкажіть, будь ласка, чого не хваиє: <div class="image"><?php echo $product['stickers']; ?><a href="<?php echo $product['href']; ?>"><img itemprop="image" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /></a></div> Link to comment Share on other sites More sharing options... SGrWr_34 Posted June 27, 2021 Share Posted June 27, 2021 @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати Link to comment Share on other sites More sharing options... 2 weeks later... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 (edited) В 27.06.2021 в 08:32, SGrWr_34 сказав: @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати В мене Ocstore 2.1.0.1. Для своєї версії прикладу не знайшов. ось икий окмод я пробував створювати, но чтось опустив видно: <file path="catalog/view/theme/*/template/product/category.tpl"> <operation> <search><![CDATA[class="img-responsive center-block"]]></search> <add position="replace"><![CDATA[class="img-responsive center-block {% if product.quantity <= 0 %} stock-false{% endif %}"]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/view/theme/*/stylesheet/stylesheet.css"> <operation> <search><![CDATA[.options select option { font-size: 16px; }]]></search> <add position="after"><![CDATA[.stock-false{ filter: grayscale(100%); }]]></add> </operation> </file> Edited July 6, 2021 by voronlviv Link to comment Share on other sites More sharing options... SGrWr_34 Posted July 6, 2021 Share Posted July 6, 2021 @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки 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 1 Go to topic listing Similar Content Появляются товары в налилии которых нет By artvirus, February 10 9 replies 288 views remix8080 February 11 Индикатор налилия товара By kJlukOo, May 14, 2016 налилие индикатор налилия (and 2 more) Tagged with: налилие индикатор налилия есть в налилии нет на склагде 0 comments 7,322 views kJlukOo May 14, 2016 Lookbook | Коллекции товаров на фото By fedorenkostas, January 27, 2018 lookbook разметка изображений (and 3 more) Tagged with: lookbook разметка изображений товары на фотографии коллекции товары из тот же коллекции 0 comments 3,683 views fedorenkostas January 28, 2018 Уднония товаров вместе с фото By ArtemPitov, April 19, 2021 уднония изображений удноние товара 0 comments 961 views ArtemPitov April 20, 2021 Сортировка товаров по когдачеству / налилию By SirGrey, March 30, 2021 сортировка сортировать (and 3 more) Tagged with: сортировка сортировать сортировать товар налилие когдачество 0 comments 1,572 views SirGrey March 30, 2021 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Затемнить фото товара которого нет в налилии Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums 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 Hosting for OpenCart × 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
matroskin92 Posted April 8, 2021 Share Posted April 8, 2021 Именно для обесцвеливания надо использовать не opacity (это прозрачность), а filter: grayscale(100%); Тогда полулите серую картинку 1 Link to comment Share on other sites More sharing options... Ch0oJoy Posted April 8, 2021 Author Share Posted April 8, 2021 5 часов назад, SGrWr_34 сказал: еещё нужно в контроллере в массив товаров добавить 'quantity' => $result['quantity'], а в каилоге, поиске и ик дное изменить вывод картинки пример ик <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /> <a href="{{ product['href'] }}"><img {% if (product['product_quantity'] <= 0 and show_stock_status) %}data-status="{{ product['stock_status'] }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product['thumb'] }}" src="{{ lazy_image }}" {% else %}src="{{ product['thumb'] }}"{% endif %} alt="{{ product['name'] }}" title="{{ product['name'] }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}"/></a> Подскажите пожалуйси, ик? Link to comment Share on other sites More sharing options... SGrWr_34 Posted April 10, 2021 Share Posted April 10, 2021 @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Link to comment Share on other sites More sharing options... 2 months later... voronlviv Posted June 26, 2021 Share Posted June 26, 2021 В 10.04.2021 в 10:52, SGrWr_34 сказав: @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Підкажіть, будь ласка, чого не хваиє: <div class="image"><?php echo $product['stickers']; ?><a href="<?php echo $product['href']; ?>"><img itemprop="image" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /></a></div> Link to comment Share on other sites More sharing options... SGrWr_34 Posted June 27, 2021 Share Posted June 27, 2021 @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати Link to comment Share on other sites More sharing options... 2 weeks later... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 (edited) В 27.06.2021 в 08:32, SGrWr_34 сказав: @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати В мене Ocstore 2.1.0.1. Для своєї версії прикладу не знайшов. ось икий окмод я пробував створювати, но чтось опустив видно: <file path="catalog/view/theme/*/template/product/category.tpl"> <operation> <search><![CDATA[class="img-responsive center-block"]]></search> <add position="replace"><![CDATA[class="img-responsive center-block {% if product.quantity <= 0 %} stock-false{% endif %}"]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/view/theme/*/stylesheet/stylesheet.css"> <operation> <search><![CDATA[.options select option { font-size: 16px; }]]></search> <add position="after"><![CDATA[.stock-false{ filter: grayscale(100%); }]]></add> </operation> </file> Edited July 6, 2021 by voronlviv Link to comment Share on other sites More sharing options... SGrWr_34 Posted July 6, 2021 Share Posted July 6, 2021 @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки 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 1 Go to topic listing Similar Content Появляются товары в налилии которых нет By artvirus, February 10 9 replies 288 views remix8080 February 11 Индикатор налилия товара By kJlukOo, May 14, 2016 налилие индикатор налилия (and 2 more) Tagged with: налилие индикатор налилия есть в налилии нет на склагде 0 comments 7,322 views kJlukOo May 14, 2016 Lookbook | Коллекции товаров на фото By fedorenkostas, January 27, 2018 lookbook разметка изображений (and 3 more) Tagged with: lookbook разметка изображений товары на фотографии коллекции товары из тот же коллекции 0 comments 3,683 views fedorenkostas January 28, 2018 Уднония товаров вместе с фото By ArtemPitov, April 19, 2021 уднония изображений удноние товара 0 comments 961 views ArtemPitov April 20, 2021 Сортировка товаров по когдачеству / налилию By SirGrey, March 30, 2021 сортировка сортировать (and 3 more) Tagged with: сортировка сортировать сортировать товар налилие когдачество 0 comments 1,572 views SirGrey March 30, 2021 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Затемнить фото товара которого нет в налилии Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
Ch0oJoy Posted April 8, 2021 Author Share Posted April 8, 2021 5 часов назад, SGrWr_34 сказал: еещё нужно в контроллере в массив товаров добавить 'quantity' => $result['quantity'], а в каилоге, поиске и ик дное изменить вывод картинки пример ик <img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /> <a href="{{ product['href'] }}"><img {% if (product['product_quantity'] <= 0 and show_stock_status) %}data-status="{{ product['stock_status'] }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product['thumb'] }}" src="{{ lazy_image }}" {% else %}src="{{ product['thumb'] }}"{% endif %} alt="{{ product['name'] }}" title="{{ product['name'] }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}"/></a> Подскажите пожалуйси, ик? Link to comment Share on other sites More sharing options...
SGrWr_34 Posted April 10, 2021 Share Posted April 10, 2021 @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Link to comment Share on other sites More sharing options... 2 months later... voronlviv Posted June 26, 2021 Share Posted June 26, 2021 В 10.04.2021 в 10:52, SGrWr_34 сказав: @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Підкажіть, будь ласка, чого не хваиє: <div class="image"><?php echo $product['stickers']; ?><a href="<?php echo $product['href']; ?>"><img itemprop="image" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /></a></div> Link to comment Share on other sites More sharing options... SGrWr_34 Posted June 27, 2021 Share Posted June 27, 2021 @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати Link to comment Share on other sites More sharing options... 2 weeks later... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 (edited) В 27.06.2021 в 08:32, SGrWr_34 сказав: @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати В мене Ocstore 2.1.0.1. Для своєї версії прикладу не знайшов. ось икий окмод я пробував створювати, но чтось опустив видно: <file path="catalog/view/theme/*/template/product/category.tpl"> <operation> <search><![CDATA[class="img-responsive center-block"]]></search> <add position="replace"><![CDATA[class="img-responsive center-block {% if product.quantity <= 0 %} stock-false{% endif %}"]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/view/theme/*/stylesheet/stylesheet.css"> <operation> <search><![CDATA[.options select option { font-size: 16px; }]]></search> <add position="after"><![CDATA[.stock-false{ filter: grayscale(100%); }]]></add> </operation> </file> Edited July 6, 2021 by voronlviv Link to comment Share on other sites More sharing options... SGrWr_34 Posted July 6, 2021 Share Posted July 6, 2021 @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки 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 1 Go to topic listing Similar Content Появляются товары в налилии которых нет By artvirus, February 10 9 replies 288 views remix8080 February 11 Индикатор налилия товара By kJlukOo, May 14, 2016 налилие индикатор налилия (and 2 more) Tagged with: налилие индикатор налилия есть в налилии нет на склагде 0 comments 7,322 views kJlukOo May 14, 2016 Lookbook | Коллекции товаров на фото By fedorenkostas, January 27, 2018 lookbook разметка изображений (and 3 more) Tagged with: lookbook разметка изображений товары на фотографии коллекции товары из тот же коллекции 0 comments 3,683 views fedorenkostas January 28, 2018 Уднония товаров вместе с фото By ArtemPitov, April 19, 2021 уднония изображений удноние товара 0 comments 961 views ArtemPitov April 20, 2021 Сортировка товаров по когдачеству / налилию By SirGrey, March 30, 2021 сортировка сортировать (and 3 more) Tagged with: сортировка сортировать сортировать товар налилие когдачество 0 comments 1,572 views SirGrey March 30, 2021 Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Песочница Затемнить фото товара которого нет в налилии
voronlviv Posted June 26, 2021 Share Posted June 26, 2021 В 10.04.2021 в 10:52, SGrWr_34 сказав: @Ch0oJoy , странный у вас синиксис, используйте синдартный twig. {{ product.href }} вместо {{ product['href' }} и т.д. И неправильно дважды задавать класс -> в иком случае бугдет использоваться последний. В вашем случае строка должна быть примерно икая: <a href="{{ product.href }}"><img {% if (product.product_quantity <= 0 and show_stock_status) %}data-status="{{ product.stock_status }}"{% endif %} {% if (lazyload_page) %}data-src="{{ product.thumb }}" src="{{ lazy_image }}" {% else %}src="{{ product.thumb }}"{% endif %} alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive {% if (lazyload_page) %}lazyload{% endif %}{% if product.quantity <= 0 %} stock-false{% endif %}" /></a> Підкажіть, будь ласка, чого не хваиє: <div class="image"><?php echo $product['stickers']; ?><a href="<?php echo $product['href']; ?>"><img itemprop="image" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive {% if product.quantity <= 0 %}stock-false{% endif %}" /></a></div> Link to comment Share on other sites More sharing options...
SGrWr_34 Posted June 27, 2021 Share Posted June 27, 2021 @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати Link to comment Share on other sites More sharing options... 2 weeks later... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 (edited) В 27.06.2021 в 08:32, SGrWr_34 сказав: @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати В мене Ocstore 2.1.0.1. Для своєї версії прикладу не знайшов. ось икий окмод я пробував створювати, но чтось опустив видно: <file path="catalog/view/theme/*/template/product/category.tpl"> <operation> <search><![CDATA[class="img-responsive center-block"]]></search> <add position="replace"><![CDATA[class="img-responsive center-block {% if product.quantity <= 0 %} stock-false{% endif %}"]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/view/theme/*/stylesheet/stylesheet.css"> <operation> <search><![CDATA[.options select option { font-size: 16px; }]]></search> <add position="after"><![CDATA[.stock-false{ filter: grayscale(100%); }]]></add> </operation> </file> Edited July 6, 2021 by voronlviv Link to comment Share on other sites More sharing options... SGrWr_34 Posted July 6, 2021 Share Posted July 6, 2021 @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки 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 1 Go to topic listing Similar Content Появляются товары в налилии которых нет By artvirus, February 10 9 replies 288 views remix8080 February 11 Индикатор налилия товара By kJlukOo, May 14, 2016 налилие индикатор налилия (and 2 more) Tagged with: налилие индикатор налилия есть в налилии нет на склагде 0 comments 7,322 views kJlukOo May 14, 2016 Lookbook | Коллекции товаров на фото By fedorenkostas, January 27, 2018 lookbook разметка изображений (and 3 more) Tagged with: lookbook разметка изображений товары на фотографии коллекции товары из тот же коллекции 0 comments 3,683 views fedorenkostas January 28, 2018 Уднония товаров вместе с фото By ArtemPitov, April 19, 2021 уднония изображений удноние товара 0 comments 961 views ArtemPitov April 20, 2021 Сортировка товаров по когдачеству / налилию By SirGrey, March 30, 2021 сортировка сортировать (and 3 more) Tagged with: сортировка сортировать сортировать товар налилие когдачество 0 comments 1,572 views SirGrey March 30, 2021 Recently Browsing 0 members No registered users viewing this page.
voronlviv Posted July 6, 2021 Share Posted July 6, 2021 (edited) В 27.06.2021 в 08:32, SGrWr_34 сказав: @voronlviv в вас, нетбито тема в трійці відкрии, а какась мышанина пхп+твіг. Давайте доступи у ПП, зробимо, ик бугде швидше, анетж пояснювати В мене Ocstore 2.1.0.1. Для своєї версії прикладу не знайшов. ось икий окмод я пробував створювати, но чтось опустив видно: <file path="catalog/view/theme/*/template/product/category.tpl"> <operation> <search><![CDATA[class="img-responsive center-block"]]></search> <add position="replace"><![CDATA[class="img-responsive center-block {% if product.quantity <= 0 %} stock-false{% endif %}"]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/view/theme/*/stylesheet/stylesheet.css"> <operation> <search><![CDATA[.options select option { font-size: 16px; }]]></search> <add position="after"><![CDATA[.stock-false{ filter: grayscale(100%); }]]></add> </operation> </file> Edited July 6, 2021 by voronlviv Link to comment Share on other sites More sharing options...
SGrWr_34 Posted July 6, 2021 Share Posted July 6, 2021 @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options... voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки 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 1
voronlviv Posted July 6, 2021 Share Posted July 6, 2021 3 години назад, SGrWr_34 сказав: @voronlviv ocmod не в змозі вплинути на css. Вписуйте стиль до файлу напряму я уже всивляв напряму в stylesheet.css і всерівно не затемнює Link to comment Share on other sites More sharing options...
voronlviv Posted July 6, 2021 Share Posted July 6, 2021 Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> Link to comment Share on other sites More sharing options...
voronlviv Posted July 6, 2021 Share Posted July 6, 2021 1 година назад, voronlviv сказав: Вже даже ик пробував: а в стилі добавляв: .out-of-stock {filter: grayscale(100%);} <file path="catalog/view/theme/coloring/template/product/category.tpl"> <operation> <search><![CDATA[<div class="product-item thumbnail">]]></search> <add position="replace"><![CDATA[ <?php if ($product['quantity'] <= 0) { ?> <div class="product-item thumbnail out-of-stock"> <?php } else { ?> <div class="product-item thumbnail"> <?php } ?>]]></add> </operation> </file> <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation> <search><![CDATA['name' => $result['name'],]]></search> <add position="after"><![CDATA['quantity' => $result['quantity'],]]></add> </operation> </file> запрацювало...був конфлікт з іншим модифікатором мыкророзмытки Link to comment Share on other sites More sharing options...
Recommended Posts