Zen Cart Logo
Forums / All Other Contributions/Addons / OLD Super Orders 2.0 (See v3.0 thread instead)

OLD Super Orders 2.0 (See v3.0 thread instead)

Locked

Views: 456,074

Results 1,501 to 1,520 of 2,020
This thread is locked. New replies are disabled.
14 Nov 2009, 2:42 PM
#1501
paddy100 avatar

paddy100

New Zenner

Join Date:
Feb 2007
Location:
UK & Germany
Posts:
52
Plugin Contributions:
1

OLD Super Orders 2.0 (See v3.0 thread instead)

Got a problem with Super orders (rev 47)and Firefox.

The 'Payment, Purchase Order and Refund on the main Superorders webpage do not work in FF3.5.5

They work perfectly in IE8, so I know its not Superorders, but if anyone can offer some advice its appreciated.

this is what ive done so far

  1. Allowed all popups in FF
  2. Enabled Javascript

Anything else that I should try??

Thanks in advance

14 Nov 2009, 3:39 PM
#1502
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

paddy100:

Got a problem with Super orders (rev 47)and Firefox.

**The 'Payment, Purchase Order and Refund on the main Superorders webpage do not work in FF3.5.5
**
They work perfectly in IE8, so I know its not Superorders, but if anyone can offer some advice its appreciated.

this is what ive done so far

  1. Allowed all popups in FF
  2. Enabled Javascript

Anything else that I should try??

Thanks in advanceYou'll need to provide more details than this.. "do not work in FF3.5.5" gives no indication as to what the issue is..

14 Nov 2009, 5:09 PM
#1503
paddy100 avatar

paddy100

New Zenner

Join Date:
Feb 2007
Location:
UK & Germany
Posts:
52
Plugin Contributions:
1

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Sorry for that:

When I hover over the image of the buttons I can see the code that it executes in the bottom Left corner, just like IE, but when I press the buttons nothing happens.

In IE7, and 8 the new window appears and more info is input......however in FF I see the code that begins

javascript:popupWindow('http://localhost/zencart/admin/super_payments.php?.......etc

but no popup or new window ever appears.

IE is fine for me at the min, but I am in the process of moving to Ubuntu, this is one of the things I need fixed, so 'er indoors' can keep working.:P LOL

15 Nov 2009, 3:59 AM
#1504
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

To be honest this isn't a problem I've ever seen reported, and IMO it seems more indicative of a browser client issue versus a Super Orders issue.. You might want to check your browser settings to see if you have disabled javascript or if you have some sort of pop-up killer enabled.. Outside of that, you might want to try reinstalling Super Orders (though quite honestly if this is an issue of a browser setting that will likely not fix the issue..) Wish I could be of more help.. Hopefully someone else will chime in..

paddy100:

Sorry for that:

When I hover over the image of the buttons I can see the code that it executes in the bottom Left corner, just like IE, but when I press the buttons nothing happens.

In IE7, and 8 the new window appears and more info is input......however in FF I see the code that begins

javascript:popupWindow('http://localhost/zencart/admin/super_payments.php?.......etc

> 
> IE is fine for me at the min, but I am in the process of moving to Ubuntu, this is one of the things I need fixed, so 'er indoors' can keep working.:P LOL
15 Nov 2009, 1:20 PM
#1505
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Does this mod only affect the back office?

15 Nov 2009, 2:07 PM
#1506
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Asdesign:

Does this mod only affect the back office?
Yes .

15 Nov 2009, 10:34 PM
#1507
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Okay to continue on in my adventure of compiling a fully patched version of Super Orders, I have run into a challenge, and I was hoping that I could get a hand..

While I personally do not think that the "Edit Status History" feature is a particularlyy useful feature of Super Orders, (I think it creates an audit/accountability issue to allow the editing of order notes/comments) it's here and I suppose that folks are using it, but it is not working as it should. This particular problem also goes back to 2006, and has not been fully resolved/addressed even in the latest version of Super Orders. It is my understanding that this particular issue is another one of the security flaws within Super Orders that Phillip has been so good to point out to the community..

Apparently the issue is this:

The problem you experienced with the tags being displayed improperly in status update comments is due to the comments not being properly scrubbed before inserting them into the DB.The following posts which helped me fix the issue in the super_order.php and super_batch_status.php files.

http://www.zen-cart.com/forum/showpost.php?p=277365&postcount=220
http://www.zen-cart.com/forum/showpost.php?p=406913&postcount=621

(So that it's clear to anyone reading this, the fix I applied was based largely on the 1st post, the second post includes an incorrect fix, but gave me a clue where a second change needed to be made..)

I made the following change around line 125 in super_orders.php:

        //$comments = zen_db_scrub_in($_POST['comments']);  // replaced line
        $comments = zen_db_scrub_in($_POST['comments'], true);
```I made the following change around line 69 in super_batch_status.php:
//$notify_comments = $_POST['notify_comments'];  // replaced line
$notify_comments = zen_db_scrub_in($_POST['notify_comments'], true);

Edit Order Status injects HTML line breaks and ASCII line breaks into the database, and these line breaks are displayed when the customer views their order history from "Status History & Comments". For example:
> New test.. I want to see if the HTML line breaks are added to the comments.<br />\r\n<br />\r\nIf this works, when I edit the comments, the line breaks end up with these weird characters after them..<br />\r\n<br />\r\nDon\'t understand why this code is broken..
I am fairly certain that it's this section of the super_edit.php code that needs to be corrected - around line 433:
      $this_status = $_POST['status_' . $this_history_id];
      $this_comments = zen_db_scrub_in($_POST['comments_' . $this_history_id]);
      $this_delete = $_POST['delete_' . $this_history_id];
      $change_exists = false;

Now all that said, is this even a USEFUL feature.. because the EASIEST fix is to hide the "Edit Order Status" link..:laugh::laugh:
15 Nov 2009, 10:46 PM
#1508
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Okay to continue on in my adventure of compiling a fully patched version of Super Orders, I have run into a challenge, and I was hoping that I could get a hand..

While I personally do not think that the "Edit Status History" feature is a particularly useful feature of Super Orders, (I think it creates an audit/accountability issue to allow the editing of order notes/comments) it's here and I suppose that folks are using it, but it is not working as it should. This particular problem also goes back to 2006, and has not been fully resolved/addressed even in the latest version of Super Orders. It is my understanding that this particular issue is another one of the security flaws within Super Orders that Phillip has been so good to point out to the community..

Apparently the issue is this:

The problem you experienced with the tags being displayed improperly in status update comments is due to the comments not being properly scrubbed before inserting them into the DB.The following posts which helped me fix the issue in the super_order.php and super_batch_status.php files.

http://www.zen-cart.com/forum/showpost.php?p=277365&postcount=220
http://www.zen-cart.com/forum/showpost.php?p=406913&postcount=621

(So that it's clear to anyone reading this, the fix I applied was based largely on the 1st post, the second post includes an incorrect fix, but gave me a clue where a second change needed to be made..)

I made the following change around line 125 in super_orders.php:

        //$comments = zen_db_scrub_in($_POST['comments']);  // replaced line
        $comments = zen_db_scrub_in($_POST['comments'], true);
```I made the following change around line 69 in **super_batch_status.php**:
//$notify_comments = $_POST['notify_comments'];  // replaced line
$notify_comments = zen_db_scrub_in($_POST['notify_comments'], true);

The "**Edit Status History**" feature injects HTML line breaks and ASCII line breaks into the database, and these line breaks are displayed when the customer views their order history from "Status History & Comments". For example:
> New test.. I want to see if the HTML line breaks are added to the comments.\r\n\r\nIf this works, when I edit the comments, the line breaks end up with these weird characters after them..\r\n\r\nDon\'t understand why this code is broken..I am fairly certain that it's this section of the **super_edit.php** code that needs to be corrected - around line 433:
      $this_status = $_POST['status_' . $this_history_id];
      $this_comments = zen_db_scrub_in($_POST['comments_' . $this_history_id]);
      $this_delete = $_POST['delete_' . $this_history_id];
      $change_exists = false;

Now all that said, is this even a USEFUL feature.. because the EASIEST fix is to hide the "**Edit Status History**" link..:laugh::laugh:
16 Nov 2009, 8:04 AM
#1509
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

And the story continues..:laugh:

I've run across several posts talking about combining Edit Orders with Super Orders.. I read the Edit Orders readme and it seems that this merging was a little simpler than previous posts had led me to believe.. (If anyone else has attempted this merge and disagrees, please let me know if I am incorrect)

According to the readme the following edits for orders.php are required:

  1. Make the following changes to admin/orders.php:

    Find: (In 1.3.8a on line 854)
    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
    Replace With:
    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');

    Find: (In 1.3.8a on line 898)
    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    Replace With:
    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');I just applied a variation of these edits to the super_orders.php file as follows:
    Near line(s) 300-321 (my super-orders.php file is heavily modded so the line numbers are approximate locations

//BOF Add Order Edit button to order detail page
              echo '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, 'oID=' . $oID) . '">' . zen_image_button('button_edit.gif', ICON_ORDER_EDIT) . '</a>  '; 
//EOF Add Order Edit button to order detail page
              echo '<a href="' . zen_href_link(FILENAME_SUPER_DATA_SHEET, 'oID=' . $oID) . '" target="_blank">' . zen_image_button('btn_print.gif', ICON_ORDER_PRINT) . '</a>  ';
```Near line(s) 1420-1435 (my **super-orders.php** file is heavily modded so the line numbers are approximate locations

// EOF Add Edit Order button to order order list page
// $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SUPER_DATA_SHEET, 'oID=' . $oInfo->orders_id) . '" target="_blank">' . zen_image_button('btn_print.gif', ICON_ORDER_PRINT) . '</a> <a href="' . zen_href_link(FILENAME_SUPER_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_SUPER_DATA_SHEET, 'oID=' . $oInfo->orders_id) . '" target="_blank">' . zen_image_button('btn_print.gif', ICON_ORDER_PRINT) . '</a> <a href="' . zen_href_link(FILENAME_SUPER_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
// BOF Add Edit Order button to order order list page

The notifications are not working the way they do on the orders.php page...
> In the original *"Customers" > "Order"*, we have two checkboxes, one that says **"Notify Customer"** and one that says **"Append Comments"**. If neither of the boxes are ticked, then the order history still updates with whatever in the textarea.
> 
> The original
> - >
- **"Notify Customer"** means* send the customer the change in status email*,
>
- **"Append Comments"** means add the comments in the textarea to the *"change in status email"*.
>For the record to fix Super Orders to work like orders.php check out this thread: <http://www.zen-cart.com/forum/showpost.php?p=639013&postcount=1147>

In Edit Order, it only sends the customer notification e-mail when BOTH notify and append checkboxes are checked.. 

The other issue is that the "Back" button on the **edit_orders.php** page only takes you back to the the Super Orders order list page (**super_orders.php**). It should take you back to the detail page of the order you were editing.. It's minor and I can live with it.. 

Gonna keep messing around and try to figure out how to correct this, but for now the major edits to join these two apps seems to work.. Thought I'd share.. Contemplating including this as an optional edit for Super Orders.. (if I can get the back button to work correctly) I'm also contemplating an optional edit for merging Admin Comments with Super Orders as well..
27 Nov 2009, 6:53 PM
#1510
marketus avatar

marketus

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

First of all thanks for a much needed addin-on. Even though I am not a real programmer, I was able to install it. I did find one quirk in the sql statement.

In the first two statements, the command said, insert into and the first field was just " ". This threw an error, do I changed it to NULL, and it worked fine.

Also, I have 1.38a and the authorize.net does not have the if statement referred to in the read.me file for storing cc numbers.

Any suggestions on where to put that if?

Thanks again.

28 Nov 2009, 5:01 PM
#1511
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

I have Super Orders installed...I see the Edit Products "button", but it doesn't allow me to change the quantity of the products or add a product. It seems to only be able to remove an item. Am I missing something? I need to change the quantity of a customer's order.

28 Nov 2009, 5:36 PM
#1512
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

christymreed:

I have Super Orders installed...I see the Edit Products "button", but it doesn't allow me to change the quantity of the products or add a product. It seems to only be able to remove an item. Am I missing something? I need to change the quantity of a customer's order.
Edit Products is mis-labeled. The Super Orders Edit Product feature allows you to split an order into two orders.. If you want to edit an order, you need the Edit Orders module, and you will need to modify Super Orders in order for it to work with Edit Orders. Go back a page or two in this thread.. I posted instructions on how to edit Super Orders to work with Edit Orders.. HTH..

6 Dec 2009, 7:56 AM
#1513
littlemissglamour avatar

littlemissglamour

New Zenner

Join Date:
Jun 2009
Posts:
18
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Quick question...

How do i totally remove the lines:

Amount Paid: $0.00
Balance Due: $99.99

from Super Orders Invoice.

So JUST the Total is visible?

(I'm scared of removing too much or not enough from the file(s)).

Thank you

7 Dec 2009, 8:32 PM
#1514
carlvt88 avatar

carlvt88

Zen Follower

Join Date:
Aug 2007
Location:
Williston, Vermont
Posts:
180
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

In admin/super_invoice.php, you can simply remove the following lines: ```php
echo ' <tr>' . "\n" .
' <td class="dataTableContent" align="right" valign="top"><strong>Amount Paid:</strong></td>' . "\n" .
' <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($so->amount_applied) . '</strong></td>' . "\n" .
' </tr>' . "\n";

echo '          <tr>' . "\n" .
     '            <td class="dataTableContent" align="right" valign="top"><strong>Balance Due:</strong></td>' . "\n" .
     '            <td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($so->balance_due) . '</strong></td>' . "\n" .
     '          </tr>' . "\n";
7 Dec 2009, 11:42 PM
#1515
rotorrian avatar

rotorrian

New Zenner

Join Date:
Jun 2009
Posts:
8
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Searched and I couldn't find a answer so i'm hoping someone can help me.

When i installed my store i copied it from another store I have and deleted the data...... or so i thought :D

The old data is turning up in the Cash Report. Any ideas on how I can remove the bad data and keep the good ???? Cheers

8 Dec 2009, 1:24 AM
#1516
carlvt88 avatar

carlvt88

Zen Follower

Join Date:
Aug 2007
Location:
Williston, Vermont
Posts:
180
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

Assuming you're doing this directly through sql, did you clean up the tables starting with SO (SO_PAYMENTS...)? There may be a better way to do this - there's always reinstall, or even reinstall just the SO module using the sql instructions there to recreate the tables it needs.

8 Dec 2009, 3:08 AM
#1517
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

nagelkruid:

Here is an uninstall script for previous versions and versions up to 47.

The SQL install included inserts at a free configuration_group_id, and not the static 28. As an effect, the configuration_group_id may vary over installs so you need the new uninstall to properly delete it if you want to go back.

Cheers,
Jeroen

carlvt88:

Assuming you're doing this directly through sql, did you clean up the tables starting with SO (SO_PAYMENTS...)? There may be a better way to do this - there's always reinstall, or even reinstall just the SO module using the sql instructions there to recreate the tables it needs.

To piggyback on this, a page or two back nagelkruid posted an uninstall script that removes the SO tables.. Though I haven't tested this yet I'm sure it works perfectly... Just thought I'd share..

8 Dec 2009, 3:58 PM
#1518
janellez avatar

janellez

Zen Follower

Join Date:
Sep 2007
Posts:
128
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

My client loves SuperOrders. They would love it more if it would sort the items on this page - http://www.examplewebsite.com/elocin/super_orders.php? by Model number.

Can anyone help me do this?

Thanks,

Janelle

8 Dec 2009, 5:27 PM
#1519
divavocals avatar

divavocals

Totally Zenned

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

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

janellez:

My client loves SuperOrders. They would love it more if it would sort the items on this page - http://www.examplewebsite.com/elocin/super_orders.php? by Model number.

Can anyone help me do this?

Thanks,

JanelleYour link takes us to some sort of test site..

8 Dec 2009, 10:33 PM
#1520
janellez avatar

janellez

Zen Follower

Join Date:
Sep 2007
Posts:
128
Plugin Contributions:
0

Re: OLD Super Orders 2.0 (See v3.0 thread instead)

DivaVocals:

Your link takes us to some sort of test site..

Thanks for responding but it's a dummy URL as the page is behind the Admin panel. This is just the main SuperOrders page once an order has been received. It displays all sorts of info, including a product list from the submitted shopping cart. It's this list that I'd like to have sorted by Model number.

Thanks,

Janelle