Ra Ra Posted July 8, 2020 Share Posted July 8, 2020 Hello i want to ask how i can add colum weight in admin product catalog and sort it. I want to see which product has no weight value entered. Is this possible. Is there another way to check which product has no weight value entered? Thank you! Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2020 Share Posted July 8, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 8, 2020 Author Share Posted July 8, 2020 My version is 1.7.4.3 Thank you! Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2020 Share Posted July 8, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted July 8, 2020 Share Posted July 8, 2020 It is also easy to see with Prestools which products have no weight. Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2020 Share Posted July 8, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 9, 2020 Author Share Posted July 9, 2020 Hi, thank you for your help. But now i see only 0 in field weight. Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 9, 2020 Author Share Posted July 9, 2020 I can sort from big to small and small to big, but the field showing only 0. Тегло field = weight Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 9, 2020 Author Share Posted July 9, 2020 Now i see 0,00000 in field. Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 9, 2020 Author Share Posted July 9, 2020 I see only 0.000000 Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 9, 2020 Author Share Posted July 9, 2020 Only 0.000000 i test it. I have and integer weight. Here what i do 1. ./src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/Lists/list.html.twig add: <td> <span>{{ product.weight|default('0.000000') }}</span> </td> 2. ./src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/catalog.html.twig add: 'filter_column_weight': filter_column_weight, 3. ./src/PrestaShopBundle/Entity/AdminFilter.php add: 'filter_weight' => FILTER_SANITIZE_NUMBER_FLOAT, 4. ./src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/Lists/products_table.html.twig add: <th scope="col" class="text-center" style="width: 9%"> {{ ps.sortable_column_header("Weight"|trans({}, 'Admin.Global'), 'weight', orderBy, sortOrder) }} </th> 5. ./src/PrestaShopBundle/Resources/config/routing/admin/routing_product.yml add: |position|active|position_ordering|weight |position|active|position_ordering|weight 6. clear cache: /var/cache - delete all from folder. Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2020 Share Posted July 9, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 9, 2020 Author Share Posted July 9, 2020 Yes, thank you for your help. I will check once again. If you have any directions where my mistake is I will be grateful for your help. Thanks again for your time. I thought the changes would be easier. Link to comment Share on other sites More sharing options...
Ra Ra Posted July 10, 2020 Author Share Posted July 10, 2020 Hi Guest, there is one bug in your module. There is no Min and Max filtering. Can you fix it? Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2020 Share Posted July 10, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 10, 2020 Author Share Posted July 10, 2020 2. define filter_weight in query build -> that i don't know how Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2020 Share Posted July 10, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Ra Ra Posted July 10, 2020 Author Share Posted July 10, 2020 ok, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now