Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,478
    Plugin Contributions
    121

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Please let us know the status of your testing. Thanks!
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  2. #12
    Join Date
    Oct 2010
    Location
    East Gwillimbury, Ontario, Canada
    Posts
    2
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Brilliant! That solved my problem too!! Thank you very much!!!

  3. #13
    Join Date
    Nov 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Hello ... I'm getting the same error. I've followed your instructions and changed the two strings in beanstream.php:

    'shippingMethod' => substr($order->info['shipping_method'], 0, 30)

    but I'm still getting this error:

    Shipping method must be less than 64 characters
    - Your INTERAC® card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.


    I'm using version 1.3.9g and the Canada Post module. Site is located at www.mysocksrock.ca. The error doesn't occur when using the "Walk in" shipping method.

    Any ideas how to fix this? Is it possible to change to 128 chars?

    Thanks in advance,
    Chris

  4. #14
    Join Date
    Nov 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Okay, i fixed this. In /includes/classes/order.php I changed the following (line 614):

    'shipping_method' => $this->info['shipping_method'],
    TO
    'shipping_method' => substr($order->info['shipping_method'], 0, 30),

    This was in addition to the change suggested by swguy above.

    Chris

  5. #15
    Join Date
    Oct 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Hello...i have updated both files so that my code currently looks like this in /includes/modules/payment/beanstream.php:
    Code:
       $shipping_data = array(
    //                         'deliveryEstimate' => $order->delivery['shipping_method'],
                             'shipName' => $order->delivery['firstname'] . ' ' . $order->delivery['lastname'],
                             'shipAddress1' => $order->delivery['street_address'],
                             'shipAddress2' => $order->delivery['suburb'],
                             'shipCity' => $order->delivery['city'],
                             'shipProvince' => $province_code_ship,
                             'shipPostalCode' => $order->delivery['postcode'],
                             'shipCountry' => $order->delivery['country']['iso_code_2'],
                             'shippingMethod' => substr($order->info['shipping_method'], 0, 30));     
        } else {
          $shipping_data = array();
        }
        $extra_data = array(
                             'shippingMethod' => substr($order->info['shipping_method'], 0, 30));                         
                             'trnComments' => 'Website Order', 
                             // $order->info['comments'],
                             // Additional Merchant-defined variables go here
                             'ref1' => $_SESSION['customer_id'],
                             'ref2' => $order_time,
                             'ref3' => zen_get_ip_address(),
                             'ref4' => $sessID,
                             'customerIp' => zen_get_ip_address()
                              );
    And My code looks like this in /includes/classes/order.php after I changed the recomended line 614:
    Code:
    'shipping_method' => substr($order->info['shipping_method'], 0, 30),
    And i still get the error message:
    •Shipping method must be less than 64 characters
    - Your INTERAC® card could not be authorized for this reason. Please correct the information and try again or contact us for further assistance.


    I am Lost and dont know what else to change unless someone can see something that i am missing. Your help is greatly apprecated!

  6. #16
    Join Date
    Oct 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Figured it all out...its all about the brakets and closing the open code!

  7. #17
    Join Date
    Jun 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    This is how i solved the issue on my site. Go to \includes\modules\payment\beanstream.php and replace line of 656 to line 702 with the below code however I did not change the \includes\classes\order.php. Changing that file caused additional errors.

    $shipping_data = array(

    // 'deliveryEstimate' => $order->delivery['shipping_method'],

    'shipName' => $order->delivery['firstname'] . ' ' . $order->delivery['lastname'],

    'shipAddress1' => $order->delivery['street_address'],

    'shipAddress2' => $order->delivery['suburb'],

    'shipCity' => $order->delivery['city'],

    'shipProvince' => $province_code_ship,

    'shipPostalCode' => $order->delivery['postcode'],

    'shipCountry' => $order->delivery['country']['iso_code_2'],

    'shippingMethod' => substr($order->info['shipping_method'],0,30));

    } else {

    $shipping_data = array();

    }

    $extra_data = array(

    'shippingMethod' => substr($order->info['shipping_method'], 0, 30),

    'trnComments' => 'Website Order',
    // $order->info['comments'],

    // Additional Merchant-defined variables go here

    'ref1' => $_SESSION['customer_id'],

    'ref2' => $order_time,

    'ref3' => zen_get_ip_address(),

    'ref4' => $sessID,

    'customerIp' => zen_get_ip_address()

    );

  8. #18
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    219
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Hello All,

    I just had a call from a customer flagging this 64 character issue....I made the change to my beanstream.php file, uploaded it and now my beanstream module has disappeared from the admin and any order that used beanstream is a blank page. I tried reverting back to the original file and everything is still blank. Has anyone bumped into this or can someone please recommend a solution?

    Any help is appreciated. Thank you.
    Paul

  9. #19
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    219
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Quote Originally Posted by kcb410 View Post
    Hello All,

    I just had a call from a customer flagging this 64 character issue....I made the change to my beanstream.php file, uploaded it and now my beanstream module has disappeared from the admin and any order that used beanstream is a blank page. I tried reverting back to the original file and everything is still blank. Has anyone bumped into this or can someone please recommend a solution?

    Any help is appreciated. Thank you.
    Paul
    Sorry Guys...panicked. I just downloaded the original file set and replaced my beanstream.php file and everything is okay.

  10. #20
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    219
    Plugin Contributions
    0

    Default Re: Beanstream or CP Shipping Module? 64 Character Limit

    Quote Originally Posted by swguy View Post
    In ./includes/modules/payment/beanstream.php, try changing the two references to

    $order->info['shipping_method']

    to (say)

    substr($order->info['shipping_method'], 0, 30);
    Hello Everyone,

    Does anyone know if this fix still works with Zen 139h? I notice it's a couple of years old.

    I've tried it a couple of times and when I try to process a payment I just get a blank page.

    Any help or comment would be appreciated. Thank you!

    Zen 139h
    PHP Version: 5.3.10
    MySQL 5.0.95

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Need help with character limit page.
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Sep 2009, 09:07 PM
  2. Faq Manager Character Limit
    By jaywhy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 May 2007, 05:28 PM
  3. Zone shipping character limit
    By Heather88 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 1 May 2007, 04:20 AM
  4. Option/Name Value character limit
    By Daveage in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 23 Mar 2007, 11:42 PM

Bookmarks

Posting Permissions

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