Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by Philip79

  1. I want to not allow customers to pay with a check or money order if they are outside of the USA. Most of my customers know not to choose that payment option but since I just had a customer in Europe choose that payment mthod and in spite of email messages indicating not to send their payment in Euros they did just that. So I found in another thread for the credit card module the following lines of code: if($_SESSION['customer_country_id']==223) { $this->enabled = true; } else { $this->enabled = false; } so that it would be inserted into the \includes\modules\payment/moneyorder.php program after the initial lines of code: class moneyorder { var $code, $title, $description, $enabled; // class constructor function moneyorder() { global $order; $this->code = 'moneyorder'; $this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE; $this->description = MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_MONEYORDER_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false); So would this be appropriate so that only customers in the USA would have this payment method display after it was selected otherwise the money order screen does not diaplay and they would be returned to the payment method sleection screen? Thanks.
  2. I have discovered the answer to my question. Thanks.
  3. In the documentation for the new PayPal App it indicates that the new App is compatible with from version 2.2RC2a and that version appears to have been released in 2008. The zip file that my store was installed from is titled oscommerce-2.2ms2-060817.zip which appears to mean that it was released August 17, 2006. So is the release that I have installed prior to v2.2RC2a? Thanks.
  4. Philip79

    paypal_ipn.php,v Error Messages

    Thanks for the link but that it for paypal standard not paypal_ipn. It turns out that the hosting provider did not change the DNS entry when they moved my site to the new server. So I have been making the changes to the new server and the customers are still pointing to the old server. I changed the directory permissions on the /ext/ directory to 644 from 770. So perhaps that will correct the problem? I have also asked for a complete refresh of the new server and for them to hold off on the DNS entry changes until everything is working properly on the new server that I have the ip address now.
  5. In the past couple of weeks I have started receiving error messages from the paypal_ipn module with the subject of "PayPal IPN Invalid Process" and the email messages contains only the folliwng message: $_POST: $_GET: I have had this module, version, installed and workign for several years without issue. However in the past couple of weeks my hosting service moved my web site to new servers. My settings within the IPN module are: Enable Encrypted Web Payments = false Working Directory = /tmp/ OpenSSL Location = /usr/bin/openssl (this location may have changed as a result of the move to the new server but since encrypted web payments is set to false this should not be affected, correct?) On the PayPal web side I found that the Instant Payment Notification Preference had been disabled. I do not know if that was enabled before or not. I decided to enable it as the refernce books that I have on osCommerce indicate that the path for the ipn module should be recorded there = (my web site)/ext/modules/payment/paypal_ipn/ipn.php Any suggestions on why I have been receiving there error messages? Thank you.
  6. Philip79

    paypal_ipn.php,v Error Messages

    I beleive that I discovered the problem. When the hosting compnay moved my web site to another server and drive they changed the permissions. I checked in the Troubleshooting section of the documentation for the v2.3.4.7 paypal_ipn.php and the second bullet suggested attempting to open the /ext/modules/payments/paypal_ipn/ipn.php file. I received a file not found message. So I checked the permission to the ext directory and it was not set to 644. So I changed the permissions and received a blank screen as documented. However I just received another error email message: $_POST: $_GET: Again no values present in the message.
  7. Philip79

    paypal_ipn.php,v Error Messages

    Harald, thanks for your reply. It is actually the standard version with a change for the character set and the currency and a few lines added for the coupons add-on. Also a couple of lines added to check if the working directory exists before opening the file in the working directory, writing data to the data.txt file and closing it (see below): if (!file_exists(MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY)) { mkdir(MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY, 0755); } paypal_ipn.php does not include any output of $_POST: so is that coming from the ipn.php module based upon the code I have reviewed this is because of tep_not_null (line #320): if (tep_not_null(MODULE_PAYMENT_PAYPAL_IPN_DEBUG_EMAIL)) { $email_body = '$_POST:' . "\n\n"; foreach ($_POST as $key => $value) { $email_body .= $key . '=' . $value . "\n"; } $email_body .= "\n" . '$_GET:' . "\n\n"; foreach ($_GET as $key => $value) { $email_body .= $key . '=' . $value . "\n"; } tep_mail('', MODULE_PAYMENT_PAYPAL_IPN_DEBUG_EMAIL, 'PayPal IPN Invalid Process', $email_body, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } However I don't see any value in the email message. Perhaps this is due the character set I used and the new servers not supporting utf-8?
  8. Thanks for the replies. I did insert a new payment/tax zone as you suggested and I had fogotten about the Details to associate the country with the new zone. Works great and no customization. Thanks also for the information about the correct value for the country for future refernce.
  9. I have installed all of the latest patches, etc. for the contribution Advanced Search – Attributes at http://addons.oscommerce.com/info/2337 The only issue that I am having however is that all of the attributes, in my case color, are displaying in the list box regardless of the language chosen. There was a patch provided over 4 years ago and many versions earlier then the latest version that supposedly addressed the issue and i have included that patch in the code without success. Any assistance would be appreciated as the rest of the contribution works fine. Thanks. Philip
  10. Philip79

    Does anybody have a PayByCash module?

    Don, did you ever find a payment module for PayByCash or work with them to develop an interface? I am interested in their product as well. Thanks. Philip
  11. Philip79

    Official PayPal IPN Support Thread

    Yes, it has been a problem for months now with PayPal. I experience it myself when paying for auction from eBay. Usually the problem presents itself when I use a browser other than IE. If I switch to using IE, the problem usually goes away. But a few months ago, even using IE did not resolve the problem. PayPal's work around was to have you go into your account, delete your primary checking account, pay for the account with a different account, and then after you had successfully made your payment then add the primary checking account information back into your account. I haven't had to do that for a few months and it even affected my ability to transfer funds from my PayPal business account to my checking account. But of most recent switching to IE to make the payment seems to work. You could have the customer try and clear their cache but that didn't seem to resolve the problem. Philip
  12. Philip79

    5% Discount offering option on checkout

    Search for a contribution called Discount Coupon Codes. I use it currently on my site.
  13. Philip79

    Paypal integrations

    Backa few months ago I was also new to osCommerce but I purchased a book on Amazon written by David Mercer entitled "osCommerce: Beginner's Edition". It expplained a lot of things about osCommerce including configuring various options including how to use PayPal IPN module for PayPal paymat least the Beginner's Edition. Also remember that your Merchant Account to accept VISA, Mastercard, American Express, or Discover payments has nothing to do with PayPal and you need to configure a separate module in osCommerce to accept credit card payments. You have to set up as separate Business account with PayPal and they have a "sandbox" for their test environment.
  14. Philip79

    Check/Money Order

    I am experiencing a problem where a customer has placed an order, which was confirmed as he mailed the order confirmation page to me with his payment, but the order was not written to the orders database. I have received other customer orders that paid either with the generic Credit Card or the PayPal IPN payment modules that did write to the database. I didn't know the order was placed until I received the payment and order confirmation page from the customer. I would appreciate any suggestions or if there is a know error and fix for this problem. Thanks. Philip
  15. The problem was that somehow the default language was no longer checked. Once I checked, in my case English, as the default language the problem was resolved. Dpcumenting the resolutions others can have as a reference incase they run up against the same problem. :thumbsup:
  16. Philip79

    French Language

    The problem was that somehow the default language was no longer checked. Once I checked, in my case English, as the default language the problem was resolved. Dpcumenting the resolutions others can have as a reference incase they run up against the same problem. :thumbsup:
  17. Philip79


    The problem was that somehow the default language was no longer checked. Once I checked, in my case English, as the default language the problem was resolved. Dpcumenting the resolutions others can have as a reference incase they run up against the same problem. :thumbsup:
  18. Philip79


    All of my international customers are unable to view my site. They receive the following error message: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /web/osc/includes/application_top.php on line 286 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/local/pkg/php-4.4.2/lib/php') in /web/osc/includes/application_top.php on line 286 I have English, English_GBP, French, Espanol, & German installed with all of the required files in the appropriate directories. When I developed the English_GBP I just copied the English file and folder and associated the Union Jack with that language and for French I used one of the contributions and validated that all of the files were present. I can of course access my site based in the USA and I can change the language and everything works fine, but international customers when they attempt to navigate to my site, they receive the above error message. I would appreciate any assistance or ideas. Thank you. Philip
  19. Philip79

    Check/Money Order

    The problem is resolved. It was apparently related to file permissions that had become messed up by the hosting service. :thumbsup:
  20. Philip79

    French Language

    Did you figure out your problem? I am getting the same error code. Thank you. Philip
  21. Mikey, did you get a resolution to your problem? I am getting the same error message with my production my web site for any international customer. Philip
  22. I noticed when comparing file that \catalog\checkout_confirmation.php has anothr chnage form the earlier version at line 48 and that is not inlcuded in your instructions. The previous version had the following code segment: //kgt - discount coupons if (!tep_session_is_registered('coupon')) tep_session_register('coupon'); if (tep_not_null($HTTP_POST_VARS['coupon'])) { //this needs to be set before the order object is created, but we must process it after $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']); } //end kgt - discount coupons and the new version has: //kgt - discount coupons if (!tep_session_is_registered('coupon')) tep_session_register('coupon'); //this needs to be set before the order object is created, but we must process it after $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']); //end kgt - discount coupons Please advise about this difference. Thanks for the contributon.
  23. Philip79

    Official PayPal IPN Support Thread

    I found the instructions in the book "osCommerce: Beginner's Editoin" by David Mercer to be very instructive for both PayPal IPN and many other topics. You can purchase it Amazon or other bookstores.
  24. I have version 1.3b installed. Is this fix for the specific browser and version of browser needed in v1.3b? Also, is there a way to make the popup browser window to have the scroll bars enabled? I am resizing my image height but that is based upon a screen resolution of 1024x768 pixels. They are actually smaller to accommodate the navigation buttons. Also, I have tried different modifications to enable the text; e.g., Next and Previous, to be text constants defined in the appropriate language files; e.g., english, espanol, etc., but without success. An way to enable that functionality? Thanks for the contribution as it saved me having to maintain old html pages from my FrontPage developed site for the additional images. I am using the ImageMagic version of popup_images.php
  25. Philip79

    Pay Pal

    You will find that phrase in each of the language files for PayPal IPN. The path to them is catalog\inlcudes\languages\english\modules\payment\paypal_ipn.php Substitute german or espanol for english in the path and modify the phrase in those two respective files and any other languages that you are supporting on your web site. Make sure you make a backup of your existing file(s) before editing although just in case.