Totally Zenned
- Join Date:
- Jan 2004
- Location:
- N of San Antonio TX
- Posts:
- 9,767
- Plugin Contributions:
- 9
Quick Updates plugin [support]
Using the Display Category and then sort by, say, ID doesn't get you there like you want?
Views: 180,415
Totally Zenned
Using the Display Category and then sort by, say, ID doesn't get you there like you want?
Zen Follower
dbltoe:
Using the Display Category and then sort by, say, ID doesn't get you there like you want?
Not sure how to do that can you please share code so I can try. Each category has lot of products so by selecting category and then looking for specific product in that category manually is very time consuming. Looking to insert a search box on this page where an item can be search using name/model and then update that item quickly.
Totally Zenned
The Categories / Products page uses this code for selecting any ID, Model #, etc. I suppose it could be added into the display page for Quick Updates. Maybe someone more familiar with the php can tell us how.```
<div class="col-md-4"> <?php echo zen_draw_form('set_editor_form', FILENAME_CATEGORY_PRODUCT_LISTING, '', 'get', 'class="form-horizontal"'); ?> <div class="form-group"> <?php echo zen_draw_label(TEXT_EDITOR_INFO, 'reset_editor', 'class="col-sm-6 col-md-4 control-label"'); ?> <div class="col-sm-6 col-md-8"> <?php echo zen_draw_pull_down_menu('reset_editor', $editors_pulldown, $current_editor_key, 'onchange="this.form.submit();" class="form-control" id="reset_editor"'); ?> </div> <?php echo zen_hide_session_id(); echo zen_draw_hidden_field('cID', $cPath); echo zen_draw_hidden_field('cPath', $cPath); echo (isset($_GET['pID']) ? zen_draw_hidden_field('pID', $_GET['pID']) : ''); echo (isset($_GET['page']) ? zen_draw_hidden_field('page', $_GET['page']) : ''); echo zen_draw_hidden_field('action', 'set_editor'); ?> </div> <?php echo '</form>'; ?> <?php // check for which buttons to show for categories and products $check_categories = zen_has_category_subcategories($current_category_id); $check_products = zen_products_in_category_count($current_category_id, true, false, 1); $zc_skip_products = false;
$zc_skip_categories = false;
if ($check_products == 0) {
$zc_skip_products = false;
$zc_skip_categories = false;
}
if ($check_categories == true) {
$zc_skip_products = true;
$zc_skip_categories = false;
}
if ($check_products > 0) {
$zc_skip_products = false;
$zc_skip_categories = true;
}
if (isset($_GET['search']) && !empty($_GET['search']) && $action != 'edit_category') {
$zc_skip_products = false;
}
if ($zc_skip_products == true) {
// toggle switch for display sort order
$categories_products_sort_order_array = array(array('id' => '0', 'text' => TEXT_SORT_CATEGORIES_SORT_ORDER_PRODUCTS_NAME),
array('id' => '1', 'text' => TEXT_SORT_CATEGORIES_NAME)
);
} else {
// toggle switch for display sort order
$categories_products_sort_order_array = array(
array('id' => '0', 'text' => TEXT_SORT_PRODUCTS_SORT_ORDER_PRODUCTS_NAME),
array('id' => '1', 'text' => TEXT_SORT_PRODUCTS_NAME),
array('id' => '2', 'text' => TEXT_SORT_PRODUCTS_MODEL),
array('id' => '3', 'text' => TEXT_SORT_PRODUCTS_QUANTITY),
array('id' => '4', 'text' => TEXT_SORT_PRODUCTS_QUANTITY_DESC),
array('id' => '5', 'text' => TEXT_SORT_PRODUCTS_PRICE),
array('id' => '6', 'text' => TEXT_SORT_PRODUCTS_PRICE_DESC)
);
}
echo zen_draw_form('set_categories_products_sort_order_form', FILENAME_CATEGORY_PRODUCT_LISTING, '', 'get', 'class="form-horizontal"');
?>
<div class="form-group">
<?php echo zen_draw_label(TEXT_CATEGORIES_PRODUCTS_SORT_ORDER_INFO, 'reset_categories_products_sort_order', 'class="col-sm-6 col-md-4 control-label"'); ?>
<div class="col-sm-6 col-md-8">
<?php echo zen_draw_pull_down_menu('reset_categories_products_sort_order', $categories_products_sort_order_array, $reset_categories_products_sort_order, 'onchange="this.form.submit();" class="form-control" id="reset_categories_products_sort_order"'); ?>
</div>
<?php
echo zen_hide_session_id();
echo zen_draw_hidden_field('cID', $cPath);
echo zen_draw_hidden_field('cPath', $cPath);
echo (isset($_GET['pID']) ? zen_draw_hidden_field('pID', $_GET['pID']) : '');
echo (isset($_GET['page']) ? zen_draw_hidden_field('page', $_GET['page']) : '');
echo (isset($_GET['search']) ? zen_draw_hidden_field('search', $_GET['search']) : '');
echo zen_draw_hidden_field('action', 'set_categories_products_sort_order');
?>
</div>
<?php
echo '</form>';
if (!isset($_GET['page'])) {
$_GET['page'] = '';
}
if (isset($_GET['set_display_categories_dropdown'])) {
$_SESSION['display_categories_dropdown'] = $_GET['set_display_categories_dropdown'];
}
if (!isset($_SESSION['display_categories_dropdown'])) {
$_SESSION['display_categories_dropdown'] = 0;
}
?>
</div>
Zen Follower
<div class="col-md-4"> <?php echo zen_draw_form('set_editor_form', FILENAME_CATEGORY_PRODUCT_LISTING, '', 'get', 'class="form-horizontal"'); ?> <div class="form-group"> <?php echo zen_draw_label(TEXT_EDITOR_INFO, 'reset_editor', 'class="col-sm-6 col-md-4 control-label"'); ?> <div class="col-sm-6 col-md-8"> <?php echo zen_draw_pull_down_menu('reset_editor', $editors_pulldown, $current_editor_key, 'onchange="this.form.submit();" class="form-control" id="reset_editor"'); ?> </div> <?php echo zen_hide_session_id(); echo zen_draw_hidden_field('cID', $cPath); echo zen_draw_hidden_field('cPath', $cPath); echo (isset($_GET['pID']) ? zen_draw_hidden_field('pID', $_GET['pID']) : ''); echo (isset($_GET['page']) ? zen_draw_hidden_field('page', $_GET['page']) : ''); echo zen_draw_hidden_field('action', 'set_editor'); ?> </div> <?php echo '</form>'; ?> <?php // check for which buttons to show for categories and products $check_categories = zen_has_category_subcategories($current_category_id); $check_products = zen_products_in_category_count($current_category_id, true, false, 1);dbltoe:
The Categories / Products page uses this code for selecting any ID, Model #, etc. I suppose it could be added into the display page for Quick Updates. Maybe someone more familiar with the php can tell us how.```
$zc_skip_products = false;
$zc_skip_categories = false;
if ($check_products == 0) {
$zc_skip_products = false;
$zc_skip_categories = false;
}
if ($check_categories == true) {
$zc_skip_products = true;
$zc_skip_categories = false;
}
if ($check_products > 0) {
$zc_skip_products = false;
$zc_skip_categories = true;
}
if (isset($_GET['search']) && !empty($_GET['search']) && $action != 'edit_category') {
$zc_skip_products = false;
}
if ($zc_skip_products == true) {
// toggle switch for display sort order
$categories_products_sort_order_array = array(array('id' => '0', 'text' => TEXT_SORT_CATEGORIES_SORT_ORDER_PRODUCTS_NAME),
array('id' => '1', 'text' => TEXT_SORT_CATEGORIES_NAME)
);
} else {
// toggle switch for display sort order
$categories_products_sort_order_array = array(
array('id' => '0', 'text' => TEXT_SORT_PRODUCTS_SORT_ORDER_PRODUCTS_NAME),
array('id' => '1', 'text' => TEXT_SORT_PRODUCTS_NAME),
array('id' => '2', 'text' => TEXT_SORT_PRODUCTS_MODEL),
array('id' => '3', 'text' => TEXT_SORT_PRODUCTS_QUANTITY),
array('id' => '4', 'text' => TEXT_SORT_PRODUCTS_QUANTITY_DESC),
array('id' => '5', 'text' => TEXT_SORT_PRODUCTS_PRICE),
array('id' => '6', 'text' => TEXT_SORT_PRODUCTS_PRICE_DESC)
);
}
echo zen_draw_form('set_categories_products_sort_order_form', FILENAME_CATEGORY_PRODUCT_LISTING, '', 'get', 'class="form-horizontal"');
?>
<div class="form-group">
<?php echo zen_draw_label(TEXT_CATEGORIES_PRODUCTS_SORT_ORDER_INFO, 'reset_categories_products_sort_order', 'class="col-sm-6 col-md-4 control-label"'); ?>
<div class="col-sm-6 col-md-8">
<?php echo zen_draw_pull_down_menu('reset_categories_products_sort_order', $categories_products_sort_order_array, $reset_categories_products_sort_order, 'onchange="this.form.submit();" class="form-control" id="reset_categories_products_sort_order"'); ?>
</div>
<?php
echo zen_hide_session_id();
echo zen_draw_hidden_field('cID', $cPath);
echo zen_draw_hidden_field('cPath', $cPath);
echo (isset($_GET['pID']) ? zen_draw_hidden_field('pID', $_GET['pID']) : '');
echo (isset($_GET['page']) ? zen_draw_hidden_field('page', $_GET['page']) : '');
echo (isset($_GET['search']) ? zen_draw_hidden_field('search', $_GET['search']) : '');
echo zen_draw_hidden_field('action', 'set_categories_products_sort_order');
?>
</div>
<?php
echo '</form>';
if (!isset($_GET['page'])) {
$_GET['page'] = '';
}
if (isset($_GET['set_display_categories_dropdown'])) {
$_SESSION['display_categories_dropdown'] = $_GET['set_display_categories_dropdown'];
}
if (!isset($_SESSION['display_categories_dropdown'])) {
$_SESSION['display_categories_dropdown'] = 0;
}
?>
</div>
Thank you but I tried this code earlier and search worked but when search is perform it shows results on categories page instead of quick updates page where can not update item quickly like on quick update page.
I see earlier in this thread few people mentioned about search via UPC but their provided links (years ago) are not valid nor they have provided codes / solution in this forum. I messaged them but have not heard back. Any one know how to accomplish this?
zennedOut
jsarwar:
Thank you but I tried this code earlier and search worked but when search is perform it shows results on categories page instead of quick updates page where can not update item quickly like on quick update page.
I see earlier in this thread few people mentioned about search via UPC but their provided links (years ago) are not valid nor they have provided codes / solution in this forum. I messaged them but have not heard back. Any one know how to accomplish this?
what would you like to accomplish with UPCs? are they already in your database? or do you need them to get into the db and then be able to search by them afterwards?
best.
Zen Follower
Looking to insert a search box on this page (quick update) where an item can be search using name/model/UPC and then update that item quickly on this page. Item name, model, upc are already in database just need search box on this item to search an item and update quickly.
Zen Follower
carlwhat:
what would you like to accomplish with UPCs? are they already in your database? or do you need them to get into the db and then be able to search by them afterwards?
best.
Any update on this?
zennedOut
jsarwar:
Any update on this?
yes. i did look at it (i have never used this module before); but not something to which i can currently devote my time.
if i were to go about it, i would utilize the soon to be merged (one hopes) search box code for v158:
https://github.com/zencart/zencart/pull/3948
and then utilize the new function in v158 called zen_build_keyword_where_clause:
https://github.com/zencart/zencart/blob/v158/includes/functions/functions_search.php
so you would add 2 new separate files into your install, check that they get loaded, then add the search box in the quick updates code; and then take the post variables from that to modify the sql where statement.
piece of steak! (unless u r a vegetarian....)
best.
Sensei
carlwhat:
if i were to go about it, i would utilize the soon to be merged (one hopes) search box code for v158:
https://github.com/zencart/zencart/pull/3948
and then utilize the new function in v158 called zen_build_keyword_where_clause:
https://github.com/zencart/zencart/blob/v158/includes/functions/functions_search.php
Hmmm ... be careful when toying with unreleased code from newer versions when updating code on older versions. Sometimes things get moved around and have incompatibilities when used out of context. And remember that the unreleased code from newer versions may change many times before being finally released and therefore won't be an exact match when attempting to apply the upgrade. Use with caution.
Zen Follower
carlwhat:
yes. i did look at it (i have never used this module before); but not something to which i can currently devote my time.
if i were to go about it, i would utilize the soon to be merged (one hopes) search box code for v158:
https://github.com/zencart/zencart/pull/3948
and then utilize the new function in v158 called zen_build_keyword_where_clause:
https://github.com/zencart/zencart/blob/v158/includes/functions/functions_search.php
so you would add 2 new separate files into your install, check that they get loaded, then add the search box in the quick updates code; and then take the post variables from that to modify the sql where statement.
piece of steak! (unless u r a vegetarian....)
best.
It did not work for 1.5.3. I uploaded files you mentioned on links above. If any one know the solution please let me know.
Totally Zenned
jsarwar:
It did not work for 1.5.3. I uploaded files you mentioned on links above. If any one know the solution please let me know.
Not a surprise at all. Four major releases since then and MANY versions of PHP.
It's really time to update. Six years is a long time in softwareville.
Zen Follower
Zencart 1.5.7d PHP 7.4
Can anyone help with this php warning:
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /admin/quick_updates.php on line 202.
line 202 is if(sizeof($_POST['quick_updates_new']) > 0){
// bof prepare al new data for database input
if(sizeof($_POST['quick_updates_new']) > 0){
foreach($_POST['quick_updates_new'] as $key => $value){
// $value is an array here (contains values like ['products_model'][$products_id] = '1' for example)
$_POST['quick_updates_new'][$key] = zen_db_prepare_input($value);
}
}
// eof prepare al new data for database input
Thanks
New Zenner
Hello. Does anyone have experience with the interaction of the plugin Quick Updates and Group Pricing (per Item)?
Because each module works with different prices. But it would be great if you could quickly adjust the group prices via quick updates.
Totally Zenned
Hi All,
I am running a test version of 1.58a of zencart with all the latest versions of php etc
My question is that I have added fields are displayed in version 1.5.5e (so I can edit using quick updates) and are wanting to do the same with version 1.5.8a.
I need to know what file would have all the information in it please.
Any help is appreciated.
Totally Zenned
Hi All,
I am running a test version of 1.58a of zencart with all the latest versions of php etc
My question is that I have added fields are displayed in version 1.5.5e (so I can edit using quick updates) and are wanting to do the same with version 1.5.8a.
I need to know what file would have all the information in it please.
Any help is appreciated.
Zen Follower
https://www.zen-cart.com/downloads.php?do=file&id=26
Not running with php 8 and above
in admin /quick_updates.php
says error in line 45 :
$currencies->currencies[DEFAULT_CURRENCY]['decimal_places'] = 4;
and in line 425:
$rows = $split_page * MAX_DISPLAY_ROW_BY_PAGE - MAX_DISPLAY_ROW_BY_PAGE;
Zen Follower
You could try using this plug-in https://www.zen-cart.com/downloads.php?do=file&id=2358 not as comprehensive but might work with php 8 and above
Totally Zenned
Hi All,
I am using Quick Updates on a linux Server with version 1.58a, php 8.1, Numinix Product Fields and EP$ and I am having the following issue.
QUICK UPDATES
7 Product(s) Updated!
extra_field, product_id(s): 49357, 49356, 49355, 49354, 49353, 49352, 49351
Showing that the field has been updated but it is not showing when it goes back to the item list
When I go to the product itself (admin Categories / Products) the stock location is not showing the location either.
If I change the Stock location (numinix product field) in the product, it does not show in the product when I preview and then press update.
It does not appear to be recording in the database even though it is saying that it has been updated.
I have other numinix product fields like Condition, Waranty, Handling Fee, Additional Handling Fee (which are Working as they should)
Not working are the Stock Location (extra_field) and Suppliers in the product section but you are able to update in Quick Update no issue.
It apears that some fields are working and some are not so I am at a loss as to what I should do.
I am not real sure how to find an item number in the database so any assistance would be appreciated
New Zenner
carlwhat:
yes. i did look at it (i have never used this module before); but not something to which i can currently devote my time.
if i were to go about it, i would utilize the soon to be merged (one hopes) search box code for v158:
https://github.com/zencart/zencart/pull/3948
and then utilize the new function in v158 called zen_build_keyword_where_clause:
https://github.com/zencart/zencart/blob/v158/includes/functions/functions_search.php
so you would add 2 new separate files into your install, check that they get loaded, then add the search box in the quick updates code; and then take the post variables from that to modify the sql where statement.
piece of steak! (unless u r a vegetarian....)
best.
Running 1.5.8a add following code to quick update page
<div class="col-sm-offset-8 col-sm-4">```
<?php include DIR_WS_MODULES . 'search_box.php'; ?>
</div>
other two mentioned files are already included in this ZC version but when search is performed it does not do anything.
How to include search box on this page to quickly search for a product to update it?
Totally Zenned
Hi All,
Running version 1.58a on a linux server running PHP Version: 8.1.31
Template Bootstrap Version 3.7.4
CKEditor version 5
Image Handler version 5
Quick Updates version 2.0.1
I have just received this error message in the log file:
[21-May-2025 19:36:25 Australia/Sydney] Request URI: /admin/index.php?cmd=quick_updates&page=50, IP address: 130.105.98.125, Language id 1
#0 /zc_plugins/QuickUpdates/v2.0.10/admin/quick_updates.php(1771): zen_debug_error_handler()
#1 /admin/index.php(23): require('/home/a1ntacdk3...')
--> PHP Warning: Undefined variable $text in /zc_plugins/QuickUpdates/v2.0.10/admin/quick_updates.php on line 1771.
This is what is in the file from line 1767 to 1781
foreach((array)$export_products as $key => $value){
if(!empty($value['products_model'])) $text = ' (' . $value['products_model'] . ')';
$quick_copy_from_array[] = array(
'id' => $key,
'text' => 'id:' . $key . $text
);
}
echo zen_draw_form('quickcopyfrom', FILENAME_QUICK_UPDATES);
echo zen_draw_pull_down_menu('quick_copy_from_id', $quick_copy_from_array, $_SESSION['quick_updates']['quick_copy_from_id']);
$array = array();
//$array[] = array('id' => $_SESSION['quick_updates']['quick_copy_number'],'text' => $_SESSION['quick_updates']['quick_copy_number'] . 'x');
$array[] = array('id' => 0,'text' => '0x');
$array[] = array('id' => 1,'text' => '1x');
$array[] = array('id' => 10,'text' => '10x');
echo zen_draw_pull_down_menu('quick_copy_number', $array, $_SESSION['quick_updates']['quick_copy_number']);
Any assistance on how to correct the issue would be appreciated.
Fields marked required must be completed.
Tell staff why this post should be reviewed.