Ubercart Views

Contrib type: 
Module
Status: 
Complete and working
Moderation: 
Awaiting moderation
Latest version: 
2.0

Downloads


Compatibility: 
Ubercart 2.x

This module provides a collection of standard views (http://drupal.org/project/views) for Ubercart.

It also describes some of the Ubercart data tables to views, so you can create your own views, based on these data using the views_ui.

If you have some killer views, not included in this module, please don't be shy - share them with us Smiling

Current views

  • new_products: Block view displaying the most recently added products
  • popular_products: Block view displaying the products which has sold the highest quantity
  • product_pairs_block: Block view providing 'Users who bought the selected product also bought these' list
  • user_products: Block view displaying a list of the products which the user most often end up buying.
  • uc_order: Page listing all orders.

The module will install a number of database views, which is needed for some of the default views
that ships with this module. If that is a problem for you, you should disable the views, and remove
the database views after installation (the sql to remove the views are found in the .install file).

Installing Ubercart Views
Place the content of this directory in sites/all/modules/uc_views

Navigate to administer >> build >> modules. Enable Ubercart Views.

Please note that most of the views included in this module assumes that images are turned on and
configured for products (See administer >> Store administration)

Dependencies
The following modules are required to use the views in this module:


wbclassics's picture
Offline
Joined: 01/25/2009
Juice: 55
Re: Ubercart Views

AWESOME! A sure time saver, I'll give this a try later this week.

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
I think I love you Will

I think I love you Laughing out loud

Will have to try this after Drupalcon...

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

manatwo's picture
Offline
Joined: 02/19/2008
Juice: 235
Re: Ubercart Views

Without taking a look, anything specific about these Views that prevents them from being ported to D5?

acdtrp's picture
Offline
Joined: 03/16/2008
Juice: 59
Re: Re: Ubercart Views

I also would love to see it ported for D5.

sammys's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 03/20/2009
Juice: 29
Some more views bits

There is another issue post with views related discussion. Please comment on the question, "do we put views code into uc_reports or shall we keep them separate?".

Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1153
Re: Some more views bits
madsph's picture
Offline
Joined: 02/25/2009
Juice: 56
@ acdtrp and sammys

@ acdtrp

I haven't looked at D5 and UC 1.

But a fair guess would be that it should work. You can try and change the .info file and see what happens.
For the newest version go to the nightly build at drupal.org

@ sammys
Your project sounds interesting. I have left a comment for you there.

wbclassics's picture
Offline
Joined: 01/25/2009
Juice: 55
Anonymous User Viewing

What permissions need to be enabled to allow anonymous users to see the thumbnail image included in the UC_Views views?

Works fine for authenticated users out of the box, looks great!

Thanks, Kai

madsph's picture
Offline
Joined: 02/25/2009
Juice: 56
Re: Anonymous User Viewing

They need the 'view field_image_cache' permission of the 'content_permissions module'

wbclassics's picture
Offline
Joined: 01/25/2009
Juice: 55
Re: Re: Anonymous User Viewing

Thank You -Worked! I thought I had that already enabled as other imagecache images were showing up without issues to anon users in other aspects of Ubercart. Thanks again!

wbclassics's picture
Offline
Joined: 01/25/2009
Juice: 55
Re: Re: Anonymous User Viewing

Thank You -Worked! I thought I had that already enabled as other imagecache images were showing up without issues to anon users in other aspects of Ubercart. Thanks again!

GreyHawk's picture
Offline
Joined: 03/17/2009
Juice: 174
I was following along sammys patch, and just realized

that you might be rolling it into an update for this views module; sorry if i'm slow on the uptake.

If that's the case, then I won't need to download things separately and patch them...which would be great, and this would be even more robust.

Looking forward to it!

Great work, both of you.

wbclassics's picture
Offline
Joined: 01/25/2009
Juice: 55
Altering Image Display in Ubercart Views' Block

EDIT: It helps if I save the view when I change the image field Smiling All fixed now... using the "product_list" image field to show just the primary product photo in UC Views

Is there anyway to display only the primary image associated with a product in the UC Views block?

I've messed with the imagecache presets / fields available in Views, but for products that have multiple images, all of the images still display in the UC Views block, when I would like to only show the primary one.

Thanks, Kai

1kenthomas's picture
Offline
Joined: 08/07/2009
Juice: 3
Re: @ acdtrp and sammys

It does not seem to really work under D5/UC1, as UC1 does not seem to define views handlers for these fields.

sselden's picture
Offline
Joined: 02/13/2010
Juice: 32
instructions

It'd be awesome if you included some basic step by step instructions. As right now I have it installed but am getting no images in the slideshow. Being a noob, I have no idea where to begin to troubleshoot. It'd be nice to step through a surefire way to get it working so I could troubleshoot from there. thanks

I'm not really a geek, I just play one on TV.