name = 'ec_product'; $view->description = 'List of products in the store'; $view->tag = 'ec_product'; $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' => '', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'price' => array( 'label' => '', 'exclude' => 0, 'id' => 'price', 'table' => 'ec_product', 'field' => 'price', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'checkout' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'checkout', 'table' => 'ec_product', 'field' => 'checkout', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'title' => array( 'order' => 'ASC', 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'is_product' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'label' => 'Is product', 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'is_product', 'table' => 'ec_product', 'field' => 'is_product', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Products'); $handler->override_option('items_per_page', 12); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'grid'); $handler->override_option('style_options', array( 'grouping' => '', 'columns' => '3', 'alignment' => 'horizontal', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'products'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Products', 'description' => '', 'weight' => '0', 'name' => 'management', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'management', )); $views[$view->name] = $view; return $views; }