How To Create A Report in Magento - magento

I am trying to create a report in Magento. I followed the tutorial from Alan Storm on getting things started in the admin panel http://alanstorm.com/magento_admin_controllers and I now have a grasp of how to get the controllers working in the admin panel.
I would like to take this to the next step and create reports. The reports that I am creating I think I just want them to work like the grid widgets that are used throughout the entire Magento admin panel.
However, I am hard pressed to find a good tutorial on how to create these. If someone could explain how these work or point me towards a tutorial that worked for them, I would be very grateful.

* UPDATE *
An SQL based approach, to consider:
https://github.com/kalenjordan/custom-reports
Personally I've tried implementing Reports the "Magento" way and found its much easier and simpler to just use the Grid instead. However here are some of the bookmarks I have in regards to building out reports.
http://codegento.com/2011/03/creating-custom-magento-reports/
Hope these help, I have to admit the way the way you build reports in Magento is very screwy, at least to me the approach seems very backwards.

Related

How can I make a one page websites on joomla?

i'm trying out joomla! CMS, and in my job we're very fond of one-page sites. Is there any way of making a fully functional website with it? The main reason we need the CMS is because of the way the client wants to update they're webpage.
Ok before you do anything, have a real think to yourself, is Joomla really the best option? Your client requires a 1 page website, therefore what would be the point in loading a full blown CMS just for that. Joomla, when zipped up, is more or less 8MB. Out of all honestly, I would even find the likes of Wordpress still too big for a project of this size.
What I would really recommend is having a look round on the web for a very small CMS that simply includes a small backend with the ability to create, update and delete articles.
Have a look at this for example:
http://www.elated.com/articles/cms-in-an-afternoon-php-mysql/
This would be a brilliant way to start. It has a small backend for you to manage articles, and you can start building up a completely custom template, exactly to your client's liking. I'm not too sure on the programming skills but if you're fairly new to it, then this would be a good place to start and gain knowledge.
Given that the above is what I would personally recommend, you may not want to do that or may not have the time, therefore if you really want to stick with Joomla, you should find a template that fits your needs in regards to module positions. Else you can add your own custom positions to the template. Have a read through the documentation as it will give you the necessary information
Hope this helps
I was looking for a solution myself for quite a while. I came up with the following two soutions:
Like #mattosmat said for a joomla one page site the simplest solution actually is it to declare one section as the main componenent and create the other section with cusom-made joomla modules.
Use wordpress with the advanced field plugin to create a single-page website.
Actually if a clients wish is it to create a single page website with cck and cms features i create these projects in wordpress and not in joomla anymore in my opinion its the wrong plattform.
I Have One Word!!!
BOOTSTRAP!!!! IS the way to go.. simple,succinct,beginner friendly. Doesnt matter if you really make it in Joomla! or anything else.
And for head start, look up "Scrollspy" in Bootstrap.

How to add new field in checkout that is displayed in order view in backend

I am totally new to Magento. Still learning, so I am confused about where to start off when I have to do something new.
I have to add just another input field in the checkout that gets saved in the order and displayed in the back-end.
So can someone give me directions? It can probably be implemented in an existing extension, but I don’t really have a clue. Any help and explanation will be greatly appreciated.
It would seem a popular solution is to utilize the order "agreements" for comments.
My answer here has lots of tips
And this blog specifically talks about installing a free extension and his explanation of the process is simple and thorough.

Joomla 2.5 Add Option Groups to Article

I'm playing with Joomla 2.5.9 (The latest 2.X download). Do you know how you can add additional menu's to the "Article Manager: Edit Article" page? (This is in the Administration)
Their API gives me some hint on several things but I am don't know what this right "Slide Down Option Area" is called in the Administration.
In the right area there are things such as:
Publishing options
Article Options
Configure Edit Screen
Images and Links
etc..
I want to know where to start to add my own, or where they are already built in the system so I can base mine off it -- Is this a plugin, module, or something else? :)
As i say don't change any of the core file in Joomla. If you want to add any functionality into the article manager you can make your own plugin to add functionality in it. For doing this see this link :
Creating a content plugin
I hope this is what you looking for.Good luck.
There are some extensions that allow you to do that.
I recommend (although somewhat buggy and a code mess) this one:
FieldsAttach
It does exactly what you want.
Or, you could make your own as Toretto suggests, there are some tutorials on creating a plugin for extra items in the article form, but the already-made-extension route seems to make more sence.
I've been using FieldsAttach for this sort of thing, for a few years, the code is often a little messy, that is true, but the the concepts are clean and eloquent. Brian Teeman explains it well from an integrator point of view in his talk at https://www.youtube.com/watch?v=f2WLKWbRj5U but in some ways it is even more compelling from a developer's perspective.
However, after watching Marco Ding's Joomla Day UK 2016 talk on https://www.youtube.com/watch?v=KDh1IPuZAVA I think DPFields may be a better choice. The architecture is perhaps more rugged and neater, but also because it may well end up being a core extension in Joomla in the near future. More info on DPFields is at http://extensions.joomla.org/extension/dpfields , https://joomla.digital-peak.com/products/dpfields and https://joomla.digital-peak.com/documentation/162-dpfields .

Using GWT to build a sortable table/grid without EXT/GXT/Smart GWT/etc

For some background, I'm currently an intern who has been asked to use GWT to create some kind of table/grid that can be sorted by column. Ideally my boss (who told me to ask for help about this here on Stack Overflow) also wants to be able to have multiple pages of data as well, but I'm concentrating on the sorting part right now.
Before jumping to suggest the various EXT and GXT things, unfortunately 1) what this will be used for will eventually be a part of their product, and therefore, used commercially and 2) this is for a not-for-profit company, so they don't really want to pay for a license. I have been searching for what feels like weeks in vain for something that I can both use and understand.
I am using Eclipse (indigo) to create GWT web apps, but I am still quite a newbie at anything related to GWT and I'm sure that most of my problem is that I don't really understand how to get and use the code that is presented as an example in tutorials. I have read through all the GWT documentation I can find and many tutorials and showcases, but I still don't really understand how to do things... which is unfortunate and frustrating. I have also tried using the GWT Designer in Eclipse and while neat, I can't use the CellTable stuff (which of course is exactly what my boss wants) - I assume because I don't have the license for it? Right now, I don't need to be getting data from a server (literally, if I could just put all my people-data in an ArrayList and populate columns from there, I would be very happy).
Can anyone help me out with this? Sorry it's kind of a two-fold question (one that I'm such a newbie about GWT, two that I am not having any luck figuring out how to make a sortable table/grid) but I would really appreciate any help.
CellTable is one of the more complicated concepts in GWT. You are looking in the right place, the documentation is here: https://developers.google.com/web-toolkit/doc/2.4/DevGuideUiCellTable.
This should have everything you need including all the code with an EntryPoint class. I think it is just a case of getting this code running on your machine and working through it line by line understanding what it is doing.

Sample CakePHP Application

I'm looking for a basic CakePHP application I can use as base for a new project and future ones as well. What I need is basic functionality such as users, user groups, login and register and forgot password. I have been doing some Googling and found a few tutorials and that but all don't seem to be what I'm after. I found BakeMe which seemed good, but had lots of errors and doesn't seem to have been updated.
Anyone know of some good ones? Or perhaps have their own skeleton they use for new projects that they would be happy to share. Thanks.
How about the 'standard' blog tutorial: http://book.cakephp.org/view/1528/Blog
You could follow this up with the ACL tutorial and so tick most of your boxes: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
I really recommend these two. They will introduce you to so many fundamental concepts of CakePHP that you'd be foolish to skip them. Anything built with CakePHP is extensible and the Cake Blog is no exception.

Resources