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,070

Results 1,181 to 1,200 of 2,020
This thread is locked. New replies are disabled.
2 Jan 2009, 6:04 PM
#1181
timstoel avatar

timstoel

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

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

I just installed Super Orders 2.0 rev 46 today and I am having some difficulties.

My store is running 1.3.8a, on PHP 5.2.6 at newoldsounds.com

I uploaded the files, modified the files, except the Javascript stuff to change the colors of the order lines, and I ran the SQL entry file.

Under Admin > Configuration > Super Orders all seems well. I added phone and fax numbers to my store. I deactivated purchase orders under payment methods for now.

I do not see an option for "Super Orders" under Admin > Customers, all I see is orders. If I point my browser to super_orders.php I get this error:

Fatal error: Call to undefined function so_close_status() in /home/paserv6/public_html/newoldsounds.com/admin/super_orders.php on line 1172
TABLE_HEADING_ORDERS_ID TABLE_HEADING_CUSTOMERS TABLE_HEADING_ORDER_TOTAL TABLE_HEADING_DATE_PURCHASED TABLE_HEADING_PAYMENT_METHOD TABLE_HEADING_STATUS TABLE_HEADING_ACTION

I have searched the forum extensively and found someone who had this issue and was told to check the SQL patch to make sure everything went through. I did this with PHPMyAdmin and I found no problems.

Line 1172 in super_orders.php reads:
$close_status = so_close_status($orders->fields['orders_id']);

Maybe there's a more specific place to look in the database? Any help would be more than appreciated.

Thanks,
Tim

2 Jan 2009, 6:48 PM
#1182
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

first check you have the file

./admin/includes/functions/extra_functions/super_orders_functions.php

on your system with all those constants it looks like you've missed/ corrupted an upload

the same goes for not having the dhtml drop down stating super orders.

Thank you
Philip.

2 Jan 2009, 7:03 PM
#1183
timstoel avatar

timstoel

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

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

Thank you so much for your help! This file was indeed missing, and a few others. Looks like I got it going 100% now, this is really nice!

:clap:

Tim

3 Jan 2009, 2:34 PM
#1184
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

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

What can this do? Can you keep track of all your sales? Like something you can print off with your Site name and total sales?

3 Jan 2009, 4:35 PM
#1185
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

that's not a very specific question. super orders and edit orders are mainly for editing and viewing existing orders, what you probably want is a daily/ weekly/ monthly reporting facility which may be available in the add-ins. the modules here are for rapid sending out of items/ altering orders that you already know have been placed, i.e the stage after a report.
Philip.

3 Jan 2009, 5:53 PM
#1187
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

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

not it isnt spam. I have just moved servers, and waiting on my site to load in.

3 Jan 2009, 9:08 PM
#1188
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

Bit confusing as sometimes we get them there people that cross post in an effort to bring their site up the search engine rankings, or in the case of the WorldPay module, there was a bloke posting links to a website where he got a commission.

You might want to remove the signature until it's actually pointing somewhere though ;)

10 Jan 2009, 3:12 AM
#1189
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

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

Email text question.

Why is MODULE_PAYMENT_PURCHASE_ORDER_TEXT_EMAIL_FOOTER showing up on order emails? These are the emails I receive when an order is placed.

12 Jan 2009, 11:24 PM
#1190
ls01 avatar

ls01

New Zenner

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

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

carlvt88:

Further update: I now get paypal express checkout payments and full and partial refunds to show up correctly as SO payments. Refunds are negative value payments and not refunds, but I'll live with this for now.

What I did was take Frank's code snippet (above) to modify cc_line_item in super_order.php. During the checkout process, this adds a so_payments record with info from the paypal transaction. I also modified order.php as indicated above so that this would get called during checkout.

Next I added a function to modules/payment/paypal/paypal_functions.php:

function ipn_create_so_payments_array($new_order_id, $txn_type) {
$sql_data_array = array('orders_id' => $new_order_id,
'payment_number' => $_POST['txn_id'],
'payment_name' => $_POST['last_name'],
'payment_amount' => $_POST['mc_gross'],
'payment_type' => $txn_type,
'date_posted' => datetime_to_sql_format($_POST['payment_date']),
);
return $sql_data_array;
}

> 
> Then, in ipn_main_handler.php, I inserted this for txn_type parent. Starting line 279:
> ```
    if ($txn_type == 'parent') {
      $sql_data_array = ipn_create_order_array($ordersID, $txn_type);
      zen_db_perform(TABLE_PAYPAL, $sql_data_array);
      
      // put refund info into SO
      require(DIR_WS_CLASSES . 'super_order.php');
      $sql_data_array = ipn_create_so_payments_array($ordersID, $txn_type);
      zen_db_perform(TABLE_SO_PAYMENTS, $sql_data_array);     
    } else {

This probably still isn't complete, I've only tested a couple of transactions, but I've seen many asking for this feature and I hope it helps some. I'm sure I could have done this more completely or more consistently - feedback welcome!

How about using Super Orders with Paypal Website Payments Pro for all credit card transactions?

Would this be an easy thing to add? I have NO idea on coding!

Thank you for your help.

18 Jan 2009, 5:08 PM
#1191
philip56 avatar

philip56

Zen Follower

Join Date:
Sep 2007
Location:
Herne Bay, Kent, England
Posts:
182
Plugin Contributions:
0

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

Hi.

I am trying to add Google checkout to my site. As I have added several contributions including Super Orders, I am using the manual installation option. Frank has said in the Google checkout thread that you should make the same modifications to admin/super_orders.php that you would to admin/orders.php. My problem is that for the second modification (the long one), I can't find a match for the code I need to replace - the nearest I can get is

 if ( ($check_status->fields['orders_status'] != $status) || zen_not_null($comments)) {

and no more:frusty:

Could anyone please help!

Thanks

Philip

18 Jan 2009, 5:24 PM
#1192
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

The trouble is that super_orders20.zip has a super_orders.php which although more recently released was originally based on a 2005/ 2006 zen-cart page.

What exactly are you trying to acheive with the module, what new features does it add ? I have an orders.php that has been modified and it appears to do something with the order_notification, like mark it up if google notified the customer instead of the built in zen emailer.

I suggest editing the orders.php that you have on your systems and then using the URL to see what new functions it adds, as I've only briefly scanned the code and there may be somthing further down that I am missing.

Thank you
Philip.

18 Jan 2009, 7:22 PM
#1193
philip56 avatar

philip56

Zen Follower

Join Date:
Sep 2007
Location:
Herne Bay, Kent, England
Posts:
182
Plugin Contributions:
0

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

philip_clarke:

The trouble is that super_orders20.zip has a super_orders.php which although more recently released was originally based on a 2005/ 2006 zen-cart page.

What exactly are you trying to acheive with the module, what new features does it add ? I have an orders.php that has been modified and it appears to do something with the order_notification, like mark it up if google notified the customer instead of the built in zen emailer.

I suggest editing the orders.php that you have on your systems and then using the URL to see what new functions it adds, as I've only briefly scanned the code and there may be somthing further down that I am missing.

Thank you
Philip.

Thanks Philip

My site went live with super orders, so I have never used the standard orders.php set-up. I am reluctant to to change horses now. As you know (I'm sure I've seen your name in the Google checkout thread as well) Blindside says it's possible - I'm probably just being thick!

Regards

Philip

18 Jan 2009, 7:43 PM
#1194
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

There's nothing thick about trying to apply 2008 instructions to a 2005 file, it almost certainly is possible to get the "extra features" I just don't know if it's worth it. I have a site with the checkout and super_orders installed, I'll put a normal "orders" and modified "orders" up sometime this evening and compare the difference and see if it's possible to modifiy super orders, really the original authors need to pull a ZC 1.3.8 orders.php and modify into a new version of super_orders.php that but I don't know them and haven't seen them around for a long time.

19 Jan 2009, 10:04 AM
#1195
topcat24 avatar

topcat24

New Zenner

Join Date:
Jul 2007
Posts:
45
Plugin Contributions:
0

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

philip56:

Hi.

I am trying to add Google checkout to my site. As I have added several contributions including Super Orders, I am using the manual installation option. Frank has said in the Google checkout thread that you should make the same modifications to admin/super_orders.php that you would to admin/orders.php. My problem is that for the second modification (the long one), I can't find a match for the code I need to replace - the nearest I can get is

if ( ($check_status->fields['orders_status'] != $status) || zen_not_null($comments)) {

> 
> Could anyone please help!
> 
> Thanks
> 
> Philip

One part does of the code does go after that line 113 and before 115 ```php
// ** GOOGLE CHECKOUT **
          chdir("./..");
          require_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/googlecheckout.php');
          $payment_value= MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_TITLE;
          $result = $db->Execute("select google_order_number from google_orders where orders_id= ". (int)$oID);
          $num_rows = $result->RecordCount();

          if($num_rows != 0) {
            $customer_notified = google_checkout_state_change($check_status, $status, $oID, 
                               (@$_POST['notify']=='on'?1:0), 
                               (@$_POST['notify_comments']=='on'?$comments:''));
          }
          $customer_notified = isset($customer_notified)?$customer_notified:'0';
// ** END GOOGLE CHECKOUT **
```You will also need to add it to super_batch_status as well if you use this. You will need to change the email part of googlecheckout in the super_orders_functions.php file found in admin/includes/functions/extra_functions.

If you need any help PM me with your email address and I can email you across the files I have changed. I have tested it on testsite and it does work but we don't use it on our live site.

Regards
Trevor
25 Jan 2009, 9:25 PM
#1196
aeibc avatar

aeibc

New Zenner

Join Date:
Dec 2007
Posts:
34
Plugin Contributions:
0

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

Using ZenCart v1.3.7. Everything been working just fine, now all of a sudden we get the following error in our Super Orders admin panel and the "Quick Info" sidebar on the right (whatever it is called) has dissapeared.

Fatal error: Cannot access empty property in /home/content/... /html/eshop/admin/super_orders.php on line 1250

I have honestly no clue what could have caused it. I haven't modified anything! Any ideas?

Thanks,
ae

25 Jan 2009, 9:46 PM
#1197
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

That line (if it is that line and PHP hasn't made a mistake) is only

  $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SUPER_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . zen_href_link(FILENAME_SUPER_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . zen_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');

That produces a link in the contents box out of buttons, to other places. $oInfo->orders_id is the order id or a specific order (the one selected from the row) has anything gone through the system that could have corrupted a particular order ? Feel free to PM me on this.

26 Jan 2009, 7:56 PM
#1198
aeibc avatar

aeibc

New Zenner

Join Date:
Dec 2007
Posts:
34
Plugin Contributions:
0

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

Somehow a file/files must have gotten corrupted on the server. I've downloaded a fresh copy of the package, reuploaded all SO files and ... voila, the error dissapeared, the sidebar is back. :clap:

Thanks for taking the time to respond!

ae

28 Jan 2009, 7:02 PM
#1199
dni avatar

dni

New Zenner

Join Date:
Oct 2006
Posts:
64
Plugin Contributions:
0

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

thank you.
that is very helpful for the landing page.
can't figure out exactly where to do that for the "detail", "invoice", or "packing slip" pages.

thomasw98:

I think your guess is probably correct.

Skipper_2: In super_order.php, look for these lines:

$contents[] = array('text' => TEXT_INFO_SHIPPING_METHOD . ' ' . $shipping_method);
$contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $oInfo->ip_address);

> 
> ```
$contents[] = array('text' => TEXT_INFO_SHIPPING_METHOD . ' '  . $oInfo->shipping_method);
$contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $oInfo->ip_address);
```That will make the detailed shipping type appear on the summary page (on the right hand side of the page for the order line you have selected). Use the same logic to make it change on the other pages also.
28 Jan 2009, 8:07 PM
#1200
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

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

That quote in that post is 14 months back I believe, what I think you are asking is whether it is possible to put expanded details about whether the UPS service is "priority mail" "express" or whatever in the detail, invoice and packing slip pages.

I'm suprised that it doesn't give those details on any installation (I'm UK based so don't use those services), if this is what you are asking it's going to take some editing of several pages.

Philip.