omartineau Posted March 19, 2006 Share Posted March 19, 2006 Hello since 2 days, my IPN are not registrer with the order. So the order stay in "Pending" Status. In the "PayPal_Shopping_Cart_IPN Debug Email Notification" I have noticed a change : The last working IPN was with : notify_version=2.0 Sinon, those not working are notify_version=2.1 Paypal may have change something that the Paypal IPN Contrib don't understand. Is anyone have an idea to solve the problem ? What notify-version have you ? I'm Working on my problem, and it seems that : - I receive well the IPN - But the authentification doesn't work : Paypal return "INVALID" Quote Link to comment Share on other sites More sharing options...
omartineau Posted March 19, 2006 Share Posted March 19, 2006 I'm Working on my problem, and it seems that :- I receive well the IPN - But the authentification doesn't work : Paypal return "INVALID" I've corrected something, ans now it's working ! In IPN.class.php, in function init($post_vars) AFTER $this->response_string .= '&' . urlencode($var) . '=' . urlencode($val); } } I HAVE ADD reset($post_vars); $parameters = 'cmd=_notify-validate'; foreach ($post_vars as $key => $value) { $parameters .= '&' . $key . '=' . urlencode(stripslashes($value)); } $this->response_string=$parameters; It's the original method to create the response_string for paypal. Quote Link to comment Share on other sites More sharing options...
Arrowhead123 Posted March 21, 2006 Share Posted March 21, 2006 (edited) Hello, I have a few problems trying to integrate the devosc paypal modification into my oscommerce cart. In step 2, it states this: # tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } # Replace with: //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN However, in my code, that conflicts with a modification I have that allows the customer to buy items without an account. Here is the code that does that: //begin PWA // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); // Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } } //end PWA Could someone please guide me in how I can go about merging these two? Thanks! Edited March 21, 2006 by Arrowhead123 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2006 Share Posted March 21, 2006 Hello,I have a few problems trying to integrate the devosc paypal modification into my oscommerce cart. In step 2, it states this: However, in my code, that conflicts with a modification I have that allows the customer to buy items without an account. Here is the code that does that: Could someone please guide me in how I can go about merging these two? Thanks! If you can post the file location and name, I will paste what I have there. Don't forget to do the folder PWA PWA_integration.txt in the contrib. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2006 Share Posted March 21, 2006 Hello,I have a few problems trying to integrate the devosc paypal modification into my oscommerce cart. In step 2, it states this: However, in my code, that conflicts with a modification I have that allows the customer to buy items without an account. Here is the code that does that: Could someone please guide me in how I can go about merging these two? Thanks! The first post did not appear, so here it is again. If you can post the file location and name, I will paste what I have there. Don't forget to do the folder PWA PWA_integration.txt in the contrib. Quote Link to comment Share on other sites More sharing options...
Arrowhead123 Posted March 21, 2006 Share Posted March 21, 2006 Here it is: catalog/checkout_success.php (line 29) The first post did not appear, so here it is again. If you can post the file location and name, I will paste what I have there. Don't forget to do the folder PWA PWA_integration.txt in the contrib. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2006 Share Posted March 21, 2006 Here it is:catalog/checkout_success.php (line 29) Hi My line numbers differ to yours, so I have included lines 1 to 98. This should cover what you want, if you have any questions, just ask. If you want the whole file, just e-mail me. The header in the file shows what contribs I have working in my test shop. <?php /* $Id: checkout_success.php,v 1.49 2003/07/24 23:03:53 Strider Exp $ $Id: checkout_success.php,v 1.49 2003/06/09 23:03:53 hpdl Exp $ $Id: checkout_success.php,v 1.6.2.1 2003/05/03 23:41:23 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License Installed PWA 0.90 PayPal IPN Mod by Coopco to get PWA and Paypal Working Together (additional to that on forum) CCGV */ require('includes/application_top.php'); // 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); // start of pwa addition // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); // } // Added a check for a Guest checkout and cleared the session - 030411 // PWA Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { //tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); //} // } // end of pwa addition //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN //} // } 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']); } } // PWA: Added a check for a Guest checkout and cleared the session - 030411 v0.71 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) . "'"); tep_session_destroy(); } //end PWA ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2006 Share Posted March 21, 2006 Is it just me, or do other people not see this updated in http://www.oscommerce.com/forums/index.php?showforum=7 and have e-mails delayed excessively (if you have track this topic enabled)? Quote Link to comment Share on other sites More sharing options...
shawkes Posted March 21, 2006 Share Posted March 21, 2006 Is it just me, or do other people not see this updated in http://www.oscommerce.com/forums/index.php?showforum=7 and have e-mails delayed excessively (if you have track this topic enabled)? This is located in the payment modules section http://www.oscommerce.com/forums/index.php?showforum=21 Sean Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2006 Share Posted March 21, 2006 This is located in the payment modules section http://www.oscommerce.com/forums/index.php?showforum=21 Sean So my bookmark was out of date, why does this affect e-mail notifications and only this contrib. It showed all the others ok. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2006 Share Posted March 21, 2006 So my bookmark was out of date, why does this affect e-mail notifications and only this contrib. It showed all the others ok. After further checking, the link from http://www.oscommerce.com/forums/ for contribution support gives http://www.oscommerce.com/forums/index.php?showforum=7 Quote Link to comment Share on other sites More sharing options...
Arrowhead123 Posted March 22, 2006 Share Posted March 22, 2006 Very interesting merge you have there. It seems that you actually copied and pasted this piece of code after PWA: //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN It seems to me that the more intuitive thing to do is to leave out the if part and only keep in the else if part as below: if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } But, if you have been running your cart for a while now without problems, then who am I to argue? Thanks a million for your incredible help! :D Hi My line numbers differ to yours, so I have included lines 1 to 98. This should cover what you want, if you have any questions, just ask. If you want the whole file, just e-mail me. The header in the file shows what contribs I have working in my test shop. <?php /* $Id: checkout_success.php,v 1.49 2003/07/24 23:03:53 Strider Exp $ $Id: checkout_success.php,v 1.49 2003/06/09 23:03:53 hpdl Exp $ $Id: checkout_success.php,v 1.6.2.1 2003/05/03 23:41:23 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License Installed PWA 0.90 PayPal IPN Mod by Coopco to get PWA and Paypal Working Together (additional to that on forum) CCGV */ require('includes/application_top.php'); // 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); // start of pwa addition // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); // } // Added a check for a Guest checkout and cleared the session - 030411 // PWA Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { //tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); //} // } // end of pwa addition //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN //} // } 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']); } } // PWA: Added a check for a Guest checkout and cleared the session - 030411 v0.71 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) . "'"); tep_session_destroy(); } //end PWA ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> Quote Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2006 Share Posted March 22, 2006 Very interesting merge you have there. It seems that you actually copied and pasted this piece of code after PWA:It seems to me that the more intuitive thing to do is to leave out the if part and only keep in the else if part as below: But, if you have been running your cart for a while now without problems, then who am I to argue? Thanks a million for your incredible help! :D I don't anything about programming, so I just try something to see if it works. I will try your code shortly and let you know. Quote Link to comment Share on other sites More sharing options...
Arrowhead123 Posted March 22, 2006 Share Posted March 22, 2006 I have a few questions about the gift vouchers. Reading through the install documentation, it states this: The value in the admin->configuration->Welcome Gift Voucher Amount tells the system how much of a gift voucher you would like to send your customer that has just created an account. However, this category does not exist for me! I checked and it seems I have copied over all the files necessary. Also, to create a gift voucher, do I have to create it under admin->Vouchers/Coupons->Coupon admin? One more question: it seems that I have forgotten to allow taxes (United States). Is there some kind of easy way I can allow taxes for each state? If not, how do I go about putting individual state's taxes in and where can I get a list for these tax rates/states? Thanks! I don't anything about programming, so I just try something to see if it works. I will try your code shortly and let you know. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2006 Share Posted March 22, 2006 I have a few questions about the gift vouchers.Reading through the install documentation, it states this: However, this category does not exist for me! I checked and it seems I have copied over all the files necessary. Also, to create a gift voucher, do I have to create it under admin->Vouchers/Coupons->Coupon admin? One more question: it seems that I have forgotten to allow taxes (United States). Is there some kind of easy way I can allow taxes for each state? If not, how do I go about putting individual state's taxes in and where can I get a list for these tax rates/states? Thanks! Best asked in the CCGV thread. Gift vouchers are products like all other products. Discount coupons are created under admin. Don't know about US taxes. Quote Link to comment Share on other sites More sharing options...
spiritalan Posted March 23, 2006 Share Posted March 23, 2006 Hello, My IPN test panel testing is not working. I enable the IPN Test Panel. The results states: "Invalid Test An error has occured, mostly likely because the Custom field in the IPN Test Panel did not have a valid transaction id." I receive an email with this information. I put in a number in the custom field which no one else used, a paypal_id number. I still receive this error. I have never had trouble with this before. What got me testing the IPN is that someone was trying to purchase something and when he would try to checkout it would take him back to the shopping cart. I need more information from him which I will be seeking out. Has anyone had a similar problem? Is there a fix? Thank you, Alan Quote Production:osCommerce V. 2.3.4BSVPS Box Link to comment Share on other sites More sharing options...
spiritalan Posted March 23, 2006 Share Posted March 23, 2006 Hello, My IPN test panel testing is not working. I enable the IPN Test Panel. The results states: "Invalid Test An error has occured, mostly likely because the Custom field in the IPN Test Panel did not have a valid transaction id." I think I might not have been using the test panel correctly. Does anyone know where I can find documentation that precisely shows how to use the IPN Test Panel. Thank you, Alan Quote Production:osCommerce V. 2.3.4BSVPS Box Link to comment Share on other sites More sharing options...
Arrowhead123 Posted March 29, 2006 Share Posted March 29, 2006 Hello, I have installed osCommerce 051113 and DevosC 3.1.5. I currently get the following problem when someone checks out an item on the site and I view the order from admin->customers->orders: No PayPal Transaction Information Available (7e1238828d76f323541b415dd890b601) I tried searching through the forums on paypal problems, but have had no success. I see that many people have had this problem before, but no one has really posted their solutions to this. Coopco has been very helpful and receptive to my problems. Unfortunately, I am still at a loss. Can anyone help me out? Thanks! I think I might not have been using the test panel correctly. Does anyone know where I can find documentation that precisely shows how to use the IPN Test Panel. Thank you, Alan Quote Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2006 Share Posted March 29, 2006 Hello,I have installed osCommerce 051113 and DevosC 3.1.5. I currently get the following problem when someone checks out an item on the site and I view the order from admin->customers->orders: No PayPal Transaction Information Available (7e1238828d76f323541b415dd890b601) I tried searching through the forums on paypal problems, but have had no success. I see that many people have had this problem before, but no one has really posted their solutions to this. Coopco has been very helpful and receptive to my problems. Unfortunately, I am still at a loss. Can anyone help me out? Thanks! IPN Test Panel - Guide -------------------------------------------------------------------------------- The following is a quick guide towards simmulating your own IPNs: Begin to check out as a customer via the store, stop when you get to the PayPal site Go into the store admin orders section and find the last order (just created) Select a Transaction Type, usually cart or web_accept, but nothing for refunds, reversals, or canceled_reversals payments Copy and paste the Transaction Signature into the Custom field and into the Transaction ID field If the Cart Test is on, then make sure that the above MC Gross amount is the same as the order total and that the MC Currency field is set to the same currency as the order. Submit the Test IPN Now check the admin order status When testing Pending payments etc, remember to use the same Transction ID Quote Link to comment Share on other sites More sharing options...
Joed Posted March 29, 2006 Share Posted March 29, 2006 Hi Devosc I have installed oscommerce-2.2ms2-051113 and your PayPal_Shopping_Cart_IPN 3.1.5. I have a couple of problems. Sorry if these have been covered before but I did search for the answer before posting. I have only got as far as testing this with the paypal sandbox, not live. 1. After the (sandbox) transaction is completed the shopping carty is not updates. The items remain in the cart and the user has to go into the cart and tick the delete boxes then update the cart. 2. My products are digital downloads, but when the customer leave paypal he goes to the default checkout success page and not the download page. I'm pretty sure I installed everything correctly. I have double checked, but your instructions are so good I doubt anyone could go wrong. Any help will be greatly appriciated. Quote Link to comment Share on other sites More sharing options...
strato Posted March 31, 2006 Share Posted March 31, 2006 Hi Devosc I have installed oscommerce-2.2ms2-051113 and your PayPal_Shopping_Cart_IPN 3.1.5. I have a couple of problems. Sorry if these have been covered before but I did search for the answer before posting. I have only got as far as testing this with the paypal sandbox, not live. 1. After the (sandbox) transaction is completed the shopping carty is not updates. The items remain in the cart and the user has to go into the cart and tick the delete boxes then update the cart. 2. My products are digital downloads, but when the customer leave paypal he goes to the default checkout success page and not the download page. I'm pretty sure I installed everything correctly. I have double checked, but your instructions are so good I doubt anyone could go wrong. Any help will be greatly appriciated. II have exactly the same problem (you saved my typing all that out, again :D ). This problem has stopped me from going live for the last 2 weeks. I also have a fresh installation of both the latest OSC build and paypal IPN 3.1.5. I was able to use paypal ok using the inbuilt paypal module that comes with osc before I installed this contrib. Anyone have a solution to this? Quote Link to comment Share on other sites More sharing options...
Joed Posted March 31, 2006 Share Posted March 31, 2006 II have exactly the same problem (you saved my typing all that out, again :D ). This problem has stopped me from going live for the last 2 weeks. I also have a fresh installation of both the latest OSC build and paypal IPN 3.1.5. I was able to use paypal ok using the inbuilt paypal module that comes with osc before I installed this contrib. Anyone have a solution to this? I've been of work this week and have spent around 17 hours per day working on this, and so far nothing works. I had one too many beers last night and issued a challenge. "Show me an osCommerce store with downloads that work and I will go there and buy one. I don't care what it is, or what it costs, I just want to see a digital download that works." No takers so far! I got up this morning determined to crack this problem, so far I have got; I restored my original store and did some digging. This is what I found. There are 3 files called download.php, in these locations. 1. \catalog 2. \catalog\includes\modules 3. \catalog\includes\languages\english 1 is version 1.9 2 is version 1.3 3 is empty, it only contains the "Copyright © 2003 osCommerce" info, no code at all. There are no files called downloads.php anywhere (note the s). However, several files have lines in like the one below. <?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?> checkout_success.php and account_history_info.php were two of the files but there may have been more. So I changed all "downloads.php" to "download.php" and copied download.php version 1.9 (1 above) into locations 2 & 3 And it still doesn't work, the customer gets back to the Checkout_success.php page but no download link. Everything else works fine, paypal accounts are updated, emails are sent etc. but no download link. Now I've reached the point where I'm going to issue another challenge, well a request really. Somebody give me the name of e-commerce software that works for downloads, and I'll buy it. Sorry to sound so negative, but I've tried everything and nothing works. Quote Link to comment Share on other sites More sharing options...
Joed Posted March 31, 2006 Share Posted March 31, 2006 Damn, why didn't I think of this earlier! All you do is sit at the computer 24/7 and when a customer makes a purchase you quickly attach the download to an email and send it to them. easy when you know how :-) Quote Link to comment Share on other sites More sharing options...
strato Posted March 31, 2006 Share Posted March 31, 2006 (edited) In order to help find a solution I have taken several screenshots of my OSC setup, the process of checking out and what I get when I am returned to my site from paypal. Here is a link to a zip file containing the photos: http://s53.yousendit.com/d.aspx?id=1ZN8ES7...LD393JOVOJH6NIK Please note, this was done on a live web server with SSL and a live paypal account. I hope this helps anyone out there to find a solution to this problem…. Edited March 31, 2006 by strato Quote Link to comment Share on other sites More sharing options...
strato Posted March 31, 2006 Share Posted March 31, 2006 (edited) I've been of work this week and have spent around 17 hours per day working on this, and so far nothing works. I had one too many beers last night and issued a challenge. "Show me an osCommerce store with downloads that work and I will go there and buy one. I don't care what it is, or what it costs, I just want to see a digital download that works." No takers so far! I got up this morning determined to crack this problem, so far I have got; I restored my original store and did some digging. This is what I found. There are 3 files called download.php, in these locations. 1. \catalog 2. \catalog\includes\modules 3. \catalog\includes\languages\english 1 is version 1.9 2 is version 1.3 3 is empty, it only contains the "Copyright ? 2003 osCommerce" info, no code at all. There are no files called downloads.php anywhere (note the s). However, several files have lines in like the one below. <?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?> checkout_success.php and account_history_info.php were two of the files but there may have been more. So I changed all "downloads.php" to "download.php" and copied download.php version 1.9 (1 above) into locations 2 & 3 And it still doesn't work, the customer gets back to the Checkout_success.php page but no download link. Everything else works fine, paypal accounts are updated, emails are sent etc. but no download link. Now I've reached the point where I'm going to issue another challenge, well a request really. Somebody give me the name of e-commerce software that works for downloads, and I'll buy it. Sorry to sound so negative, but I've tried everything and nothing works. I have had downloads working fine using the inbuilt credit card payment module. I have also had downloads working fine using the worldpay 4.0 module on a live site. The problem you are having looks identical to mine (look at the link to the photos I posted above) and is caused by this Paypal IPN contribution (or at least that’s the way it looks). Most likely its not passing the right information to the shop when you get back to the checkout success page so the shop does not display a download link. But as I’m not a PHP programmer I’m in no position to do really anything about it. Edited March 31, 2006 by strato Quote Link to comment Share on other sites More sharing options...
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.