Jump to content

benspun

Members
  • Content count

    96
  • Joined

  • Last visited

Everything posted by benspun

  1. benspun

    edgeoi feed error

    Hi mjr, I have the same problem (an XML file with no products in it). The SELECT statement also returns 0 results for me. How did you modified the query to fix that? Thanks,
  2. Hi Tomcat, No, unfortunately it would not work. I looked at the contribution you wrote about (paypal IPN 0.981) and the code of this is very different from the normal PayPal module. But I located where you could probably modify it to suit your needs: in /catalog/checkout_paypalipn.php, at line 253: tep_redirect("https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick&business=".MODULE_PAYMENT_PAYPALIPN_ID."&item_name=".urlencode(STORE_NAME)."&item_number=".$insert_id."&currency_code=".$paypal_ipn_currency."&amount=".$paypal_ipn_order_amount."&shipping=".$paypal_ipn_shipping_amount."&tax=".$paypal_ipn_tax_amount."&first_name=".urlencode($order->customer['firstname'])."&last_name=".urlencode($order->customer['lastname'])."&address1=".urlencode($order->customer['street_address'])."&city=".urlencode($order->customer['city'])."&state=".urlencode($order->customer['state'])."&zip=".urlencode($order->customer['postcode'])."&email=".$order->customer['email_address']."&bn=oscommerce-osmosis-0.981&return=".tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')."&cancel_return=".tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')."&notify_url=".MODULE_PAYMENT_PAYPALIPN_NOTIFY_URL); this is where the url is sent to PayPal. So you would need to add this bit of code: &lc=FR to have the PayPal page displayed in French, for example. The "&" always precedes some bit of information send to PayPal, so you just add here another bit of information, which is the default country for your buyer (and PayPal will display the payment page in the language of this country). So you need to add something like this code: &lc=".urlencode(COUNTRY_LANG)." into the PayPal URL of your /catalog/checkout_paypalipn.php Try replacing the line 253 with this line: tep_redirect("https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick&business=".MODULE_PAYMENT_PAYPALIPN_ID."&item_name=".urlencode(STORE_NAME)."&lc=".urlencode(COUNTRY_LANG)."&item_number=".$insert_id."&currency_code=".$paypal_ipn_currency."&amount=".$paypal_ipn_order_amount."&shipping=".$paypal_ipn_shipping_amount."&tax=".$paypal_ipn_tax_amount."&first_name=".urlencode($order->customer['firstname'])."&last_name=".urlencode($order->customer['lastname'])."&address1=".urlencode($order->customer['street_address'])."&city=".urlencode($order->customer['city'])."&state=".urlencode($order->customer['state'])."&zip=".urlencode($order->customer['postcode'])."&email=".$order->customer['email_address']."&bn=oscommerce-osmosis-0.981&return=".tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')."&cancel_return=".tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')."&notify_url=".MODULE_PAYMENT_PAYPALIPN_NOTIFY_URL); After, add this line: define('COUNTRY_LANG', 'US'); // The "ISO 3166-1 alpha-2" country code for a country that has *this* language as their main one, eg: FR for France (French) into your languages files, in: /catalog/includes/languages/english/english.php and /catalog/includes/languages/espanol/espagnol.php and etc. (all your language files) Indeed, you need to modify this last line according to the country which has the language you want. Here is "US", for displaying in English. Use "ES" for Spanish, "FR", for French, etc. I haven't tested this (since I am not using this contribution) but it should work. If it doesn't, look carefully at the URL of the PayPal page to see where is the error. I hope it can help. Tell me how it goes. Regards, -Ben
  3. Oups, I didn't put the link to the contribution! I do not have the access to edit my previous post, so: The PayPal Payment Page Automatic Language Selection contribution is available at: http://www.oscommerce.com/community/contributions,4701
  4. benspun

    Trying to set up paypal payment option

    Hello Jamie, You only need a PayPal account. And you put your email address in the admin section of your store, in Modules -> Payment -> PayPal In your PayPal account, in Profiles -> Instant Payment Notification, Turn the IPN on, and put the correct URL: http://your_shop.com/checkout_success.php That's it. -Ben
  5. Update: I also released the Spanish language file for the latest version of All Products. No further code changes, only this language file. This latest package contains everything (English, French, German & Spanish). -Ben
  6. Small announcement: I've released AllProducts_V_4.4c (Mutlilanguage friendly) Only a small change compared to the previous version (v4.4b w SQL fix): All Products is now multilanguage friendly. There is no more English text embedded in the code, but instead some variables in the different language files, which then permits this contribution to fully support different languages. Nothing else made. Full credit goes to the original authors. Included in the zip file are the English, French and German versions of All Products. Regards, -Ben
  7. Update, for those interested: I made the modifications by hand, with file compares between the original osCommerce files and the QTP v4.25 files. It took me quite a few hours, but it works. So it's possible to do.
  8. I am using the latest osCommerce update (060817) and I would like to use QTP v4.25. I am also using the Register_Globals v1.5 contribution (allowing to turn register_globals off). There are quite a few in the 060817 update, compared to the previous update, as well as in the Register_Globals contribution, and QTP v4.25 also requires the modification of many files, which makes the integration seemingly a bit long and tedious. Anybody had tried that, or knows if it conflicts in any way? Thanks for any help or comment.
  9. benspun

    Can't add another Zone

    I had the same problems, I just found out the cause : You have to click "Remove" and to "Install" this Zone Rates module again after having changed the number of zones in the php file, I guess to create the necessary entries in the SQL database.
×