Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    347
    Plugin Contributions
    0

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

    Quote Originally Posted by kcb410 View Post
    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
    To answer my own question....

    This works fine if you open your \includes\modules\payment\beanstream.php and replace this @ lines 338 thru 343:

    'shippingMethod' => $order->info['shipping_method']);
    } else {
    $shipping_data = array();
    }
    $extra_data = array(
    'shippingMethod' => $order->info['shipping_method'],

    with this:


    'shippingMethod' => substr($order->info['shipping_method'], 0, 30));
    } else {
    $shipping_data = array();
    }
    $extra_data = array(
    'shippingMethod' => substr($order->info['shipping_method'], 0, 30),

  2. #22
    Join Date
    Aug 2012
    Location
    Montreal, Canada
    Posts
    30
    Plugin Contributions
    0

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

    Quote Originally Posted by chrispritchard View Post
    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),
    Chris

    ERrr...do you have V1.50?
    As I still get the same error for any product required for shipping by Post Canada Module. If I select a downloadable product, then all is fine.
    I tried everything
    This is what I have:

    beanstream.php:
    'shippingMethod' => substr($order->info['shipping_method'], 0, 30));
    } else {
    $shipping_data = array();
    }
    $extra_data = array(
    'shippingMethod' => substr($order->info['shipping_method'], 0, 30),

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

    Still get this!
    Name:  interac - issue2.png
Views: 110
Size:  4.7 KB

    Any idea?

    thank you for your help...
    This was in addition to the change suggested by swguy above.

  3. #23
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

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

    Something must be wrong in your beanstream module code.
    The CP module only passes its info back to the store. The beanstream module just takes what it gets back. The code changes discussed above specifically chop that to just 30 characters.

    So ... if you're getting errors that say it must be less than 64 characters, that means your code changes aren't right.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #24
    Join Date
    Aug 2012
    Location
    Montreal, Canada
    Posts
    30
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    Something must be wrong in your beanstream module code.
    The CP module only passes its info back to the store. The beanstream module just takes what it gets back. The code changes discussed above specifically chop that to just 30 characters.

    So ... if you're getting errors that say it must be less than 64 characters, that means your code changes aren't right.
    I Would have really love to so will have been able to update and have it working but this must be something else. All returns to normal when I unsintall the CP module so it clearly comes from it. Without Beanstream Interac needs, CP module works great.

    The beanstream code is as is above and tried the different scenario:

    1: Beanstream.php updated / order.php Original
    2: Beanstream.php original / order.php Updated
    3: Beanstream.php updated / order.php Updated

    When processing a product that requires shipping, I get the "64 caracteres message Error with option 1
    When processing a product that requires shipping, I get the "64 caracteres message Error with option 2
    When processing a product that requires shipping, I get the "64 caracteres message Error with option 3
    When processing a product that requires shipping, I get a HTTP500 Error with option 3 with CP module OFF

  5. #25
    Join Date
    Aug 2012
    Location
    Montreal, Canada
    Posts
    30
    Plugin Contributions
    0

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

    Quote Originally Posted by ruffendz View Post
    Figured it all out...its all about the brakets and closing the open code!
    What do you mean?

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Category description character limit
    By moesoap in forum Setting Up Categories, Products, Attributes
    Replies: 16
    Last Post: 8 Oct 2019, 09:06 PM
  2. v155 Character limit on MODULE_PAYMENT_INVOICE_TEXT_TITLE?
    By marton_1 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Aug 2016, 01:18 PM
  3. v139f Product Description Character Limit
    By snowbird32 in forum Basic Configuration
    Replies: 7
    Last Post: 11 Jun 2013, 06:45 PM
  4. Setting Character Limit
    By solarguy in forum General Questions
    Replies: 4
    Last Post: 16 Apr 2011, 11:20 PM
  5. Zone shipping character limit
    By Heather88 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 1 May 2007, 04:20 AM

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