Guest Posted December 6, 2007 Posted December 6, 2007 Hi all Having a problem finalizing my payoffline module installation. I need to ammend: catalog/account_history_info.php catalog/checkout_success.php In the install.html: Edit account_history_info.php Find: <tr> <td class="main"><b><?php echo HEADING_PAYMENT_METHOD; ?></b></td> </tr> <tr> <td class="main"><?php echo $order->info['payment_method']; ?></td> </tr>Immediately AFTER add: <tr> <td class="main"><?php if (strpos(strtolower($order->info['payment_method']), 'payoffline') !== false) { $payofflinepro_query = tep_db_query("SELECT oid FROM ".TABLE_PAYOFFLINEPRO." WHERE order_id=".(int)$_GET['order_id']); $payofflinepro = tep_db_fetch_array($payofflinepro_query); echo '<a href="'.tep_href_link(FILENAME_PAYOFFLINEPRO_PAYSLIP, 'oid='.$payofflinepro['oid'], 'SSL', true, false).'" target="_new" style="text-decoration: underline">Reprint PayOffline barcode Payslip</a>'; } ?></td> </tr> problem I have is that my file does not have the text I am looking for. <?php /* $Id: account_history_info.php,v 1.1.1.1 2004/03/04 23:37:53 ccwjr Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) { tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')); } $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'"); $customer_info = tep_db_fetch_array($customer_info_query); if ($customer_info['customers_id'] != $customer_id) { tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_HISTORY_INFO); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')); $breadcrumb->add(sprintf(NAVBAR_TITLE_3, $HTTP_GET_VARS['order_id']), tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . (int)$HTTP_GET_VARS['order_id'], 'SSL')); require(DIR_WS_CLASSES . 'order.php'); $order = new order($HTTP_GET_VARS['order_id']); $content = CONTENT_ACCOUNT_HISTORY_INFO; $javascript = 'popup_window.js'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> The same for checkout_success.php Find: <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td> </tr> </table></td> </tr>Immediately BEFORE add: $order_num_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");$order_num = tep_db_fetch_array($order_num_query);$payofflinepro_query = tep_db_query("SELECT BarcodeURL, oid from payofflinepro WHERE order_id = ".(int)$order_num['orders_id']." LIMIT 1");if (tep_db_num_rows($payofflinepro_query) == 1 && (int)$order_num['orders_id'] != 0) { $payofflinepro = tep_db_fetch_array($payofflinepro_query); echo '<p align="center"><a href="'.tep_href_link(FILENAME_PAYOFFLINEPRO_PAYSLIP, 'oid='.$payofflinepro['oid'], 'SSL').'" target="_new">'.tep_image($payofflinepro['BarcodeURL'], 'PayOffline Barcode').'</a></p>'; echo sprintf(TEXT_PAYOFFLINEPRO, tep_href_link(FILENAME_PAYOFFLINEPRO_PAYSLIP, 'oid='.$payofflinepro['oid'], 'SSL'));} the same for this file can't find the the text phrase. <?php /* $Id: checkout_success.php,v 1.3 2004/09/25 14:36 DMG Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // begin PayPal_Shopping_Cart_IPN 2.8 (DMG) require(DIR_WS_MODULES . 'payment/paypal/classes/paypal_order.class.php'); // end PayPal_Shopping_Cart_IPN // if the customer is not logged on, redirect them to the shopping cart page if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) { $notify_string = 'action=notify&'; $notify = $HTTP_POST_VARS['notify']; if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $notify_string .= 'notify[]=' . $notify[$i] . '&'; } if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1); // BOF: daithik change for PWA// DMG Merge w. Paypal IPN 2.8 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '$notify_string', 'NONSSL')); }else{ tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { //begin PayPal_Shopping_Cart_IPN paypal_order::reset_checkout_cart_session(); } //} //end PayPal_Shopping_Cart_IPN // EOF: daithik change for PWA require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS); $breadcrumb->add(NAVBAR_TITLE_1); $breadcrumb->add(NAVBAR_TITLE_2); $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'"); $global = tep_db_fetch_array($global_query); if ($global['global_product_notifications'] != '1') { $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); $orders = tep_db_fetch_array($orders_query); $products_array = array(); $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name"); while ($products = tep_db_fetch_array($products_query)) { $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']); } } // BOF: daithik change for PWA if (tep_session_is_registered('noaccount')) { $order_update = array('purchased_without_account' => '1'); tep_db_perform(TABLE_ORDERS, $order_update, 'update', "orders_id = '".$orders['orders_id']."'"); // tep_db_query("insert into " . TABLE_ORDERS . " (purchased_without_account) values ('1') where orders_id = '" . (int)$orders['orders_id'] . "'"); tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . tep_db_input($customer_id) . "'"); tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . tep_db_input($customer_id) . "'"); if (!tep_session_is_registered('noaccount')){ tep_session_destroy(); } } // EOF: daithik change for PWA $content = CONTENT_CHECKOUT_SUCCESS; $javascript = 'popup_window_print.js'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Would really apreciate some much needed help on this one. Many Thanks in advance William Quote
Guest Posted December 6, 2007 Posted December 6, 2007 Hi, It looks like you have a templating system such as STS installed. The files you need to modify will probably be under the folder catalog/templates/content/ Tom Quote
Guest Posted December 6, 2007 Posted December 6, 2007 Hi, It looks like you have a templating system such as STS installed. The files you need to modify will probably be under the folder catalog/templates/content/ Tom Hi Tom You are correct, the files are in that directory but, they are named different: catalog/account_history_info.tpl.php catalog/checkout_success.tpl.php I have modified the files but still no success. email notification is sent: email process payoffline payment slip for order - which is blank after pressing the confirm button I only see the normal text: You can view your order history by going to the 'My Account' page and by clicking on 'History'. Please direct any questions you have to the store owner. Thanks for shopping with us online! Not the payoffline text. any further sugestion would be very helpfull Regards William Quote
Guest Posted December 7, 2007 Posted December 7, 2007 For the email notification have you done the following? - Set send MIME HTML emails to "true" in your admin (Configuration->Email) - used the html_email_fix.zip as directed if the emails are blank Regarding the slip not showing this will be down the the fact you have the templating system - it will be possible to get working - perhaps you could PM me you site details and i could take a look? Tom Quote
Guest Posted December 7, 2007 Posted December 7, 2007 For the email notification have you done the following? - Set send MIME HTML emails to "true" in your admin (Configuration->Email) - used the html_email_fix.zip as directed if the emails are blank Regarding the slip not showing this will be down the the fact you have the templating system - it will be possible to get working - perhaps you could PM me you site details and i could take a look? Tom Hi Tom Would like to thank you for your time and patience in solveing the problem with the intergration of your Payoffline contribution into my website. Very much apreciated. A Verry Merry Christmas to you and Your Family. Best Regards William Quote
jtspas Posted February 25, 2008 Posted February 25, 2008 Hi Tom Would like to thank you for your time and patience in solveing the problem with the intergration of your Payoffline contribution into my website. Very much apreciated. A Verry Merry Christmas to you and Your Family. Best Regards William Hi I also have the same problem i use a template system called Cre Loaded i to am stuck at checkout_success.php although i've managed to get the system to work just afterwards there is no barcode for them to print or instructions informing them they need to print this is obviously due to me not able to add the code to checkout_success.php. I've checked all the checkout_success.php files available even checkout_success.tpl.php located at templates/content/ which i saw you mentioned earlier also when placing an order in the test system is comes back and says via email Your order has been updated to the following status. New status: but there is no status. Also after the payment is made when i go to orders it doesn't show any orders please help my site is www.jtspas.com Quote
Guest Posted February 28, 2008 Posted February 28, 2008 I'm sorry I have no experience of CREloaded - if I get time over the next few days I'll try and take a look and see if I can spot how to integrate the payoffline contrib with it Tom Quote
jtspas Posted March 3, 2008 Posted March 3, 2008 I'm sorry I have no experience of CREloaded - if I get time over the next few days I'll try and take a look and see if I can spot how to integrate the payoffline contrib with it Tom Thanx Tom I've pretty much got most of it to work just can't get it to display the barcode section at checkout although the email works Jim Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.