Views

Attribute Views (Views Integration for uc_attributes)

Contrib type: 
Module
Latest version: 
0.3

I've written a Views integration for uc_attributes (it also requires uc_stock). Primary features include:

  • Field to show all options for a given attribute
  • Field to show all possible attribute option combinations
  • Field to show only those attribute option combinations that are in stock (aka above the threshold)
  • Filter on the availability of one or more options for a specific attribute (including only those options that are in stock).

Product Slideshow Block

Contrib type: 
Code/CSS Snippet

Here is a pretty simple view setup that allows for a rotating slideshow block to be placed on your site. I imagine this would be great for showing off featured products, specials, etc. For the purposes of this demonstration, I overrode the default "products" page that Views installs. I also added a preset in imagecache called "slideshow_image" so that I could resize my product images to the correct dimensions. Please note that this code requires:

Views
Views_slideshow (plugin)
Imagecache

Here's the code from the export:

$view = new stdClass();

Order Views Arguments

Contrib type: 
Module
Latest version: 
1

Adds an argument to views for Order ID. We use it to create a descriptive list of the products in a specific order to be included with an estimate or invoice.

some more views integration (uc_views expanded)

Contrib type: 
Code/CSS Snippet

I needed a block to show the top X products, so I expanded the views compatibility a little...
I didn't post this as a module, because in this post simular code got adopted in uc_products, so I'll leave it up to core devs to decide where to go with this...

I added the order table in function uc_views_views_tables()

$tables['uc_order_products'] = array(
'name' => 'uc_order_products',
'join' => array(
'left' => array(
'table' => 'node',
'field' => 'vid'
),
'right' => array(

Create a node that contains the grid view you have created for your products

Contrib type: 
Code/CSS Snippet

----------------------------------------------------------------------------
Create a node that contains the grid view you have created for your products
----------------------------------------------------------------------------
Now that we know how to create a grid view for our products it is useful to know how to take that view and insert it into a page. This gives you maximum flexibility in presenting and formatting the product category you wish to display.

--You will need the Viewfield module (http://drupal.org/project/viewfield).

Creating a grid display for a page

Contrib type: 
Code/CSS Snippet

---------------------------------------------------
INSTRUCTIONS FOR CREATING A GRID DISPLAY FOR A PAGE
---------------------------------------------------
1. Upload and activate the latest Views, View Bonus pack, CCK, and image_field modules.

2. Go to /admin/build/views/add.

3. Give your view a name, determine access, and enter a description. Click on Save and Edit at the bottom of the screen.

CSS to customize the default Catalog display

Contrib type: 
Code/CSS Snippet

--------------------------------------------
CSS to customize the default Catalog display
---------------------------------------------

The following code can be added to your principal CSS file and then tweaked to enhance the appearance of the default Catalog presentation that comes packaged with UC. (You can view this code live at the following URL: http://www.greystokefarm.com/store/catalog) The code below will not interfere with customizations you might have made if you are using Views and have styled grid displays for your product categories.

Begin CSS code:

Syndicate content