sickaporean Posted June 9, 2020 Posted June 9, 2020 Hi, i want to integrate phoenix with nolapro. I have 2 files that nolapro has advised to install to phoenix. Here the how to : - " The Default Location, Price Level, Cost of Goods Sold account and other values will be applied to all orders coming in from your osCommerce site. You can fill in the OSCom URL, login info and database info if you want to update your osCommerce inventory levels when you receive products on PO inside NolaPro. If you fill in this info NolaPro will also update the osCommerce order status when you ship an order from inside NolaPro. Verify that the file nolapro/api/app/config/database.php points to your NolaPro database. Open this file up in a text editor. Make sure the values for 'host', 'login', 'password' and 'database' point to your NolaPro database properly. Move the folder nolapro/oscom/nolapro inside your osCommerce code (just the folder called nolapro with two files in it). It should go in your catalog directory so it is at the same level as your admin, includes, images, etc. folders. Open up the file npapi.php from the catalog/nolapro/ folder. At the very top of the page put in values so that your osCommerce site can talk to the NolaPro API. You can get this info by going to Tools -> osCommerce in NolaPro and look in the Available API Accounts section at the bottom of the page. You'll need the User ID, API Key and Company ID along with the URL for your NolaPro site. Be sure to add the /api/rest/ to the end of your NolaPro URL. It should look something like: http://demo.nolapro.com/api/rest/. Open up the osCommerce file called checkout_process.php. Add in the NolaPro bridge code so that it is in the following position: // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } // +++++ NolaPro +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ include_once('nolapro/nolapro.php'); nolapro_save_order($order, $cart, $insert_id, $customer_id, $order_totals, $payment); // +++++ End NolaPro +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // load the after_process function from the payment modules $payment_modules->after_process(); $cart->reset(true);" This is applicable to the old oscommerce but not to phoenix. I am not sure is it possible to do that in phoenix? I attached the nolapro 2 files for all. Any ideas? nolapro.php npapi.php npimport.php
♥ecartz Posted June 9, 2020 Posted June 9, 2020 Still put the code before the after_process() call: https://github.com/gburton/CE-Phoenix/blob/master/checkout_process.php#L95 It would probably also be possible to hook it into $parameters = ['order' => $order, 'email' => &$email_order]; echo $GLOBALS['OSCOM_Hooks']->call('siteWide', 'orderMail', $parameters); But that's not where they're asking to run the code. Always back up before making changes.
sickaporean Posted June 9, 2020 Author Posted June 9, 2020 Well Ecartz, thats why i am here looking for advice. lol ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.