Zen Cart Logo
Forums / Addon Admin Tools / Super Orders v4.0 Support Thread for ZC v1.5.x

Super Orders v4.0 Support Thread for ZC v1.5.x

Sticky

Views: 172,102

Results 401 to 420 of 816
6 Aug 2014, 2:57 AM
#401
three_sisters avatar

three_sisters

Zen Follower

Join Date:
Nov 2006
Location:
Indiana
Posts:
188
Plugin Contributions:
0

Super Orders v4.0 Support Thread for ZC v1.5.x

After I batch update the status of my orders to "complete", some of them revert back to "pending". I have been CAREFULLY checking to be sure all are checked and the "pending" total equals "0" after I'm done. Then, mysteriously, a select few will revert back to pending.

I believe I have tracked it down to something switching them back after I capture my funds in PayPal. Tonight, the only orders that switched back were orders that were paid with "paypalwpp". Also, the comments in the order history at the time of the pending status change references the PayPal status change to "complete".

Can someone help me find where to fix this? It seems like a switch somewhere, but I can't find it.

Thanks a million!

6 Aug 2014, 1:04 PM
#402
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Three Sisters:

After I batch update the status of my orders to "complete", some of them revert back to "pending". I have been CAREFULLY checking to be sure all are checked and the "pending" total equals "0" after I'm done. Then, mysteriously, a select few will revert back to pending.

I believe I have tracked it down to something switching them back after I capture my funds in PayPal. Tonight, the only orders that switched back were orders that were paid with "paypalwpp". Also, the comments in the order history at the time of the pending status change references the PayPal status change to "complete".

Can someone help me find where to fix this? It seems like a switch somewhere, but I can't find it.

Thanks a million!

Not caused by Super Orders.. this is something your payment module is doing, and you need to look at the settings for your payment module to "fix"..

15 Aug 2014, 8:51 PM
#403
chris_stackhouse avatar

chris_stackhouse

New Zenner

Join Date:
Aug 2014
Location:
Washington Township, Gloucester County, New Jersey, United States
Posts:
11
Plugin Contributions:
0

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

I need some help to add a much needed feature to Super Orders. Right now I have it set up so that orders that are paid for get assigned the status "In Production". I need a function to query the contents of an order before assigning it a status update and if it contains an item from a certain category it gets assigned a different status "Wholesale - In Production".

There's these two functions from admin/includes/functions/general.php

////
  function zen_cfg_pull_down_order_statuses($order_status_id, $key = '') {
    global $db;
    $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');

    $statuses_array = array(array('id' => '0', 'text' => TEXT_DEFAULT));
    $statuses = $db->Execute("select orders_status_id, orders_status_name
                              from " . TABLE_ORDERS_STATUS . "
                              where language_id = '" . (int)$_SESSION['languages_id'] . "'
                              order by orders_status_id");

    while (!$statuses->EOF) {
      $statuses_array[] = array('id' => $statuses->fields['orders_status_id'],
                                'text' => $statuses->fields['orders_status_name'] . ' [' . $statuses->fields['orders_status_id'] . ']');
      $statuses->MoveNext();
    }

    return zen_draw_pull_down_menu($name, $statuses_array, $order_status_id);
  }

  function zen_get_order_status_name($order_status_id, $language_id = '') {
    global $db;

    if ($order_status_id < 1) return TEXT_DEFAULT;

    if (!is_numeric($language_id)) $language_id = $_SESSION['languages_id'];

    $status = $db->Execute("select orders_status_name
                            from " . TABLE_ORDERS_STATUS . "
                            where orders_status_id = '" . (int)$order_status_id . "'
                            and language_id = '" . (int)$language_id . "'");

    return $status->fields['orders_status_name'] . ' [' . (int)$order_status_id . ']';
  }

////

And then there's this from admin/includes/init_includes/init_so_config.php

 $sql = "INSERT IGNORE INTO ".DB_PREFIX."configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'Auto Status - Payment', 'AUTO_STATUS_PAYMENT', '2', 'Number of the order status assigned when a payment (<strong>not</strong> attached to a purchase order) is added to the payment data.', '".$so_configuration_id."', 5, now(), now(), 'zen_get_order_status_name', 'zen_cfg_pull_down_order_statuses(')";
    $db->Execute($sql);

I know I pretty much need to clone the above code from init_so_config.php into another drop down option for my admin but I'm not sure if I need to edit one of the two above functions or create an entirely new one to compare the customer's order to their payment status. Any help in accomplishing this would be so greatly appreciated.

21 Sep 2014, 11:55 AM
#404
jmeca avatar

jmeca

New Zenner

Join Date:
Nov 2006
Location:
Sapin
Posts:
44
Plugin Contributions:
0

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

Hi, I installed superorders in zencart 1.5.3 whit two languages ​​Spanish and English in English I can see the orderlist but in Spanish i can't see it.

I copied languages ​​and I have doubled renaming the folder, the truth is that it took several days with this and can not find the solution.

Can you help me, please.Attachment 14535Attachment 14536

Thank you very much for a little of your time.

22 Sep 2014, 12:55 AM
#405
rayo avatar

rayo

New Zenner

Join Date:
Jun 2013
Location:
Sydney
Posts:
25
Plugin Contributions:
0

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

Hi,

I need to add customers comments into the display in the Master Packing Slip PDF. Can anyone suggest how I do this?

ZC 1.5.1 Super Order 4.0.3.

Thanks.

22 Sep 2014, 6:55 PM
#406
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

rayo:

Hi,

I need to add customers comments into the display in the Master Packing Slip PDF. Can anyone suggest how I do this?

ZC 1.5.1 Super Order 4.0.3.

Thanks.

PDF packingslip code was contributed LONG ago by another contributor who is LONG SINCE gone and has not supported the feature.. Not only that the PDF library which it is built on (FPDF) is an OLD version of FPDF.. I'll keep it in the mod as long as it continues to work and doesn't pose a security threat.. otherwise I can provide NO insight on how to modify it or even how to update FPDF to the latest version (and YEP I did try to upgrade it myself).

Perhaps another community member will be able to chime in..

24 Oct 2014, 1:07 AM
#408
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
944
Plugin Contributions:
3

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

ShopVille:

I'm using super orders with zc 1.5.0 suddenly when trying to batch sttus update i get to a page not found https://www.mywebsite.com/admin/super_batch_status.php?action=batch_status

No new plugins installed since when it was working

did you copy all the files over from the zip file? I'm using the one from the github and the one posted here on ZenCart and the file is there.

24 Oct 2014, 1:44 PM
#409
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

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

retched:

did you copy all the files over from the zip file? I'm using the one from the github and the one posted here on ZenCart and the file is there.

The admin/super_batch_status.php is there, that's not the problem, the issue happens when actually attempting to update i get to this page and a 404

https://www.mywebsite.com/admin/super_batch_status.php?action=batch_status
24 Oct 2014, 1:57 PM
#410
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

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

I just noticed that even regular updates (in an order) not batch is not working as well https://www.mysite.com/admin/orders.php?oID=35454&action=update_order is getting me a 404 as well so this is certainly not a super orders issue

12 Nov 2014, 9:50 AM
#411
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

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

I got errors after installing Supper Orders 4.0.9 on a ZC 1.5.3 site. In the files:

  • YOUR_ADMIN/invoice.php
  • YOUR_ADMIN/orders.php
  • YOUR_ADMIN/supper_data_sheet.php

These files have this code

<!-- BOF added to get currency type and value for totals -->
                <?php $dbc="select currency, currency_value from " . TABLE_ORDERS . " where orders_id ='" . $_GET['oID'] . "'";
                $result = mysql_query($dbc);
                $row = mysql_fetch_array ($result, MYSQL_NUM);
                $cu = $row[0];
                $cv = $row[1];
                ?>
<!-- EOF added to get currency type and value for totals -->

the errors are obviously caused by the (unnecessary) mysql calls. My proposal is to change this to

<!-- BOF added to get currency type and value for totals -->
                <?php $dbc="select currency, currency_value from " . TABLE_ORDERS . " where orders_id ='" . $_GET['oID'] . "'";
                $result = $db->Execute($dbc);
                $cu = $result->fields[currency];
                $cv = $result->fields[currency_value];
                ?>
<!-- EOF added to get currency type and value for totals -->

And maybe ```php
$cv = $result->fields[currency_value];

12 Nov 2014, 11:08 AM
#412
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

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

Another failure, this time in YOUR_ADMIN/super_batch_forms.php. There is missing an open an closing tag for the javascript, this can in some cases cause the printing buttons on the page not to work. You can press them, but nothing happens.

      <script type="text/javascript">
  <?php
  /* BEGIN addition added javascript for forms */
  ?>


        function GenerateBatchForms(action) {
          var batch_form = document.forms["batch_print"];

          if (action == "invoicepages") {
            batch_form.action = 'super_batch_pages.php';
          }
          else {
            //batch_form.action = (batch_form.action).split('?')[0] + '?action=' + action;
            batch_form.action = 'super_batch_forms.php?action=' + action;
          }
          batch_form.submit();
        }



  <?php /* END addition */ ?>
        < !--
                function init() {
                  cssjsmenu('navbar');
                  if (document.getElementById)
                  {
                    var kill = document.getElementById('hoverJS');
                    kill.disabled = true;
                  }
                }
        // -->
      </script>

should be:

  <?php
  /* BEGIN addition added javascript for forms */
  ?>
     <script type="text/javascript">

        function GenerateBatchForms(action) {
          var batch_form = document.forms["batch_print"];

          if (action == "invoicepages") {
            batch_form.action = 'super_batch_pages.php';
          }
          else {
            //batch_form.action = (batch_form.action).split('?')[0] + '?action=' + action;
            batch_form.action = 'super_batch_forms.php?action=' + action;
          }
          batch_form.submit();
        }
      </script>
  <?php /* END addition */ ?>

      <script type="text/javascript">
        < !--
                function init() {
                  cssjsmenu('navbar');
                  if (document.getElementById)
                  {
                    var kill = document.getElementById('hoverJS');
                    kill.disabled = true;
                  }
                }
        // -->
      </script>
12 Nov 2014, 12:16 PM
#413
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

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

Oh well, since I am working on this module, an upgrade for FPDF is on the way :laugh:, because that also stoped working. It is using magic qoutes, and that is no longer supported.

12 Nov 2014, 1:44 PM
#414
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

There is a beta for Zen Cart 1.5.3 on GitHub. Rather than starting from scratch, you could contribute there.

12 Nov 2014, 1:48 PM
#415
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

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

I am getting the following error log:

PHP Warning: mysql_insert_id(): Access denied for user 'root'@'localhost' (using password: NO) in /xxxx/xxxxx/xxxxxx/xxxxxx/xxxxx/includes/classes/super_order.php on line 399

mysql_insert_id(): A link to the server could not be established in /xxxx/xxxxx/xxxxxx/xxxxxx/xxxxx/includes/classes/super_order.php on line 399

This is on line 399

$new_index = mysql_insert_id();
return $new_index;

I am using ZC 1.5.3 and I know that super orders is not yet fully 1.5.3 ready but since this is the only problem I am experiencing, I thought someone could assist with the correct code to solve this, what seems to be small, issue.

12 Nov 2014, 1:50 PM
#416
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Design75:

Oh well, since I am working on this module, an upgrade for FPDF is on the way :laugh:, because that also stoped working. It is using magic qoutes, and that is no longer supported.
Go for it.... because I was about to pull out the PDF packing slip from the next release. The contributor of the PDF packing slip feature has LONG since slipped away into the ether, and though I tried, updating FPDF to the latest version of the library has proven to be more difficult than my meager skillset.

Before you start this work, there is a v1.5.3 compatible version in my Github repo. Another community member (jeking) contributed the 1.5.3 updates.. Suggest starting from there maybe???

https://github.com/DivaVocals/zen_SuperOrders

12 Nov 2014, 1:56 PM
#417
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

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

Just after my post I saw the post from DivaVocals above and found the code from github

$new_index = $db->Insert_ID(); // Change for ZenCart 1.5.3 and beyond.
return $new_index;

Thanks, I will monitor the logs section and give feedback.

12 Nov 2014, 2:01 PM
#418
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

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

Great, I will use the repo at github

12 Nov 2014, 2:39 PM
#419
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Design75:

Great, I will use the repo at github

Awesome.. Fork it and submit a pull request.. I'll merge it, and test your changes.. I think jeking will be happy to help test too:smile:.. once we give you the thumbs up on the testing, go ahead and submit it.. My time is SWAMPED with three site builds right now, and having you and jeking onboard with Super Orders is a real GODSEND!!!

12 Nov 2014, 2:40 PM
#420
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

jeking:

There is a beta for Zen Cart 1.5.3 on GitHub. Rather than starting from scratch, you could contribute there.I merged your pull request this morning.. Finally got a chance to test.. (yeah I know I'm lagging!!!:laugh:)