Page 38 of 81 FirstFirst ... 28363738394048 ... LastLast
Results 371 to 380 of 805
  1. #371
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Super Orders v4.0 Support Thread

    batch status update and batch form print are not working in 1.5.3, check all is not working, if you manually edit the url it will work, but the "check all" button does not work.

    in batch form print, if you manually select, it does not pass the batch through to print preview.
    Last edited by DigitalShadow; 14 Jul 2014 at 12:17 PM.

  2. #372
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Super Orders v4.0 Support Thread

    the button creates this link....

    /super_batch_forms.php?status=2&ot_sign=1&checked=0'

    which doesn't work, but if i type this url into the browser

    /super_batch_forms.php?start_date=&end_date=&status=2&products=&customers=&countr ies=&payments=&ot_sign=1&order_total=&search=&oid_range_first=&oid_range_last=&c hecked=1

    it works, exactly the same is true for batch status update

  3. #373
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Super Orders v4.0 Support Thread

    Quote Originally Posted by DigitalShadow View Post
    batch status update and batch form print are not working in 1.5.3, check all is not working, if you manually edit the url it will work, but the "check all" button does not work.

    in batch form print, if you manually select, it does not pass the batch through to print preview.
    I made the following changes on a ZenCart 1.5.3 installation running PHP 5.3.27. (In this change, you're moving away from a page refresh to using JavaScript.) You can use this as a temporary fix until DivaVocals or someone releases a full update.

    === OPEN /admin/super_batch_forms.php ===

    === FIND AT (OR NEAR) LINE 117 ===
    Code:
    <?php /* END addition */ ?>
    === BEFORE, ADD ===

    Code:
        function checkByParent(aId) {
            var collection = document.getElementById(aId).getElementsByTagName('INPUT');
            for (var x=0; x<collection.length; x++) {
                if (collection[x].type.toUpperCase()=='CHECKBOX') {
                    if (collection[x].checked == true)
    
    
                    {
                        collection[x].checked = false;
                    }
                    else { collection[x].checked = true; }
                }
            }
        }
    === FIND AT (OR NEAR) LINE 412 ===
    PHP Code:
                  if ($checked) {
                    echo 
    '<INPUT class="normal_button button" TYPE="BUTTON" VALUE="' BUTTON_UNCHECK_ALL '" ONCLICK="window.location.href=\'' zen_href_link(FILENAME_SUPER_BATCH_FORMSzen_get_all_get_params(array('checked')) . 'checked=0''NONSSL') . '\'">';
                  } else {
                    echo 
    '<INPUT class="normal_button button" TYPE="BUTTON" VALUE="' BUTTON_CHECK_ALL '" ONCLICK="window.location.href=\'' zen_href_link(FILENAME_SUPER_BATCH_FORMSzen_get_all_get_params(array('checked')) . 'checked=1''NONSSL') . '\'">';
                  } 
    === REPLACE WITH ===
    PHP Code:
             echo '<INPUT class="normal_button button" TYPE="BUTTON" VALUE="' BUTTON_CHECK_ALL '" ONCLICK="checkByParent(\'ordersList\');">'
    === FIND AT (OR NEAR) LINE 428 ===
    (Careful this may appear multiple times....)

    Code:
                      <td valign="top">
    
            <table border="0" width="100%" cellspacing="0" cellpadding="2">
                          <tr class="dataTableHeadingRow">
                        <td class="dataTableHeadingContent" align="left" colspan="2">&nbsp;&nbsp;<?php echo TABLE_HEADING_ORDERS_ID; ?></td>
                            <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_CUSTOMERS; ?></td>
                            <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ORDER_TOTAL; ?></td>
                            <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_DATE_PURCHASED; ?></td>
                            <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></td>
                        <td class="dataTableHeadingContent" align="left" colspan="2"><?php echo TABLE_HEADING_ORDER_STATUS; ?></td>
                          </tr>
    <?php
        while (!$orders->EOF) {
    ?> 
            <tr class="dataTableRow" onMouseOver="rowOverEffect(this);this.style.cursor='default'" onMouseOut="rowOutEffect(this)">
                            <td class="dataTableContent" align="left"><?php 
                echo zen_draw_checkbox_field('batch_order_numbers[' . $orders->fields['orders_id'] . ']', 'yes', $checked);
                      echo $orders->fields['orders_id'];
                    ?></td>
                            <td class="dataTableContent" align="right"><?php echo '[' . $orders->fields['customers_id'] . ']'; ?></td>
                            <td class="dataTableContent" align="left"><?php echo $orders->fields['customers_name']; ?></td>
                            <td class="dataTableContent" align="right"><?php echo $currencies->format($orders->fields['order_total']); ?></td>
                            <td class="dataTableContent" align="center"><?php echo zen_datetime_short($orders->fields['date_purchased']); ?></td>
                            <td class="dataTableContent" align="left"><?php echo $orders->fields['payment_method']; ?></td>
                            <td class="dataTableContent" align="left"><?php echo $orders->fields['orders_status_name']; ?></td>
                            
                            <td class="dataTableContent" align="right"><?php echo '<a href="' . zen_href_link(FILENAME_ORDERS, 'oID=' . $orders->fields['orders_id'] . '&action=edit', 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_details.gif', ICON_ORDER_DETAILS) . '</a>&nbsp'; ?></td>
                          </tr>
     
    <?php
          $orders->MoveNext();
        }
      }  // END if ($orders->RecordCount() > 0)
    ?>
                    </form>
                      </table></td>
    === WITHIN THIS BLOCK, FIND ===

    Code:
                      <td valign="top">
    === AFTER, ADD ===
    Code:
    <div id="ordersList">
    === WITHIN THIS BLOCK, FIND ===
    Code:
    </form></table></td>
    === REPLACE WITH ===
    Code:
    </form></table></div></td>
    === SAVE CHANGES ===

  4. #374
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    Here are the changes for Super Batch Status (Update):

    === OPEN /admin/super_batch_status.php ===

    === FIND AT (OR NEAR) LINE 104 ===
    Code:
    // -->
    === BEFORE, ADD ===

    Code:
        function checkByParent(aId) {
            var collection = document.getElementById(aId).getElementsByTagName('INPUT');
            for (var x=0; x<collection.length; x++) {
                if (collection[x].type.toUpperCase()=='CHECKBOX') {
                    if (collection[x].checked == true)
    
    
                    {
                        collection[x].checked = false;
                    }
                    else { collection[x].checked = true; }
                }
            }
        }
    === FIND AT (OR NEAR) LINE 333 ===
    PHP Code:
                  if ($checked) {
                    echo 
    '<INPUT class="normal_button button" TYPE="BUTTON" VALUE="' BUTTON_UNCHECK_ALL '" ONCLICK="window.location.href=\'' zen_href_link(FILENAME_SUPER_BATCH_STATUSzen_get_all_get_params(array('checked')) . 'checked=0''NONSSL') . '\'">';
                  } else {
                    echo 
    '<INPUT class="normal_button button" TYPE="BUTTON" VALUE="' BUTTON_CHECK_ALL '" ONCLICK="window.location.href=\'' zen_href_link(FILENAME_SUPER_BATCH_STATUSzen_get_all_get_params(array('checked')) . 'checked=1''NONSSL') . '\'">';
                  } 
    === REPLACE WITH ===

    PHP Code:
               echo '<INPUT class="normal_button button" TYPE="BUTTON" VALUE="' BUTTON_CHECK_ALL '" ONCLICK="checkByParent(\'ordersList\');">'
    === FIND AT (OR NEAR) LINE 344 ===
    Code:
            <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
    === REPLACE WITH ===
    Code:
            <td><div id="ordersList"><table border="0" cellpadding="0" cellspacing="0" width="100%">
    === FIND AT (OR NEAR) LINE 384 ===
    Code:
                </table></td>
    === REPLACE WITH ===
    Code:
                </table></div></td>

    === SAVE CHANGES ===

    I'm also attaching both files as a Zip File. You should only have to upload these and overwrite them in your /admin/ directory.
    Attached Files Attached Files
    Last edited by retched; 19 Jul 2014 at 01:04 AM.

  5. #375
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    When I return, I'll finish creating the Super orders Github repo.. Would love if you could fork it and submit your changes to the repo..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #376
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    When it's ready, please post it up here and I'll fork it and make my change.

  7. #377
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    Quote Originally Posted by retched View Post
    When it's ready, please post it up here and I'll fork it and make my change.
    Awesome!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #378
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    Quote Originally Posted by retched View Post
    When it's ready, please post it up here and I'll fork it and make my change.
    Super Orders Github repo: https://github.com/DivaVocals/zen_SuperOrders
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #379
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    Is it just me or is batch form print still not showing the multiple frames for printing multiple orders at once?

  10. #380
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    681
    Plugin Contributions
    8

    Default Re: Super Orders v4.0 Support Thread (for ZC v1.5.x)

    Quote Originally Posted by DigitalShadow View Post
    Is it just me or is batch form print still not showing the multiple frames for printing multiple orders at once?
    I'm not seeing any problems on my side with my changes and I'm running 1.5.3. All checkboxes and the three buttons above the order listing work for me.

 

 
Page 38 of 81 FirstFirst ... 28363738394048 ... LastLast

Similar Threads

  1. v150 Edit Orders v4.0 Support Thread
    By DivaVocals in forum Addon Admin Tools
    Replies: 1877
    Last Post: 6 May 2025, 05:10 PM
  2. Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 656
    Last Post: 18 Apr 2016, 06:28 PM
  3. v139h Super Orders v3.0 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1018
    Last Post: 28 Apr 2014, 11:38 PM
  4. OLD Super Orders 2.0 (See v3.0 thread instead)
    By BlindSide in forum All Other Contributions/Addons
    Replies: 2019
    Last Post: 17 Jan 2012, 05:43 AM
  5. RE: Super Orders v3.0 Support Thread
    By Johnnyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Jun 2011, 09:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR