Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Real Name
    Kevin
  1. I'm still trying to get this module to work properly even with the most recent changes reflected in my code, it still doesn't work. I can get to step 4 and it tells me that the page has been moved. Step 4. Entered address. REQUEST: https://est-oee.canadapost-postescanada.ca/ShippingServlet RESPONSE: HTTP/1.1 302 Moved Temporarily If you have a working "ship_canadapost_ajax.php", could you post it, so that I could compare mine with it. I had a meeting with our Canada Post Representative today and he was talking about possibly using the Canada Post "Electronic Shipping Tools Business Desktop 2.0" application and I was wondering if anyone had tried this previously and what kind of success they had with it. Also if anyone knew of an end of day report (pluggin module to osCommerce) that I could use to export the days sales, so that I can easily import this data into that application to do the shipping at the end of the day. Any help would be very much appreciated. Sincerely, Kevin
  2. Thank you... I've been waiting for over a week for our Canada Post Representative to get back to me with the fix.
  3. Dandelion: Sorry for the lateness of my reply. I really appreciate your effort in trying to resolve my issue. (That's not the solution, but good try.) I'm not sure if you've noticed... but your latest issue is my issue. :) Hopefully we'll get it resolved soon... I've been trying to work with someone from Canada Post to try and resolve it sooner rather than later. Sincerely, Kevin
  4. This is where I am at with my ~/public_html/admin/ship_canadapost_ajax.php file. Step 2. Error: Failed check in /home/********/public_html/admin/includes/languages/english/ship_canadapost.php at line 9. This most likely means that Canada Post has changed their user interface. You need to update your Canada Post Automatic Shipping Labels module. // configuration definitions define (ORIGINAL_REFERRER, 'https://est-oee.canadapost-postescanada.ca'); define (SSO, 'https://sso-cal.canadapost-postescanada.ca'); define (PAGE, 'shipping/estShipping.jsp?locale=en_CA&formId='); define (PDF, '/waitingForPDF.jsp?servletName=ParcelMailViewLabelServlet&label=forward&locale=en_CA&language=en_CA'); // step definitions define (START, ORIGINAL_REFERRER.'/'.PAGE.$form_prefix.'0'); define (LOGIN, SSO.'/cpid/login/redirect'); define (APPLICATION, ORIGINAL_REFERRER.'/ShippingServlet'); define (TRANSMIT, ORIGINAL_REFERRER.'/ParcelMailTransmitServlet'); define (RESET, ORIGINAL_REFERRER.'/ResetSessionServlet'); My code for Step 2 case 2: // curl init $ch = cp_setup(false); // new login $response = cp_get_page($ch, SSO.'/cpid/apps/signIn?APP_ID=B2B&SSO_REFERRER_URL=https://obc.canadapost.ca/zcpb2b/b2b/init.do?LOCAL=en_CA&language=EN&shop=CPENCOMM'); // new login form $query_string = 'frmCPIDSignIn:signIn.x=46&frmCPIDSignIn:signIn.y=11&frmCPIDSignIn_SUBMIT=1' . '&frmCPIDSignIn:j_username=' . urlencode(MODULE_SHIPPING_CANADAPOST_USERID) . '&frmCPIDSignIn:j_password=' . urlencode(MODULE_SHIPPING_CANADAPOST_PASSWORD); $response = cp_post_page($ch, SSO.'/cpid/apps/signIn?execution=e3s1', $query_string); // login post vars $query_string = 'SHOP=CPENCOMM&SSO_ITS_URL=%2Fcpid%2apps%2FsignIn&SSO_ACTION=0&P_SHOP=CPENCOMM' . '&login_type=2&password_length=0&language=EN&APP_ID=B2B' . '&SSO_USERID=' . urlencode(MODULE_SHIPPING_CANADAPOST_USERID) . '&SSO_PASSWORD=' . urlencode(MODULE_SHIPPING_CANADAPOST_PASSWORD); $response = cp_post_page($ch, LOGIN, $query_string); curl_close($ch); // Canada Post customer number $regexp = "SSO_CUSTOMER_NUMBER\" value=\"([0123456789]*)(,|\")"; $matches = ''; preg_match("/$regexp/siU", $response, $matches); if (!tep_session_is_registered('cp_customer')) { tep_session_register('cp_customer'); } $cp_customer = $matches[1]; // progress update if (strstr($response, '<input type=hidden name="SSO_VERSION_MAJOR" value="3">') === FALSE) { do_cp_error($step, SC_GENERAL_ERROR); } else { cp_progress($step, LOGGEDIN); } break; Sometimes it times out and gives me a SQL time out error, is this normal? Step 2 2006 - MySQL server has gone away select count(*) as total from sessions where sesskey = '4b26f607a76ab414a36dd3488590bc3e' [TEP STOP] . Error: Failed check in /home/********/public_html/admin/includes/languages/english/ship_canadapost.php at line 9. This most likely means that Canada Post has changed their user interface. You need to update your Canada Post Automatic Shipping Labels module. Can anyone suggest a handy CentOS utility (like a proxy server) so that I can see the request and the responses that happen during the curl process from within a shell account? Thank you in advance for all of your help and for any of your suggestions. Sincerely, Kevin
  5. Natrium... I tried your code and unfortunately it didn't work for me. If you spot anything else, let me know and thanks for trying to help me out. Sincerely, Kevin
  6. I recently installed this contribution, and I think that I've got everything working now (except for the newest change to Canada Posts Interface). Step 2. Error: Failed check in /home/********/public_html/admin/includes/languages/english/ship_canadapost.php at line 9. This most likely means that Canada Post has changed their user interface. You need to update your Canada Post Automatic Shipping Labels module. What I had before: $curl -V curl 7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 lib Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz What I have now: $curl -V curl 7.19.5 (i686-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 libssh2/0.18 Protocols: tftp ftp telnet dict http file https ftps scp sftp Features: IDN IPv6 Largefile NTLM SSL libz What I had before: // configuration definitions define (ORIGINAL_REFERRER, 'https://est-oee.canadapost-postescanada.ca'); define (SSO, 'https://sso-cal.canadapost-postescanada.ca'); define (PAGE, 'shipping/estShipping.jsp?locale=en_CA&formId='); define (PDF, '/waitingForPDF.jsp?servletName=ParcelMailViewLabelServlet&label=forward&locale=en_CA&language=en_CA'); // step definitions define (START, ORIGINAL_REFERRER.'/'.PAGE.$form_prefix.'0'); define (LOGIN, SSO.'/sso/login/redirect'); define (APPLICATION, ORIGINAL_REFERRER.'/ShippingServlet'); define (TRANSMIT, ORIGINAL_REFERRER.'/ParcelMailTransmitServlet'); define (RESET, ORIGINAL_REFERRER.'/ResetSessionServlet'); What I have now: // configuration definitions define (ORIGINAL_REFERRER, 'https://est-oee.canadapost-postescanada.ca'); define (SSO, 'https://sso-cal.canadapost-postescanada.ca'); define (PAGE, 'shipping/estShipping.jsp?locale=en_CA&formId='); define (PDF, '/waitingForPDF.jsp?servletName=ParcelMailViewLabelServlet&label=forward&locale=en_CA&language=en_CA'); // step definitions define (START, ORIGINAL_REFERRER.'/'.PAGE.$form_prefix.'0'); define (LOGIN, SSO.'/cpid/login/redirect'); define (APPLICATION, ORIGINAL_REFERRER.'/ShippingServlet'); define (TRANSMIT, ORIGINAL_REFERRER.'/ParcelMailTransmitServlet'); define (RESET, ORIGINAL_REFERRER.'/ResetSessionServlet'); What I had before: // login post vars $query_string = 'SHOP=CPFRCOMM&SSO_ITS_URL=%2Fsso%2Flogin.jsp&SSO_ACTION=0&P_SHOP=CPFRCOMM' . '&login_type=2&password_length=0&%7Elanguage=EN&APP_ID=B2B' . '&SSO_USERID=' . urlencode(MODULE_SHIPPING_CANADAPOST_USERID) . '&SSO_PASSWORD=' . urlencode(MODULE_SHIPPING_CANADAPOST_PASSWORD); // curl init $ch = cp_setup(false); $response = cp_post_page($ch, LOGIN, $query_string); curl_close($ch); // Canada Post customer number $regexp = "SSO_CUSTOMER_NUMBER\" value=\"([0123456789]*)(,|\")"; $matches = ''; preg_match("/$regexp/siU", $response, $matches); if (!tep_session_is_registered('cp_customer')) { tep_session_register('cp_customer'); } $cp_customer = $matches[1]; // progress update if (strstr($response, '<input type=hidden name="SSO_VERSION_MAJOR" value="3">') === FALSE) { do_cp_error($step, SC_GENERAL_ERROR); } else { cp_progress($step, LOGGEDIN); } break; What I have now: case 2: // login post vars $query_string = 'SHOP=CPFRCOMM&SSO_ITS_URL=%2Fcpid%2login%2FsignIn%3F&SSO_ACTION=0&P_SHOP=CPFRCOMM' . '&login_type=2&password_length=0&language=EN&APP_ID=B2B' . '&SSO_USERID=' . urlencode(MODULE_SHIPPING_CANADAPOST_USERID) . '&SSO_PASSWORD=' . urlencode(MODULE_SHIPPING_CANADAPOST_PASSWORD); // curl init $ch = cp_setup(false); $response = cp_post_page($ch, LOGIN, $query_string); curl_close($ch); // Canada Post customer number $regexp = "SSO_CUSTOMER_NUMBER\" value=\"([0123456789]*)(,|\")"; $matches = ''; preg_match("/$regexp/siU", $response, $matches); if (!tep_session_is_registered('cp_customer')) { tep_session_register('cp_customer'); } $cp_customer = $matches[1]; // progress update if (strstr($response, '<input type=hidden name="SSO_VERSION_MAJOR" value="3">') === FALSE) { do_cp_error($step, SC_GENERAL_ERROR); } else { cp_progress($step, LOGGEDIN); } break; If you see what it is that needs to be changed, certainly help me out as well as everyone else who is in need of this solution. The one other issue I have, is that it doesn't seem to calculate the weight of the package and I'm not 100% sure if it adjusts the box dimensions if I have a bigger box would be required to ship, etc. Any feedback would be great. Thank you in advance. Sincerely, Kevin
  7. I was thinking of always being able to display all of my items, then as I click on subjects, they filter the results. So say for example... all of my products are shown even on the main page, then when I click on products of type "A" then that category of products will be the only set of products that will be shown, and then if I choose subset "B" then a smaller grouping of items will be displayed, etc, etc. Until I get down to just one product. If you know of a contribution that already does this, I'd appreciate it if you'd share the knowledge. Thank you in advance, Kevin
  8. Everyone: I held off from posting for as long as I could, while spending many hours researching my issue. The UPS module, I'm using version 1.3.5, with all of the appropriate bug fixes that I was able to easily find. However... in the Admin section, for the Shipping Modules, UPS Module, I've got all of our shipping information in there, however, when I go for quotes I don't get our negotiated rates properly. I tried troubleshooting by using the UPS website, but I don't get the correct quotes from there either. I only get the accurate rates when I use UPS Connect. Also during the checkout process, I want to make sure that I'm going to be billed at the right rate, and if I can't get the correct negotiated rate (how can I be sure of that?). I don't mind quoting out the regular rate to the customer but I'd rather quote using our negotiated rate, and then have a handling fee, included on every order. Any help / guidance is much appreciated. Sincerely, Kevin
×
×
  • Create New...