customisation

Views and Ubercart

Question: 
How to use Views with Ubercart

Step 1

Enable Views module

Step 2

Import the following - give name of "product_grid_view"

$view = new view;
$view->name = 'product_grid_view';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'alter' => array(

Customising the php date display

Question: 
British / UK date formatting?

print date (jS M y, timestamp)

will produce

28th Oct 09

Customising search box

Question: 
Why does the submit button fall below the input box?

The seach box together with other forms can be modifed as per the article:

http://www.lullabot.com/articles/modifying-forms-5-and-6

Note:

When using this method the encasing <div class="container-inline"> is removed causing the imput box and the submit button not to be inline - the submit button appears below the input box and not to the right.