Hello,
this is the view setting for the particular error
$view = new stdClass();
$view->name = 'editorschoice_frontpage';
$view->description = 'editors choice in forntpage';
$view->access = array (
);
$view->view_args_php = '';
$view->page = FALSE;
$view->page_title = 'Products';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'list';
$view->url = 'productz';
$view->use_pager = FALSE;
$view->nodes_per_page = '10';
$view->block = TRUE;
$view->block_title = '';
$view->block_header = '';
$view->block_header_format = '1';
$view->block_footer = '';
$view->block_footer_format = '1';
$view->block_empty = '';
$view->block_empty_format = '1';
$view->block_type = 'active_view_field';
$view->nodes_per_block = '6';
$view->block_more = FALSE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'random',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node_data_field_image_cache',
'field' => 'field_image_cache_fid',
'label' => '',
'handler' => 'content_views_field_handler_ungroup',
'options' => 'product_front',
),
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'uc_products',
'field' => 'sell_price',
'label' => '',
),
array (
'tablename' => 'uc_products',
'field' => 'addtocartlink',
'label' => '',
),
array (
'tablename' => 'uc_products',
'field' => 'buyitnowbutton',
'label' => '',
),
array (
'tablename' => 'node',
'field' => 'link',
'label' => '',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'uc_products',
'field' => 'is_product',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node_data_field_image_cache',
'field' => 'field_image_cache_fid_not null',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_data_field_image_cache, uc_products);
$views[$view->name] = $view;
++++++++++++++++++++++++++++++++++++++++
The "sort by random" does not work when it is used with ubercart "add to cart" or "buy now" link.
but if sort by anything else, etc title, date, etc, the submit buttom "add to cart" work without any problem.
Clicking on the add to cart just point back to the same page.
I scanned the html, it looks like view does not returm the proper value (the
)
Can see the problem at
on the editors choice
Comments
Comment #1
khalemi commentedI scanned the html, it looks like view does not returm the proper value on the form
<form action="/">where it should be
<form action="/path-to-node">Comment #2
merlinofchaos commentedViews doesn't generate forms except for exposed filters. This sounds like it's an ubercart bug, please file there.
Comment #3
sugumarandeveloper commented