cmkelly29 Posted April 13, 2009 Posted April 13, 2009 I don't have an install folder in my public_html. How do I get around this so I can actually install IPN properly? Quote
web-project Posted April 14, 2009 Posted April 14, 2009 How do I get around this so I can actually install IPN properly? download the module from contribution section of this website and read several time the readme guide/installation instruction and install the PayPal IPN contribution. Quote Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
cmkelly29 Posted April 14, 2009 Author Posted April 14, 2009 That's the problem. I'm not really educated in this. I've read the instructions and installed the files as best I know how. It's not showing up in my payment modules. I do have a standard paypal service module installed already. Should that not be there? Quote
♥FWR Media Posted April 14, 2009 Posted April 14, 2009 I could be wrong but it seems to me that you may not be understanding the directory structure. Most contributions make a statement like "preserving the directory structure when it comes to uploading files, what this means is .. Firstly the position of your shop in your hosting: - Are all the oscommerce files in the lowest level of your hosting space (e.g. in public_html) .. the site would be reached by browsing www.mysite.com/ or did you perhaps create a directory to house the oscommerce files .. the site would be reached by browsing www.mysite.com/catalog/ .. or .. www.mysite.com/shop/ etc. In the first instance you have a "root" install in the second you have a directory install. Where a contribution states .. upload the file to catalog/includes/modules/payment/ what "catalog" actually means is the start location of your particular oscommerce installation, as mentioned before this could be "root" it could be /catalog/, /shop/ or wherever you chose to put the files. For your new payment module to become available it would need to be in the correct location .. this would be catalog/includes/modules/payment/ you would also have uploaded the language file to catalog/includes/languages/<my language>/modules/payment/ Hope that helps. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
cmkelly29 Posted April 14, 2009 Author Posted April 14, 2009 I could be wrong but it seems to me that you may not be understanding the directory structure. Most contributions make a statement like "preserving the directory structure when it comes to uploading files, what this means is .. Firstly the position of your shop in your hosting: - Are all the oscommerce files in the lowest level of your hosting space (e.g. in public_html) .. the site would be reached by browsing www.mysite.com/ or did you perhaps create a directory to house the oscommerce files .. the site would be reached by browsing www.mysite.com/catalog/ .. or .. www.mysite.com/shop/ etc. In the first instance you have a "root" install in the second you have a directory install. Where a contribution states .. upload the file to catalog/includes/modules/payment/ what "catalog" actually means is the start location of your particular oscommerce installation, as mentioned before this could be "root" it could be /catalog/, /shop/ or wherever you chose to put the files. For your new payment module to become available it would need to be in the correct location .. this would be catalog/includes/modules/payment/ you would also have uploaded the language file to catalog/includes/languages/<my language>/modules/payment/ Hope that helps. Thank you very much, I'll do that. I've kept the structure, however these folders were located in a folder within in public_http. I'll just move the interior folders out to the public_http. Quote
cmkelly29 Posted April 14, 2009 Author Posted April 14, 2009 I've done the install properly (I had to create the ext folder, is that ok???) It's still not showing up in my modules. I'm sorry for the "noobness." Quote
♥FWR Media Posted April 14, 2009 Posted April 14, 2009 (edited) I've done the install properly (I had to create the ext folder, is that ok???) It's still not showing up in my modules. I'm sorry for the "noobness." Where did the contribution suggest the file should be? this sounds very odd .. standard RC2a puts the ipn.php file in .. ext/modules/payment/paypal/standard_ipn.php the contibution that my sites use put the ipn in .. ext/modules/payment/paypal_ipn/ipn.php What do the instructions say? Edited April 14, 2009 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
cmkelly29 Posted April 14, 2009 Author Posted April 14, 2009 I've figured out the whole "public_http" being my "catalog" I've uploaded all of the neccesary files to their respective folders. I've added the codes that came in the instructions. PayPal IPN is not showing up as an option in my Admin>Modules>Payments list. I don't know where I've gone wrong. Quote
cmkelly29 Posted April 14, 2009 Author Posted April 14, 2009 (edited) Where did the contribution suggest the file should be? this sounds very odd .. standard RC2a puts the ipn.php file in .. ext/modules/payment/paypal/standard_ipn.php the contibution that my sites use put the ipn in .. ext/modules/payment/paypal_ipn/ipn.php What do the instructions say? back to top Installing the PayPal IPN If you already have a version of this PayPal IPN module installed, then you will need to remove the IPN from your admin area first (by clicking "remove") before following the steps below. Copy the files in the directory structure set in the contribution download file to your osCommerce installation directory inc. the new /ext/ folder. Make any changes you need to the language level files. In catalog\includes\functions\general.php Find the ENDING: ?> Insert this BEFORE: // START DELETE TEMP PAYPAL IPN ORDER // This is used in shopping_cart.php when a temporary order needs to be deleted // after it was cancelled by customer on paypal site. function tep_remove_order($order_id, $restock = false) { if ($restock == 'on') { $order_query = tep_db_query("select products_id, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'"); while ($order = tep_db_fetch_array($order_query)) { tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = products_quantity + " . $order['products_quantity'] . ", products_ordered = products_ordered - " . $order['products_quantity'] . " where products_id = '" . (int)$order['products_id'] . "'"); } } tep_db_query("delete from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'"); tep_db_query("delete from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'"); tep_db_query("delete from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . (int)$order_id . "'"); tep_db_query("delete from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . (int)$order_id . "'"); tep_db_query("delete from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order_id . "'"); } // END DELETE TEMP PAYPAL IPN ORDER In catalog\shopping_cart.php Find this: $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); Insert this AFTER: // START DELETE PAYPAL TEMP ORDER // Check to see if customer has cancelled a paypal_ipn process if ( $HTTP_GET_VARS['ipn']== 'cancel_ipn' && tep_not_null($HTTP_GET_VARS['order']) ) { // Make sure that this order is THIS customers' order // We don't want anybody to pass order numbers to here and delete other people's orders!!!! $delete_order_query = tep_db_query("SELECT customers_id FROM " . TABLE_ORDERS . " WHERE `orders_id`='" . (int)$HTTP_GET_VARS['order'] . "'"); $delete_order = tep_db_fetch_array($delete_order_query); //echo "DEBUG - delete_order=".$delete_order['customers_id']."<br />"; //echo "DEBUG - customer id in session=".$customer_id."<br />"; if ( $delete_order['customers_id']==$customer_id ) { // Delete the order //echo "DEBUG - about to delete order!!!<br />"; tep_remove_order($HTTP_GET_VARS['order'], ''); } } // END DELETE PAYPAL TEMP ORDER Go to the Administration Tool->Modules->Payment section at your osCommerce Administration Tool. Install the PayPal IPN module and configure its parameters. Note: The module is disabled by default so configuration can occur during the operation of a live store. Edited April 14, 2009 by cmkelly29 Quote
cmkelly29 Posted April 15, 2009 Author Posted April 15, 2009 Hey I fixed it! I just went through all the changes I had made, cleaned them out, and started fresh. Thanks for the help. 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.