Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Charterhouse

Archived
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • Real Name
    Ken Fry

Charterhouse's Achievements

  1. Hi, I was just wondering if anyone could help. I am having issues with the Last_Page_Url functionality. Whatever page a customer is currently viewing on our live site all that is displayed in who's online /stylesheet.php (we have a dynamic css). Would someone be able to explain where the last_page is inserted into the whos_online table. I have looked at catalog/includes/functions/whos_online.php but $wo_last_page_url does not seem to be what's actually being stored in the db. Apologies if this makes no sense. Cheers.
  2. Hi, Thanks for the fix. Works perfectly. I'll have to spend some time to find out excatly why it seems to get encoded but at least our customers can see any protential issues with the payment model. Thanks again, Paul.
  3. Hi Babygurgles, here is the function: function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); Our site is heavily customised and cannot remember if this is chemo's code or not.... Anything look stupid to anyone?
  4. Hi, I'm actually using Chemo's Ultimate URL's but still get this problem. I have no other problems with any payment modules just protx direct. Strange..... Any other suggestions? Thanks.
  5. Hi, thanks for the suggestion. Unfortunately I have already attempted this and it makes no difference. I have no idea if the W3C option is enabled. :blush: Any other suggestions would be really helpful. Regards, Paul.
  6. Hi, Many thanks to Tom & co for all the hard work put in. I have a quick question regarding a problem with my error messages.... I'm currently having issues with the actual error message box being displayed but no actual error message inside. The url being returned is ?payment_error=protx_direct&error=The+credit+card+number+entered+is+invalid.+Please+check+the+number+and+try +again.&protx_direct_cc_owner=..... For some reason (I can't work out why) amp; is being included after every &. Any ideas on a quick fix for this? I have chemo's URL cont installed but it works fine for all other messages. Cheers Paul.
  7. Hi Tom, Thanks again for the new update but I still seem to be having issues with the iframe (in both ie and firefox). The iframe is displayed but with the following error inside: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.ArrayIndexOutOfBoundsException: Input to decode not an even multiple of 4 characters; pad with =. com.protx.mpi.xml.Base64.decode(Base64.java:263) com.protx.mpi.xml.Base64.decode(Base64.java:324) com.protx.mpi.simulator.AccessControlServlet.processPayerAuthenticationRequest(A ccessControlServlet.java:82) com.protx.mpi.simulator.AccessControlServlet.doPost(AccessControlServlet.java:68 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. Is this an issue with the config of my shop as no one else seems to have this problem. I understand that your very busy at the minute but it would be a huge help if you could provide any suggestions to a possible resolution. Kind Regards, Paul.
  8. Hi, Thanks for the update to this superb contribution. Unfortunately I seem to be having an issue with the iframe using 3dsecure. When use iframe is set to true it produces an internal server error: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.ArrayIndexOutOfBoundsException: Input to decode not an even multiple of 4 characters; pad with =. com.protx.mpi.xml.Base64.decode(Base64.java:263) com.protx.mpi.xml.Base64.decode(Base64.java:324) com.protx.mpi.simulator.AccessControlServlet.processPayerAuthenticationRequest(A ccessControlServlet.java:82) com.protx.mpi.simulator.AccessControlServlet.doPost(AccessControlServlet.java:68 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. Any ideas on what could be going wrong here? Any help would be superb. Regards, Paul.
  9. Hi, We currently use protx direct but find that around 5-10% of transactions seem to fail. We would therefore like to use protx form as a backup. We have installed the latest module and all seems to work fine apart from when the 'cancel' button in clicked when on the protx form itself. We then get a fatal error: Fatal error: Call to a member function on a non-object in /home/......../catalog/includes/functions/html_output.php on line 49 which refers to the The HTML href link wrapper function the url being returned is: /checkout_payment.php?osCsid=&error_message=The+Customer+ABORTED+the+transaction+by+clicking+the+CANCEL+bu tton+on+the+payment+screen. Has anybody experienced this problem before? Any help would be fantastic. Kind Regards, Paul.
  10. Hi, I am really keen to have a simple report that lists all products that need to be reordered. I wish to specify a re-order level for each individual product, i.e. just like the product quantity. The report will then list out the items that are below the reorder level that has been set. The 'Product ReOrder Report' seems to do exactly what I require however im using the 2.2 Milestone and this installation does not work. Unfortunately I am not a php/msql developer :'( . Does anybody have any suggestions or is running a report like this. Any information/response would be fantastic. Thanks, Paul.
  11. We use Margin Report and Monthy Sales/Tax Report, but the gross sales don't agree on both reports. It looks like Margin Report ignores multipe product quantities, and just calculates the margin on a quantity of 1 item per product on an order. Anyone else had that problem and know of a fix? Thanks
  12. We use Order Editor a lot (great contribution), but we also use Margin Report and the two don?t seem to be totally compatible. Amendments made to products and costs with Order Editor, do not seem to be reflected in Margin Report. Anyone else had this problem? Thanks Charterhouse
  13. We?ve recently installed Margin Report (great contribution) and have a couple of issues. Apologies if these have been covered elsewhere, but I?ve been through this (long) thread and can?t see them:- 1. The COST of a product does not seem to be transferred to the order, so if the cost changes, say due to a price rise, it affects all historic orders as well. Is that the case, or have we done something wrong? 2. We use the Order Amendment contribution a lot, but changes made with this contrib do not seen to be reflected in the numbers calculated by the Margin report. Has anyone else had this problem? We have the same issue with accounting for attributes, but as we don?t use them in a big way, we could get around the problem manually using Order Amendment. Any help appreciated Charterhouse
  14. Hi, We are currently testing the protx direct payment module. All cards are working fine apart from solo cards (UK). The error being display from protx confirms that the card number does not match the card type. Our validation code is as follows: class cc_validation { var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year; function validate($number, $expiry_m, $expiry_y) { $this->cc_number = ereg_replace('[^0-9]', '', $number); if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) { $this->cc_type = 'Visa'; } elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) { $this->cc_type = 'MC'; } elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) { $this->cc_type = 'AMEX'; } elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'Diners Club'; } elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Discover'; } elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'JCB'; } elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Australian BankCard'; } elseif (ereg('^49030[2-9]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49033[5-9]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49110[1-2]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49117[4-9]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49118[0-2]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^4936[0-9]{2}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^564182([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^6333[0-4]{1}([0-9]{1})([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^6759[0-9]{2}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^6767[0-9]{2}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } else { return -1; } It would be fantastic if anybody could provide some updated code that works for solo cards. Our solo card starts with 6767 as the first four numbers. Oscommerce is treating this as a switch card. We are not sure what is the correct method of implementing this. Kind Regards, Charterhouse.
  15. Hi, We are currently testing the protx direct payment module. All cards are working fine apart from solo cards (UK). The error being display from protx confirms that the card number does not match the card type. Our validation code is as follows: class cc_validation { var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year; function validate($number, $expiry_m, $expiry_y) { $this->cc_number = ereg_replace('[^0-9]', '', $number); if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) { $this->cc_type = 'Visa'; } elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) { $this->cc_type = 'MC'; } elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) { $this->cc_type = 'AMEX'; } elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'Diners Club'; } elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Discover'; } elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'JCB'; } elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Australian BankCard'; } elseif (ereg('^49030[2-9]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49033[5-9]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49110[1-2]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49117[4-9]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^49118[0-2]{1}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^4936[0-9]{2}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^564182([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^6333[0-4]{1}([0-9]{1})([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^6759[0-9]{2}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } elseif (ereg('^6767[0-9]{2}([0-9]{10,13})?$', $this->cc_number)) { $this->cc_type = 'Switch'; } else { return -1; } It would be fantastic if anybody could provide some updated code that works for solo cards. Our solo card starts with 6767 as the first four numbers. Oscommerce is treating this as a switch card. We are not sure what is the correct method of implementing this. Kind Regards, Charterhouse.
×
×
  • Create New...