Originally Posted by
Joseph M
Removing CATALOG was my alteration, not in the file set, and since corrected in my file. The database uses products_image, so good to keep that.
What/where is the select portion?
As said before, at/around line 774. Now this code portion I am pasting, begins well before 774, but it includes notifier information so that one can build an observer to add the necessary field to the select. I will, however, also show the field being added manually:
Code:
// -----
// Give a watching observer the chance to modify the products' query to gather additional fields for the display.
//
// Note the leading space requirements!
//
// 1. Any modification of the $extra_select must include a leading ' ,'.
// 2. Any modification of the $extra_from must include a leading ' ,'.
// 3. Any modification of the $extra_ands must include a leading ' AND'
//
$extra_select = $extra_from = $extra_joins = $extra_ands = '';
$zco_notifier->notify('NOTIFY_ADMIN_PROD_LISTING_PRODUCTS_QUERY', '', $extra_select, $extra_from, $extra_joins, $extra_ands, $order_by);
$products_query_raw = "SELECT p.products_type, p.products_id, pd.products_name, p.products_quantity,
p.products_price, p.products_status, p.products_model, p.products_sort_order,
p.master_categories_id";
$products_query_raw .= $extra_select;
And with the products_image field manually added:
Code:
// -----
// Give a watching observer the chance to modify the products' query to gather additional fields for the display.
//
// Note the leading space requirements!
//
// 1. Any modification of the $extra_select must include a leading ' ,'.
// 2. Any modification of the $extra_from must include a leading ' ,'.
// 3. Any modification of the $extra_ands must include a leading ' AND'
//
$extra_select = $extra_from = $extra_joins = $extra_ands = '';
$zco_notifier->notify('NOTIFY_ADMIN_PROD_LISTING_PRODUCTS_QUERY', '', $extra_select, $extra_from, $extra_joins, $extra_ands, $order_by);
$products_query_raw = "SELECT p.products_type, p.products_id, pd.products_name, p.products_quantity,
p.products_price, p.products_status, p.products_model, p.products_sort_order,
p.master_categories_id , p.products_image";
$products_query_raw .= $extra_select;
Bookmarks