Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 16042

denotes questions related to the customers module

1 vote
1 answer
2k views

Add "Total number order" & "Revenue" column to customer grid

I want to add 2 columns to customer gird: - Total number orders customer made. - Total price of these orders. Can anyone help me please ? …
HungDQ's user avatar
  • 812
3 votes

How to join a calculated column from a table to collection

I've found my answered by using the following join: $statTable = Mage::getSingleton('core/resource')->getTableName('stat_customer'); $collection->getSelect() ->join(array("stat" => $statTab …
HungDQ's user avatar
  • 812
4 votes
3 answers
5k views

How to join a calculated column from a table to collection

I have a table name stat_customer look like this: I want to add a column page_view to customer collection to show at grid page. page_view is total page view of product page for each customer. … My SQL query looks like: SELECT sum(page_view) as page_view, customer_id FROM stat_customer WHERE page_type = 'product' GROUP BY customer_id; But I don't know how to join it with customer collection …
HungDQ's user avatar
  • 812