Results 1 to 10 of 470

Hybrid View

  1. #1
    Join Date
    Aug 2015
    Location
    Earth
    Posts
    5
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    I have a fix!


    for everyone who knows how to change the PHP code.
    Go to /includes/modules/shipping/canadapost.php line 330 and replace the _sendToHost function with this:

    function _sendToHost($host, $port, $method = 'GET', $path, $data, $useragent = 0)
    {
    $url = 'http://'.$host.':'.$port.'/' ;
    $params = array ('XMLRequest' => $data);
    $query = http_build_query ($params);
    $contextData = array (
    'method' => 'POST',
    'header' => "Connection: keep-alive\r\n".
    "Content-Type: application/x-www-form-urlencoded\r\n".
    "Content-Length: ".strlen($query)."\r\n",
    'content'=> $query );
    $context = stream_context_create (array ( 'http' => $contextData ));
    $buf = file_get_contents ($url, false, $context);
    return $buf;
    }





    Look at cryptocoins like bitcoin or ethereum. If you like to blaze weed check out the hemp coin or pot coin. They're the future of the world.

    Take your ecommerce store into the future with crypto. No fees + contracts for more complex types of ordering.
    Last edited by Cryptocoins; 25 Aug 2015 at 07:20 PM.

  2. #2
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    Thanks cryptocoins. Tried. Tested on my site. Works.

    I did notice that my sellonline settings seemed to be changed after CanadaPost software update, adding choices that I had unselected, which I easily reset through the mod edit screen.

  3. #3
    Join Date
    Aug 2015
    Location
    Earth
    Posts
    5
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    If you need me to fix this in your cart, send me a private message on here.

    I will charge 0.001 BTC, 0.1 ETH or 1 POT. I do not accept CAD $ payments for my skills.

  4. #4
    Join Date
    Jan 2012
    Location
    Canada
    Posts
    16
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    Good work Cryptocoins! you made my day

  5. #5
    Join Date
    Feb 2010
    Posts
    237
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    That fix didn't work for me.

    I just tried it and Admin/Shipping went blank except for the Advanced Shipper module that I use for U.S. shipping. There were no other modules showing. The Shipping Estimator on the shopping cart page didn't work and the checkout was just blank.

    Any suggestions?

    Dave

  6. #6
    Join Date
    Jun 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    Thank you for the fix cryptocoins.

    Received this from Canada Post, not sure if it means that we should change the "Enter CanadaPost Server" in the module to: 198.33.104.28.

    Dear Customer,

    As a result of a major upgrade completed on the weekend, the IP address for Sell Online (sellonline.canadapost.ca) has been changed to 198.33.104.28. If your IT department has firewall rules restricting incoming IP addresses, you must update any firewall restrictions to allow the new returning IP address on port 30000. You may need to contact your firewall administrator for assistance.

    If your firewall is allowing communication with our new IP address, you might still be experiencing issues. We are working on a known issue for customers using TCP instead of HTTP protocol. We will let you know as soon as we have a solution for this issue.

    Stabilization issues resolved

    You may have experienced some slowdowns with the Sell Online web service Monday as our systems stabilized. We have resolved these issues. Thank you for your patience.

    If you have any questions, please contact us through our Developer Forum by signing in to the Developer Program.

    Sincerely,
    The Canada Post online team

  7. #7
    Join Date
    Nov 2013
    Location
    Shelburne, on
    Posts
    1
    Plugin Contributions
    1

    Default Re: Yes! Set it up by weight

    thanks for the info cryptocoins. It worked like a charm. you just need to modify your php code. the email that canada post sent out is not going to help you. I left all setting the same on the zencart shipping module but changed the php code on line 330 of /includes/modules/shipping/canadapost.php

  8. #8
    Join Date
    Aug 2013
    Location
    Stratford, Ontario, Canada
    Posts
    5
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    Thanks Cryptocoins. I`m back in business.
    The checkout pages that deal with shipping are now really slow to load, but I gather Canada Post in continuing to work on issues.

    Cheers,
    Max

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Yes! Set it up by weight

    Quote Originally Posted by jarmilka View Post
    Received this from Canada Post, not sure if it means that we should change the "Enter CanadaPost Server" in the module to: 198.33.104.28.
    No.
    Using an IP address instead of a hostname should only ever be considered in very limited situations - such as the few hours after an IP address has been changed and the time it takes to propagate through the DNS. In other words, almost never.
    It is far better to leave alone until things start to correctly resolve again.

    Cheers
    RodG

  10. #10
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

    Default Re: Yes! Set it up by weight

    I received and ignored same email from Canada Post. I tested the hack from cyptocoins and it worked. Also had orders go through with no problem since.

 

 

Similar Threads

  1. Canada Post Module (w/Beanstream payment module)
    By sgt_slaughter in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Sep 2009, 07:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg