Zen Cart Logo
Forums / Addon Admin Tools / Quick Updates plugin [support]

Quick Updates plugin [support]

Views: 180,415

Results 641 to 660 of 670
11 Sep 2020, 2:17 AM
#641
dbltoe avatar

dbltoe

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?

11 Sep 2020, 10:16 AM
#642
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.

11 Sep 2020, 1:32 PM
#643
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,767
Plugin Contributions:
9

Re: Quick Updates plugin [support]

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>
11 Sep 2020, 10:22 PM
#644
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.```

<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>
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?
11 Sep 2020, 10:39 PM
#645
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Quick Updates plugin [support]

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.

11 Sep 2020, 10:42 PM
#646
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.

14 Sep 2020, 10:23 PM
#647
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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?

15 Sep 2020, 3:25 PM
#648
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Quick Updates plugin [support]

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.

15 Sep 2020, 3:35 PM
#649
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Quick Updates plugin [support]

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.

16 Sep 2020, 11:39 PM
#650
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.

17 Sep 2020, 12:03 AM
#651
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,767
Plugin Contributions:
9

Re: Quick Updates plugin [support]

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.

6 May 2022, 2:40 PM
#652
ianhg avatar

ianhg

Zen Follower

Join Date:
Jul 2007
Posts:
345
Plugin Contributions:
3

Re: Quick Updates plugin [support]

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

28 Feb 2023, 5:13 PM
#653
cruzito avatar

cruzito

New Zenner

Join Date:
Apr 2005
Posts:
3
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.

12 Nov 2023, 1:24 AM
#654
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.

12 Nov 2023, 1:26 AM
#655
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.

17 Jan 2024, 5:52 AM
#656
diptimoy avatar

diptimoy

Zen Follower

Join Date:
Apr 2012
Location:
Bardhaman , Bharat
Posts:
217
Plugin Contributions:
1

Re: Quick Updates plugin [support]

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;

27 Apr 2024, 9:05 PM
#658
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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

  1. Showing that the field has been updated but it is not showing when it goes back to the item list

  2. When I go to the product itself (admin Categories / Products) the stock location is not showing the location either.

  3. 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.

  4. It does not appear to be recording in the database even though it is saying that it has been updated.

  5. I have other numinix product fields like Condition, Waranty, Handling Fee, Additional Handling Fee (which are Working as they should)

  6. 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

17 Nov 2024, 7:05 PM
#659
get2go avatar

get2go

New Zenner

Join Date:
Jul 2021
Posts:
12
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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?

21 May 2025, 11:30 AM
#660
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Quick Updates plugin [support]

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.