Giter VIP home page Giter VIP logo

Comments (5)

mage-eag avatar mage-eag commented on August 18, 2024

Hi Tije,

Thanks !
About your own custom renderer, is it one you added directly in the code of
the grid, or is it one based on the column renderers feature of the
extension ?
In any case, have you got some code that I could use to reproduce your
problem ?

Thanks,
Benoît

2012/7/13 tijevlam <
[email protected]

Hello guys,

I love the new version of custom grids. I works great, but i found a
problem.
Since i use it, im unable to assign a custom renderer for my own added
column in the order grid.
Ive added an skus and names column, to display all items of my bundle and
configurable orders.
But with custom grids i'm not getting my own custom renderer to display.
What to do?

best regards,

Tije


Reply to this email directly or view it on GitHub:
#1

from mage-enhanced-admin-grids.

tijevlam avatar tijevlam commented on August 18, 2024

Hey Benoit!

Thanks for getting back on this. I actually solved it for now, allthough i dont know if it is the best (cleanest) solution.
I'm coding this in to the code directly. So nothing is edited in the extension.
I was trying to get this to work with multiple joins (one for each column).
I the end i solved this by using a zend_db_expr with if statements.

 $collection = Mage::getResourceModel($this->_getCollectionClass())
            ->join(
                'sales/order_item',
                '`sales/order_item`.order_id=`main_table`.entity_id',
                array(
                    'skus'                  => new Zend_Db_Expr('group_concat(`sales/order_item`.sku SEPARATOR ",")'),
                    //'configuratie'        => new Zend_Db_Expr('group_concat(`sales/order_item`.name SEPARATOR ",")'),
                    'leather'               => new Zend_Db_Expr('group_concat(IF( `sales/order_item`.product_id > "136" && `sales/order_item`.product_id < "223" ,`sales/order_item`.name, "") SEPARATOR " ")'),
                    'frame'                 => new Zend_Db_Expr('group_concat(IF( `sales/order_item`.product_id > "35" && `sales/order_item`.product_id < "42" ,`sales/order_item`.name, "") SEPARATOR " ")'),
                    'buttons'               => new Zend_Db_Expr('group_concat(IF( `sales/order_item`.product_id > "117" && `sales/order_item`.product_id < "123" ,`sales/order_item`.name, "") SEPARATOR " ")'),
                    'keypad'        => new Zend_Db_Expr('group_concat(IF( `sales/order_item`.product_id > "97" && `sales/order_item`.product_id < "116" ,`sales/order_item`.name, "") SEPARATOR " ")'),

                    )
                );
            $collection->getSelect()->group('entity_id');

from mage-enhanced-admin-grids.

mage-eag avatar mage-eag commented on August 18, 2024

Did you change anything regarding the renderer of your new column, to make it work, and then find what could be a compatibility problem brought by the new version ?
Or was the problem finally related to the orders collection and multiple joins (so then, not the extension) ?

Thanks,
Benoît

from mage-enhanced-admin-grids.

tijevlam avatar tijevlam commented on August 18, 2024

In the end, the problem had nothing to do with your great extension. It
had everything to do with my orders collection and multiple joins. And the
fact that the custom render wasn't loaded is a conflict with another
(paid) extension: extended orders pro.

So your extension still works perfect. i did have another comment, would
it be possible to update the extension so you could edit the Inventory
column in the grid (products). Just you can (ajax)edit the name...

Thanks,

Tije

Did you change anything regarding the renderer of your new column, to make
it work, and then find what could be a compatibility problem brought by
the new version ?
Or was the problem finally related to the orders collection and multiple
joins (so then, not the extension) ?

Thanks,
Benoît


Reply to this email directly or view it on GitHub:
#1 (comment)

from mage-enhanced-admin-grids.

mage-eag avatar mage-eag commented on August 18, 2024

Thanks for the quick answer, and nice to hear that you could solve your problem (and that it was not due to a compatibility problem with the extension) ! I'll close the issue, but don't hesitate if you find other possible problems.

Concerning the inventory fields, they will soon be available as custom columns for the products grid, but not yet editable. The editability for the custom columns was (is) on my roadmap, but as it would require some refactoring on the two corresponding systems, it may take a while before I find enough time to work on it. Or at least, I'll have to choose between focusing on one big feature, that could open a new range of possibilities, or releasing new custom columns on a more regular basis. By the way, let me know if you have a preference :)

Best regards,
Benoît

from mage-enhanced-admin-grids.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.