Page 1 of 2 12 LastLast
Results 1 to 10 of 38

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default Stamps.com getting error while importing

    I am trying to use Stamps.com, but where the heck is the batch file??? I can't find it anywhere.

  2. #2

    Default Re: stamps.com help

    Hello,

    If there is anything else you need help with, please feel free to let me know.

    Thanks!
    Chuck
    Stamps.com

  3. #3
    Join Date
    Dec 2012
    Posts
    68
    Plugin Contributions
    0

    Default Re: stamps.com help

    Quote Originally Posted by tonyreynolds View Post
    OK, So I got 1 hit when I searched both on the Admin/Catalog, but zero hits when I searched Catalog only. The stamps.php file is in the catalog root directory. I take the search to mean that the function is not available from the catalog root directory.
    I will research to insure the stamps.php file is in the correct location.


    TR
    The stamps.php file was in the wrong place. It should be in the admin folder and updated to the correct path in the stamps.com software.
    Thanks everybody for their help. I learned a new Zen tool as well!

    TR

  4. #4
    Join Date
    Apr 2010
    Posts
    282
    Plugin Contributions
    1

    Default stamps.com no longer working with 1.5.3

    I just got done upgrading to 1.5.3, and stamps.com will no longer import orders. It appears to be a compatibility issue, but I have no clue what to edit, so that it will work again. I tested, and it can access the database by doing this:

    https:// my site admin /stamps.php?shipping_access_token=XXXXXXXXXXXXXXXXXXXXXX&cmd=ping

    I have already tried the latest stamps.com integration software, and they claim it has only been tested to work up to 1.5.0

  5. #5
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: stamps.com no longer working with 1.5.3

    Can't help with the Stamps.com issue other than to offer a suggestion.

    ShipStation.com has a better interface, has the capability of applying rules and filters that you build to orders imported and has the ability to use both Stamps.com (or Endicia) and Express1 rates for printing USPS postage. Will also print UPS and Fedex labels if you have accounts with them. When shipping Priority and Express mail, Express 1 rates are better than Stamps.com

    OH, and Stamps.com recently bought ShipStation.

    If you are not subscribed to receive zencart notices, the zencart USPS plugin will be updated next week so that it will work with the USPS updates that go into effect on Sept 7, 2014.
    Last edited by RixStix; 30 Aug 2014 at 02:41 PM.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  6. #6
    Join Date
    Apr 2010
    Posts
    282
    Plugin Contributions
    1

    Default Re: stamps.com no longer working with 1.5.3

    I may have to do that. I just don't like how ship station is double the price of stamps.com

  7. #7
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: stamps.com no longer working with 1.5.3

    That was my thought too, initially. It doesn't take much shipping per month to offset the expense with timesavings and reduced frustration by not beating my head against the wall every time I had a Stamps.com problem and the months it took for them to address the problems.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  8. #8
    Join Date
    Apr 2010
    Posts
    282
    Plugin Contributions
    1

    Default Re: stamps.com no longer working with 1.5.3

    I started the free trial of ship station, and I really like how it works, but it is going to cost me $65 a month, because I also import orders from Ebay, and Paypal.

  9. #9
    Join Date
    Jul 2014
    Location
    New Jersey
    Posts
    17
    Plugin Contributions
    1

    Default Re: stamps.com no longer working with 1.5.3

    I was able to get stamps.com integration to work with 1.5.5e with this version where I made a few edits to the file to account for the Mysql depreciated functions and replaced them with MySqli equivalents. I am quite sure there are more elegant ways to get this fixed but for now I would like some comments from the other programmers if this compromises security doing it this way.

    I modified the original function:
    Code:
    // Returns the zen country id for the given named country
            function GetCountryID($country_name)
            {
                    global $db;
                    $qry = sprintf("select countries_id from ". TABLE_COUNTRIES. " where countries_name = '%s'",
                                    mysql_real_escape_string($country_name));
    
                    $countryQuery = $db->Execute($qry);
                    if ($countryQuery->RecordCount() == 0)
                    {
                            return $country_name;
                    }
                    else
                    {
                            return $countryQuery->fields['countries_id'];
                    }
            }
    and changed it to look like this since the mysqli_real_escape_string() requires a connection string as the first parameter:

    Code:
     // Returns the zen country id for the given named country
            function GetCountryID($country_name)
            {
                    global $db;
    				$mysqli = new mysqli('DB_SERVER' , 'DB_SERVER_USERNAME' , 'DB_SERVER_PASSWORD' , 'DB_DATABASE' );
                    $qry = sprintf("select countries_id from ". TABLE_COUNTRIES. " where countries_name = '%s'",
                                    mysqli_real_escape_string($mysqli, $country_name));
    								
    
                    $countryQuery = $db->Execute($qry);
                    if ($countryQuery->RecordCount() == 0)
                    {
                            return $country_name;
                    }
                    else
                    {
                            return $countryQuery->fields['countries_id'];
                    }
            }
    I did the same for three other functions that were using similar code see the attached updated stamps module if you wish to see the all the changes.
    Attached Files Attached Files

  10. #10
    Join Date
    Jul 2014
    Location
    New Jersey
    Posts
    17
    Plugin Contributions
    1

    Default Re: stamps.com no longer working with 1.5.3

    OK so live and learn and read the post more thoroughly, I found the above was generating log errors and not very practical having to open a connection to the database just to utilize the newer MySQLi equivalent functions it was an experiment. I wound up changing the MySQL statements to $db->prepare_input as indicated above by Lat9 and this seems to be working much better and not generating any log errors.

    My question now is does this still give you the same level of protection from things like SQL injection etc as the old mysql_escape_string() depreciated functions did?

    attached is the fully modified and working test version using ($db->prepare_input) instead with zencart 1.5.5e and php 7.0
    Attached Files Attached Files

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Stamps.com: How do I prevent Non-shippable items from batch importing?
    By gachogavacho in forum Addon Shipping Modules
    Replies: 14
    Last Post: 20 Aug 2014, 08:07 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