Comments (5)
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.
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.
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.
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.
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)
- Enable Enhanced Grid for a custom grid HOT 2
- Fatal error: Class 'BL_CustomGrid_Helper_Data' HOT 2
- Different languages in Magento backend
- Works well on Magento ver. 1.9.3.3
- Hoe to solve : SQLSTATE[42S02]: Base table or view not found: 1146
- Is it possible to add TAX as a column? Tried all options but cant believe it is not there
- Custom Column on the products grid?
- How can i set Description Box Standard Height?
- Version 0.9.2 works well on 1.9.3.7 HOT 4
- Uninstall
- blcg_window Blank
- Using wip. user cannot use inline edit (edit in grid)
- Custom field error HOT 1
- The Backend is very slow isn't able to edit all products in the back-end. HOT 1
- Vulnerability issue
- Security vulnerability, don't use this extension HOT 2
- Magento export grid no longer customisable (showing max 9 attributes - much less than default)
- Magento 1.9.4.x and Php 7.2: editing columns we see error 'invalid form key' HOT 2
- Does a M2 version exist? Or an Extension that does the same? HOT 4
- Cannot filter by category
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mage-enhanced-admin-grids.