5 replies [Last post]
mykz-'s picture
Offline
Joined: 02/13/2008
Juice: 203
Was this information Helpful?

Hey all

My client recently asked “Why don’t I have any fancy graphs” After thinking about it I asked myself why hasn’t Ubercart got some nice graphs?

After thinking about how I was going to-do this I then started googling.

I came across a nice API for graphs which I started messing with pulling data from my current clients site after a couple of hours of playing I came up with something I could work with.

Now the big part how do I implement the idea into Drupal/Ubercart

I’m not the strongest coder and after only playing with Drupal/Ubercart for about a month and half

“I DID IT YAY”

After doing some more googling i found someone had created a module for using my graph api for drupal “YAY”

I installed the module and configured it and started messing with the uc_store.module it didn’t take long for me to come up with the example attached below.

The code is still very rough and I wasn’t sure whether I was placing code in the right place I need to speak to Ryan or Lyle on how I will make this more user friendly e.g change bar, backgrounds colours etc.

Let me know what you guys think.

PreviewAttachmentSize
graph_idea.gifgraph_idea.gif86.08 KB
Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Re: Ubercart Graphs

that's cool mykz- ...also from usability point of view I think it's always a good idea to have reports in graphical form as well. I like your idea, looking forward what's coming up Eye-wink

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
hi

Could you share how you went about applying your graphs. i have graph script too that I'm like to integrate, or more specifically how were you able to grab the data from database to use in creating the graphs?

Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Also, the Fusion Charts

Also, the Fusion Charts -module for Drupal is amazing! ...and it will eat data to produce beautiful graphics charts. Is there any way to combine all these together? (from usability point of view graphs are a Big step forward in any script)

bevinlorenzo's picture
Offline
Joined: 08/11/2008
Juice: 23
Still no graphs in Ubercart?

Mykz,
It has been a few years since this post and I am surprised that I have not been able to find any way to integrate graphs into an ubercart dashboard as you have shown above. Any tips?

mykz-'s picture
Offline
Joined: 02/13/2008
Juice: 203
It's been some time.

Hey bevinlorenzo,

It has been some many years since I've visited the ubercart project I still receive the subscriptions for the threads and have been watching closely while wasting my life with a dead end company I wont go into detail lol.

I'm now freelancing fulltime and have time on my hands so I'm considering the graphs module to be my next open source project if someone hasn't code one up yet.

It's been years since I touch the ubercart /Drupal code so I'll need to brush up on Drupal.

I can't be sure or promise that the module will be created anytime soon but it's an idea that sparked me when you posted your thread.

I can give you a quick break down of how I did it.

I opened databse in phpmyadmin and worked out ubercarts database structure and pulled down what I needed into Drupal.

I then linked the data with a Graphs module found on the Drupal site.

The code was then inserted in a raw form into one of the files that comes with ubercart it was so rough now it makes be cringe but it worked and gave a really good result for the client.

if you have any more questions you can reach me at mike@creativehappy.com.

Thanks for your kinds words.