Index: modules/in-commerce/units/products/products_config.php =================================================================== --- modules/in-commerce/units/products/products_config.php (revision 13561) +++ modules/in-commerce/units/products/products_config.php (working copy) @@ -639,7 +639,7 @@ 'Name' => Array ( 'title' => 'la_col_ProductName', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 150, ), 'Type' => Array ('title' => 'la_col_ProductType', 'filter_block' => 'grid_options_filter', 'width' => 80, ), 'Manufacturer' => Array ('title' => 'la_col_Manufacturer', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Price' => Array ('title' => 'la_col_Price', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Price' => Array('title' => 'la_col_Price', 'data_block' => 'price_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), 'Status' => Array ('title' => 'la_col_Status', 'filter_block' => 'grid_options_filter', 'width' => 70, ), 'QtyInStock' => Array ('title' => 'la_col_Qty', 'data_block' => 'qty_td', 'filter_block' => 'grid_range_filter', 'width' => 80, ), 'QtyBackOrdered' => Array ('title' => 'la_col_QtyBackOrdered', 'filter_block' => 'grid_range_filter', 'width' => 80, ), @@ -666,7 +666,7 @@ 'Name' => Array ( 'title' => 'la_col_ProductName', 'data_block' => 'grid_catitem_td', 'filter_block' => 'grid_like_filter', 'width' => 150, ), 'Type' => Array ('title' => 'la_col_ProductType', 'filter_block' => 'grid_options_filter', 'width' => 80, ), 'Manufacturer' => Array ('title' => 'la_col_Manufacturer', 'filter_block' => 'grid_like_filter', 'width' => 100, ), - 'Price' => Array ('title' => 'la_col_Price', 'filter_block' => 'grid_range_filter', 'width' => 70, ), + 'Price' => Array('title' => 'la_col_Price', 'data_block' => 'price_td', 'filter_block' => 'grid_range_filter', 'width' => 70, ), 'Status' => Array ('title' => 'la_col_Status', 'filter_block' => 'grid_options_filter', 'width' => 70, ), 'QtyInStock' => Array ('title' => 'la_col_Qty', 'data_block' => 'qty_td', 'filter_block' => 'grid_range_filter', 'width' => 80, ), 'QtyBackOrdered' => Array ('title' => 'la_col_QtyBackOrdered', 'filter_block' => 'grid_range_filter', 'width' => 80, ), Index: modules/in-commerce/admin_templates/catalog_tab.tpl =================================================================== --- modules/in-commerce/admin_templates/catalog_tab.tpl (revision 13561) +++ modules/in-commerce/admin_templates/catalog_tab.tpl (working copy) @@ -26,6 +26,21 @@ ) ); + + a_toolbar.AddButton( + new ToolBarButton( + 'select', + '', + function() { + $form_name = $Catalog.queryTabRegistry('prefix', $Catalog.ActivePrefix, 'tab_id') + '_form'; + set_hidden_field('remove_specials[' + $Catalog.ActivePrefix + ']', 1); + $Catalog.submit_event($Catalog.ActivePrefix, 'OnUpdate'); + }, + true + ) + ); + + function new_product($type) { $form_name = $Catalog.queryTabRegistry('prefix', $Catalog.ActivePrefix, 'tab_id') + '_form'; set_hidden_field('_new_type', $type); @@ -52,8 +67,11 @@ -
" view_template="in-commerce/catalog_tab" edit_template="in-commerce/products/products_edit" category_id="-1" dep_buttons="new_product" class="catalog-tab">
- +
" view_template="in-commerce/catalog_tab" edit_template="in-commerce/products/products_edit" category_id="-1" dep_buttons="new_product,select" class="catalog-tab">
+
@@ -75,6 +93,12 @@ / + +
+ +
+
+ @@ -89,6 +113,17 @@ Grids[''].DblClick = function() {return false}; + + $('div.price-cell').one( + 'click', + function($e) { + var $id = $(this).attr('id').replace(/_container$/, ''); + var $mask = ''; + $(this).html( $mask.replace('#NAME#', $id).replace('#VALUE#', $(this).html()) ); + + a_toolbar.EnableButton('select'); + } + ); #separator#