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.
Printable View
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.
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
and no more:frusty:PHP Code:
if ( ($check_status->fields['orders_status'] != $status) || zen_not_null($comments)) {
Could anyone please help!
Thanks
Philip
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
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.
One part does of the code does go after that line 113 and before 115You 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.PHP Code:
// ** 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 **
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
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.
I have honestly no clue what could have caused it. I haven't modified anything! Any ideas?Code:Fatal error: Cannot access empty property in /home/content/... /html/eshop/admin/super_orders.php on line 1250
Thanks,
ae
That line (if it is that line and PHP hasn't made a mistake) is only
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.Code:$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>');
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