Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SCH_001

Members
  • Posts

    375
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by SCH_001

  1. SCH_001

    phpcurl error

    It's been a bit erratic but weekend sales have been quiet. Had a couple of customers let me know over the last couple of weeks but at same time others have succeeded. logs don't show any error just multiple attempts from same users. But the test in admin on the PayPal General tab is failing
  2. SCH_001

    phpcurl error

    Customers are telling me PayPay payments are not working and on doing a SSL test it is failing saying something about the host and phpcurl on clicking more info it seems like old info from 2018.. so why is this failing now with the same error as last image on the more info link
  3. Ok lets work on one item at a time, How can I correct the installation? I have already uninstalled and re-installed and it has made no difference. I have also installed it on a test version of frozen and still won't save bad words Also tested on Phoenix and same issue won't save bad words Can we get this sorted first..
  4. Thanks Jack, yes just putting it on the contact us page, and yes have that ticked in admin but seems to have not made a difference. So want to add some bad words but they will not save see my other posts one page back
  5. has have forums on them? not sure what you mean... How do I go about fixing the saving of the badwords?
  6. @Jack_mcs Hi Jack is your honeypot meant to look like the image below as it appears to have grid list in it as well I downloaded this from https://apps.oscommerce.com/t3rEO&honey-pot-captcha and uploaded the includes folder from the v234 new files directory I will go an un-install a download and ftp again and see if it's different
  7. It appears spam emails are still getting threw with the below content in them http://enibpatcons.tk/ucgm?GXiHtf
  8. Hi Jack, I have just installed this on osCommerce Online Merchant v2.3.4.1 CE aka Frozen BS and when I enter a word in the bad word area and click save the bad words not saved I also added the extra TOR IP's part as per above Can you please assist
  9. arrr Thank you @BrockleyJohn I did not have Instant Update turned on I will now monitor and see how I go
  10. Hi guys a bit if a long explanation given, so hopefully someone can give correct fix I have been getting orders coming threw with no shipping method selected and no payment for shipping being paid causing us heaps of issues when we go to request the shipping fee So the customers are skipping the "Shipping Method" checkout_shipping.php by selecting "checkout with paypal" from the "What's In My Cart?" shopping_cart.php page which takes the customer to paypal and then returns them to the "Confirmation" page totally skipping where they need to choose a freight option and as such the freight appears as below So have I got something setup wrong? I have not idea where the s: is coming from.
  11. So is your site got an SSL cert install and the SSL is all working correctly? Use this link to test https://www.whynopadlock.com/
  12. The original add-on looks horrid with layout etc so would like to get this this one working Ok I have had some time to look at this again and copied all the pdf_invoice related files up in to the correct areas in admin and are now getting this error Fatal error: Uncaught Error: Call to a member function format() on null in /home/xxxx/public_html/store/admin/pdfinvoice.php:53 Stack trace: #0 {main} thrown in /home/xxxxx/public_html/store/admin/pdfinvoice.php on line 53 Line 52 is the first line under the comment line // Find Currency Symbol $currency_sym = $currencies->format($order->info['currency']); $currency_sym = preg_replace( '([0-9Â.]*)', '', $currency_sym); $prod_line_sym = ''; if (DISPLAY_PROD_LINE_CURRENCY == 'true'){$prod_line_sym = $currency_sym . ' ';}
  13. Hi @JcMagpie I have no idea why you have mentioned this as it has no bearing on my question I am seeking assistance in getting pdf invoice to work in the admin area in frozen line 251 in admin/order.php how do I change invoice.php to pdfinvoice.php as the pdfinvoice is in the root dir not the admin dir I have not been able to work out how to make it work. Even if I copy pdfinvoice.php to admin it still relies on other files div style="text-align: right; padding-bottom: 15px;"><?php echo tep_draw_button(IMAGE_ORDERS_INVOICE, 'document', tep_href_link('invoi Can anyone assist with how to code this correctly
  14. Hi all, am I the only one that wants PDF invoice in the admin customer area?
  15. Ok a new question in frozen line 251 in admin/order.php how do I change invoice.php to pdfinvoice.php as the pdfinvoice is in the roor dir not the admin dir I have not been able to work out how to make it work div style="text-align: right; padding-bottom: 15px;"><?php echo tep_draw_button(IMAGE_ORDERS_INVOICE, 'document', tep_href_link('invoice.php', 'oID=' . $_GET['oID']), null, array('newwindow' => true)) . tep_draw_button(IMAGE_ORDERS_PACKINGSLIP, 'document', tep_href_link('packingslip.php', 'oID=' . $_GET['oID']), null, array('newwindow' => true)) . tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link('orders.php', tep_get_all_get_params(array('action')))); ?></div> As guessed I am trying to replace the invoice in admin with the pdf one
  16. Ok Yes the paypal user got added to the customer list account deleted swapped to google chrome browser cleared all history etc using the advanced tab and tried again same result
  17. Ok that's now got the customers first and last name entered but still no logon The screen refreshes the connect with paypal box closes but still not logged in
  18. Many thanks for the reply @peterbuzzin file below <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ if ( !class_exists('OSCOM_PayPal') ) { include(DIR_FS_CATALOG . 'includes/apps/paypal/OSCOM_PayPal.php'); } class cm_paypal_login { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; var $_app; function __construct() { global $PHP_SELF; $this->_app = new OSCOM_PayPal(); $this->_app->loadLanguageFile('modules/LOGIN/LOGIN.php'); $this->signature = 'paypal|paypal_login|4.0|2.3'; $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = $this->_app->getDef('module_login_title'); $this->description = '<div align="center">' . $this->_app->drawButton($this->_app->getDef('module_login_legacy_admin_app_button'), tep_href_link('paypal.php', 'action=configure&module=LOGIN'), 'primary', null, true) . '</div>'; if ( defined('OSCOM_APP_PAYPAL_LOGIN_STATUS') ) { $this->sort_order = OSCOM_APP_PAYPAL_LOGIN_SORT_ORDER; $this->enabled = in_array(OSCOM_APP_PAYPAL_LOGIN_STATUS, array('1', '0')); if ( OSCOM_APP_PAYPAL_LOGIN_STATUS == '0' ) { $this->title .= ' [Sandbox]'; } if ( !function_exists('curl_init') ) { $this->description .= '<div class="secWarning">' . $this->_app->getDef('module_login_error_curl') . '</div>'; $this->enabled = false; } if ( $this->enabled === true ) { if ( ((OSCOM_APP_PAYPAL_LOGIN_STATUS == '1') && (!tep_not_null(OSCOM_APP_PAYPAL_LOGIN_LIVE_CLIENT_ID) || !tep_not_null(OSCOM_APP_PAYPAL_LOGIN_LIVE_SECRET))) || ((OSCOM_APP_PAYPAL_LOGIN_STATUS == '0') && (!tep_not_null(OSCOM_APP_PAYPAL_LOGIN_SANDBOX_CLIENT_ID) || !tep_not_null(OSCOM_APP_PAYPAL_LOGIN_SANDBOX_SECRET))) ) { $this->description .= '<div class="secWarning">' . $this->_app->getDef('module_login_error_credentials') . '</div>'; $this->enabled = false; } } } } function execute() { global $oscTemplate; if ( isset($_GET['action']) ) { if ( $_GET['action'] == 'paypal_login' ) { $this->preLogin(); } elseif ( $_GET['action'] == 'paypal_login_process' ) { $this->postLogin(); } } $scopes = cm_paypal_login_get_attributes(); $use_scopes = array('openid'); foreach ( explode(';', OSCOM_APP_PAYPAL_LOGIN_ATTRIBUTES) as $a ) { foreach ( $scopes as $group => $attributes ) { foreach ( $attributes as $attribute => $scope ) { if ( $a == $attribute ) { if ( !in_array($scope, $use_scopes) ) { $use_scopes[] = $scope; } } } } } $cm_paypal_login = $this; ob_start(); include('includes/modules/content/' . $this->group . '/templates/tpl_' . basename(__FILE__)); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function preLogin() { global $paypal_login_access_token, $paypal_login_customer_id, $sendto, $billto; $return_url = tep_href_link('login.php', '', 'SSL'); if ( isset($_GET['code']) ) { $paypal_login_customer_id = false; $params = array('code' => $_GET['code'], 'redirect_uri' => str_replace('&amp;', '&', tep_href_link('login.php', 'action=paypal_login', 'SSL'))); $response_token = $this->_app->getApiResult('LOGIN', 'GrantToken', $params); if ( !isset($response_token['access_token']) && isset($response_token['refresh_token']) ) { $params = array('refresh_token' => $response_token['refresh_token']); $response_token = $this->_app->getApiResult('LOGIN', 'RefreshToken', $params); } if ( isset($response_token['access_token']) ) { $params = array('access_token' => $response_token['access_token']); $response = $this->_app->getApiResult('LOGIN', 'UserInfo', $params); if ( isset($response['email']) ) { $paypal_login_access_token = $response_token['access_token']; tep_session_register('paypal_login_access_token'); $force_login = false; // check if e-mail address exists in database and login or create customer account if ( !tep_session_is_registered('customer_id') ) { $customer_id = 0; $customer_default_address_id = 0; $force_login = true; $email_address = tep_db_prepare_input($response['email']); $check_query = tep_db_query("select customers_id from customers where customers_email_address = '" . tep_db_input($email_address) . "' limit 1"); if (tep_db_num_rows($check_query)) { $check = tep_db_fetch_array($check_query); $customer_id = (int)$check['customers_id']; } else { $customers_firstname = tep_db_prepare_input($response['given_name']); $customers_lastname = tep_db_prepare_input($response['family_name']); $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' => $email_address, 'customers_telephone' => '', 'customers_fax' => '', 'customers_newsletter' => '0', 'customers_password' => ''); if ($this->hasAttribute('phone') && isset($response['phone_number']) && tep_not_null($response['phone_number'])) { $customers_telephone = tep_db_prepare_input($response['phone_number']); $sql_data_array['customers_telephone'] = $customers_telephone; } tep_db_perform('customers', $sql_data_array); $customer_id = (int)tep_db_insert_id(); tep_db_query("insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())"); } } // check if paypal shipping address exists in the address book $ship_firstname = tep_db_prepare_input($response['given_name']); $ship_lastname = tep_db_prepare_input($response['family_name']); $ship_address = tep_db_prepare_input($response['address']['street_address']); $ship_city = tep_db_prepare_input($response['address']['locality']); $ship_zone = tep_db_prepare_input($response['address']['region']); $ship_zone_id = 0; $ship_postcode = tep_db_prepare_input($response['address']['postal_code']); $ship_country = tep_db_prepare_input($response['address']['country']); $ship_country_id = 0; $ship_address_format_id = 1; $country_query = tep_db_query("select countries_id, address_format_id from countries where countries_iso_code_2 = '" . tep_db_input($ship_country) . "' limit 1"); if (tep_db_num_rows($country_query)) { $country = tep_db_fetch_array($country_query); $ship_country_id = $country['countries_id']; $ship_address_format_id = $country['address_format_id']; } if ($ship_country_id > 0) { $zone_query = tep_db_query("select zone_id from zones where zone_country_id = '" . (int)$ship_country_id . "' and (zone_name = '" . tep_db_input($ship_zone) . "' or zone_code = '" . tep_db_input($ship_zone) . "') limit 1"); if (tep_db_num_rows($zone_query)) { $zone = tep_db_fetch_array($zone_query); $ship_zone_id = $zone['zone_id']; } } $check_query = tep_db_query("select address_book_id from address_book where customers_id = '" . (int)$customer_id . "' and entry_firstname = '" . tep_db_input($ship_firstname) . "' and entry_lastname = '" . tep_db_input($ship_lastname) . "' and entry_street_address = '" . tep_db_input($ship_address) . "' and entry_postcode = '" . tep_db_input($ship_postcode) . "' and entry_city = '" . tep_db_input($ship_city) . "' and (entry_state = '" . tep_db_input($ship_zone) . "' or entry_zone_id = '" . (int)$ship_zone_id . "') and entry_country_id = '" . (int)$ship_country_id . "' limit 1"); if (tep_db_num_rows($check_query)) { $check = tep_db_fetch_array($check_query); $sendto = $check['address_book_id']; } else { $sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $ship_firstname, 'entry_lastname' => $ship_lastname, 'entry_street_address' => $ship_address, 'entry_postcode' => $ship_postcode, 'entry_city' => $ship_city, 'entry_country_id' => $ship_country_id); if (ACCOUNT_STATE == 'true') { if ($ship_zone_id > 0) { $sql_data_array['entry_zone_id'] = $ship_zone_id; $sql_data_array['entry_state'] = ''; } else { $sql_data_array['entry_zone_id'] = '0'; $sql_data_array['entry_state'] = $ship_zone; } } tep_db_perform('address_book', $sql_data_array); $address_id = tep_db_insert_id(); $sendto = $address_id; if ($customer_default_address_id < 1) { tep_db_query("update customers set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'"); $customer_default_address_id = $address_id; } } if ($force_login == true) { $paypal_login_customer_id = $customer_id; } else { $paypal_login_customer_id = false; } if ( !tep_session_is_registered('paypal_login_customer_id') ) { tep_session_register('paypal_login_customer_id'); } $billto = $sendto; if ( !tep_session_is_registered('sendto') ) { tep_session_register('sendto'); } if ( !tep_session_is_registered('billto') ) { tep_session_register('billto'); } $return_url = tep_href_link('login.php', 'action=paypal_login_process', 'SSL'); } } } // echo '<script>window.opener.location.href="' . str_replace('&amp;', '&', $return_url) . '";window.close();</script>'; echo '<script> if( typeof window.opener === \'undefined\' || window.opener === null ){ window.location.href="' . str_replace('&amp;', '&', $return_url) . '"; }else{ window.opener.location.href="' . str_replace('&amp;', '&', $return_url) . '"; window.close(); } </script>'; exit; } function postLogin() { global $paypal_login_customer_id, $login_customer_id, $language, $payment; if ( tep_session_is_registered('paypal_login_customer_id') ) { if ( $paypal_login_customer_id !== false ) { $login_customer_id = $paypal_login_customer_id; } tep_session_unregister('paypal_login_customer_id'); } // Register PayPal Express Checkout as the default payment method if ( !tep_session_is_registered('payment') || ($payment != 'paypal_express') ) { if (defined('MODULE_PAYMENT_INSTALLED') && tep_not_null(MODULE_PAYMENT_INSTALLED)) { if ( in_array('paypal_express.php', explode(';', MODULE_PAYMENT_INSTALLED)) ) { if ( !class_exists('paypal_express') ) { include('includes/languages/' . $language . '/modules/payment/paypal_express.php'); include('includes/modules/payment/paypal_express.php'); } $ppe = new paypal_express(); if ( $ppe->enabled ) { $payment = 'paypal_express'; tep_session_register('payment'); } } } } } function isEnabled() { return $this->enabled; } function check() { return defined('OSCOM_APP_PAYPAL_LOGIN_STATUS'); } function install() { tep_redirect(tep_href_link('paypal.php', 'action=configure&subaction=install&module=LOGIN')); } function remove() { tep_redirect(tep_href_link('paypal.php', 'action=configure&subaction=uninstall&module=LOGIN')); } function keys() { return array('OSCOM_APP_PAYPAL_LOGIN_CONTENT_WIDTH', 'OSCOM_APP_PAYPAL_LOGIN_SORT_ORDER'); } function hasAttribute($attribute) { return in_array($attribute, explode(';', OSCOM_APP_PAYPAL_LOGIN_ATTRIBUTES)); } function get_default_attributes() { $data = array(); foreach ( cm_paypal_login_get_attributes() as $group => $attributes ) { foreach ( $attributes as $attribute => $scope ) { $data[] = $attribute; } } return $data; } } function cm_paypal_login_get_attributes() { return array('personal' => array('full_name' => 'profile', 'date_of_birth' => 'profile', 'age_range' => 'https://uri.paypal.com/services/paypalattributes', 'gender' => 'profile'), 'address' => array('email_address' => 'email', 'street_address' => 'address', 'city' => 'address', 'state' => 'address', 'country' => 'address', 'zip_code' => 'address', 'phone' => 'phone'), 'account' => array('account_status' => 'https://uri.paypal.com/services/paypalattributes', 'account_type' => 'https://uri.paypal.com/services/paypalattributes', 'account_creation_date' => 'https://uri.paypal.com/services/paypalattributes', 'time_zone' => 'profile', 'locale' => 'profile', 'language' => 'profile'), 'checkout' => array('seamless_checkout' => 'https://uri.paypal.com/services/expresscheckout')); } ?>
  19. The connect with paypal is creating a customer but with no first or last name and does not log on correctly Going to try and spend some time on this tonight Does anyone still have this working correctly especially on frozen
  20. Ok found the issue. It seems when using file zilla to transfer files it seems to like to screw up files big time In this case all the files in modules/fpdf folder
  21. @PaulMC Hi all I am similar problems to others with a blank screen after I moved the shop to it's home. Installed PDF Customer Invoice v1.6 2016/10/29 on frozen So it worked / works on test site when it is in the public_html dir but being move to public_html/store gives me a blank page even when full error writing is on in application top does not produce an error on the page still just blank.. debugger gives me the below but I have no idea what file is producing it.. My only guess is it's not happy with an entry in configure but everything else is working. Error is from https://www.supercheaphobbies.com.au/store/pdfinvoice.php?order_id=6828 Error loading this URI: Could not load the source for blob:https://www.supercheaphobbies.com.au/b3768795-5ed4-4fd6-a22b-afa7a9e4538c. [Exception... "Failed to open input source 'blob:https://www.supercheaphobbies.com.au/b3768795-5ed4-4fd6-a22b-afa7a9e4538c'" nsresult: "0x805303f4 (<unknown>)" location: "JS frame :: resource://devtools/shared/DevToolsUtils.js :: mainThreadFetch/< :: line 631" data: yes] Stack: mainThreadFetch/<@resource://devtools/shared/DevToolsUtils.js:631:15 mainThreadFetch@resource://devtools/shared/DevToolsUtils.js:512:10 _getSourceText@resource://devtools/server/actors/source.js:247:27 Line: 631, column: 0 Line 631 if pdfinvoice.php is $pos_y += $cref_shift_y+6;
  22. So just an update, I left it alone for the afternoon and trying it again and once I matched the tick boxes in the app with what was on paypal it now loads BUT --- after entering paypal username and password the box closes and does nothing.. So enough for today, I will turn it off and try again tomorrow
  23. Ok a quick bit of back ground info. We have been running a osc store now for ages last was osCommerce Online Merchant v2.3.4 and have now installed osCommerce Online Merchant v2.3.4.1 CE Frozen BS in the same location that the old store was in. The old store was working very happy with logon with PayPal but now even thou the return url is exactly the same I can get past the error (invalid client_ID or redirect_uri) I have checked it heaps of times and created a new secret Any idea's on how to debug this?
  24. Thanks @peterbuzzin I now have the button coming up. But even thou my return url has not changed between upgrading the shop to Frozen and I installed the code from this topic it just wont go past (invalid client_ID or redirect_uri) I have checked it heaps of times and created a new secret and according to another user " PayPal has deprecated the Login with PayPal API and it will no longer work as of this morning, it's officially now Connect with PayPal. PayPal have made changes and all my stores with the service Log In with PayPal no longer work. " Can anyone confirm if they still have it working? Can't one of the great developers on here write a "connect with Paypal"
×
×
  • Create New...